[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.setup

VB.NET 2008 Setup Wizard Problem with .NET Versions

Siv

5/22/2008 2:22:00 PM

Hi,
I am trying to create a setup for an application I wrote that targets the
2.0 framework but built using VS 2008. The application correctly utilizes
..NET 2.0 as I can manually copy the file onto a target XP Box that already
has the 2.0 Framework installed. When I create a setup program using the
Setup Wizard template that installs the application using the MSI installer,
I get a request for the .Net framework 3.5?

I guess this is because the setup program itself needs the 3.5 framework?

Is there any way I can tell the setup project to use Dot Net 2.0 like I can
my own application?

Any help appreciated.

Siv,
Martley, Near Worcester UK.

5 Answers

Phil Wilson

5/22/2008 5:01:00 PM

0

In View->Editor->Launch Conditions in the setup project, right-click
Properties Window on the .NET frramework probably still has the 3.5 version
in there. This is the internal check in the MSI in case you don't run a
bootstrapper like setup.exe to install the .NET prerequsites (the
Prerequisites button in your setup project Properties that generates the
setup.exe).

--
Phil Wilson
Definitive Guide to Windows Installer
http://www.apress.com/book/view/...


"Siv" <g@removethistextsivill.com> wrote in message
news:844B2617-C01D-4595-814A-4A5CABA57EF3@microsoft.com...
> Hi,
> I am trying to create a setup for an application I wrote that targets the
> 2.0 framework but built using VS 2008. The application correctly utilizes
> .NET 2.0 as I can manually copy the file onto a target XP Box that already
> has the 2.0 Framework installed. When I create a setup program using the
> Setup Wizard template that installs the application using the MSI
> installer, I get a request for the .Net framework 3.5?
>
> I guess this is because the setup program itself needs the 3.5 framework?
>
> Is there any way I can tell the setup project to use Dot Net 2.0 like I
> can my own application?
>
> Any help appreciated.
>
> Siv,
> Martley, Near Worcester UK.


Siv

5/22/2008 5:20:00 PM

0

Phil,
Thanks for this, I checked the .NET framework underneath Launch Conditions
and it is set to Version 2.0.50727 which sounds like .NET 2.0 to me?

So that confuses me now, where is it getting the need for .NET 3.5 (unless
something I have done since posting this message has made it select 2.0)?
I'll recompile and see if it asks for 3.5 on my test VM that only has 1.1
and 2.0 installed.

Thanks for your help.

Siv


"Phil Wilson" <phil.wilson@wonderware.something.com> wrote in message
news:%23tPhg1CvIHA.3380@TK2MSFTNGP03.phx.gbl...
> In View->Editor->Launch Conditions in the setup project, right-click
> Properties Window on the .NET frramework probably still has the 3.5
> version in there. This is the internal check in the MSI in case you don't
> run a bootstrapper like setup.exe to install the .NET prerequsites (the
> Prerequisites button in your setup project Properties that generates the
> setup.exe).
>
> --
> Phil Wilson
> Definitive Guide to Windows Installer
> http://www.apress.com/book/view/...
>
>
> "Siv" <g@removethistextsivill.com> wrote in message
> news:844B2617-C01D-4595-814A-4A5CABA57EF3@microsoft.com...
>> Hi,
>> I am trying to create a setup for an application I wrote that targets the
>> 2.0 framework but built using VS 2008. The application correctly
>> utilizes .NET 2.0 as I can manually copy the file onto a target XP Box
>> that already has the 2.0 Framework installed. When I create a setup
>> program using the Setup Wizard template that installs the application
>> using the MSI installer, I get a request for the .Net framework 3.5?
>>
>> I guess this is because the setup program itself needs the 3.5 framework?
>>
>> Is there any way I can tell the setup project to use Dot Net 2.0 like I
>> can my own application?
>>
>> Any help appreciated.
>>
>> Siv,
>> Martley, Near Worcester UK.
>
>

Siv

5/22/2008 5:33:00 PM

0

Phil,
I just checked and it installs without asking for 3.5 now? The only thing I
have noticed is that when I built the setup last time it created "Setup.exe"
and "Setup.msi", whereas now it is creating "Setup.exe" and TACSYSetup.msi"
which I hadn't spotted when I first posted this. The setup MSI file should
be called "TACSYSetup.msi" not "Setup.msi".

When I just compiled it I selected the "Build Solution" option whereas
yesterday I may have highlighted the setup project and just selected "Build
TACSYSetup", would this make any difference? I am confused now.

Siv

"Phil Wilson" <phil.wilson@wonderware.something.com> wrote in message
news:%23tPhg1CvIHA.3380@TK2MSFTNGP03.phx.gbl...
> In View->Editor->Launch Conditions in the setup project, right-click
> Properties Window on the .NET frramework probably still has the 3.5
> version in there. This is the internal check in the MSI in case you don't
> run a bootstrapper like setup.exe to install the .NET prerequsites (the
> Prerequisites button in your setup project Properties that generates the
> setup.exe).
>
> --
> Phil Wilson
> Definitive Guide to Windows Installer
> http://www.apress.com/book/view/...
>
>
> "Siv" <g@removethistextsivill.com> wrote in message
> news:844B2617-C01D-4595-814A-4A5CABA57EF3@microsoft.com...
>> Hi,
>> I am trying to create a setup for an application I wrote that targets the
>> 2.0 framework but built using VS 2008. The application correctly
>> utilizes .NET 2.0 as I can manually copy the file onto a target XP Box
>> that already has the 2.0 Framework installed. When I create a setup
>> program using the Setup Wizard template that installs the application
>> using the MSI installer, I get a request for the .Net framework 3.5?
>>
>> I guess this is because the setup program itself needs the 3.5 framework?
>>
>> Is there any way I can tell the setup project to use Dot Net 2.0 like I
>> can my own application?
>>
>> Any help appreciated.
>>
>> Siv,
>> Martley, Near Worcester UK.
>
>

Siv

5/22/2008 7:40:00 PM

0

Phil,
Please ignore previous post, it was as you suggested I had 3.50 listed in
the Launch Conditions, the reason for the confusion in my last post was that
I re-opened a prior version of the application that was in VB.NET 2005, I
just double-clicked the sln file and didn't watch which version of VS it had
opened. When I checked the correct version that is in 2008 format it was set
to 3.5 in the launch Conditions.

Thanks again, problem solved.

Siv

"Phil Wilson" <phil.wilson@wonderware.something.com> wrote in message
news:%23tPhg1CvIHA.3380@TK2MSFTNGP03.phx.gbl...
> In View->Editor->Launch Conditions in the setup project, right-click
> Properties Window on the .NET frramework probably still has the 3.5
> version in there. This is the internal check in the MSI in case you don't
> run a bootstrapper like setup.exe to install the .NET prerequsites (the
> Prerequisites button in your setup project Properties that generates the
> setup.exe).
>
> --
> Phil Wilson
> Definitive Guide to Windows Installer
> http://www.apress.com/book/view/...
>
>
> "Siv" <g@removethistextsivill.com> wrote in message
> news:844B2617-C01D-4595-814A-4A5CABA57EF3@microsoft.com...
>> Hi,
>> I am trying to create a setup for an application I wrote that targets the
>> 2.0 framework but built using VS 2008. The application correctly
>> utilizes .NET 2.0 as I can manually copy the file onto a target XP Box
>> that already has the 2.0 Framework installed. When I create a setup
>> program using the Setup Wizard template that installs the application
>> using the MSI installer, I get a request for the .Net framework 3.5?
>>
>> I guess this is because the setup program itself needs the 3.5 framework?
>>
>> Is there any way I can tell the setup project to use Dot Net 2.0 like I
>> can my own application?
>>
>> Any help appreciated.
>>
>> Siv,
>> Martley, Near Worcester UK.
>
>

Steve Avery

1/1/2009 9:23:00 AM

0

On 14 Dec 2008 I posted a query at http://www.simple-talk.com/dotnet/visual-studio/getting-started-with-setup... , but noticed that there had been no response from Phil for more than a year.

I?m desperate for advice about what I wrote there, and appeal to whoever reads this for help, please.

Here?s the gist:
?I've used the info on Phil?s page to create an installation project in VB.NET, but ran into a problem with the application's version number.

Until now I've simply used the deployment feature in VS 2008 to create all the files for the setup, and put them into a .zip file. (You can see what I mean if you go to www.KeywordAssistant.net , click on the free download link, and just open the .zip without actually downloading it. Alternatively, open it here: www.KeywordAssistant.net/Trial/KeywordAssistant_1_1_1_0-Setup.zip )

Although this produces a perfect installation, the instructions in ?install.txt? are likely to frighten computer novices.

To simplify the installation I followed the instructions on Phil?s page, but discovered that the 'keywordassistant.exe' assembly contains no version number, even though the setup project detects it in the 'Properties' window.

Consequently, the application can never be updated. When a check for updates is done, the app bails out with an error: something like "Application.Deployment.Version not set".

I've tried including the manifest and other files in the build, but that did no good.

I'd be grateful for any suggestions, please.?

From http://www.development...26_2008_5_0_0_1060059/VB-NET-2008-Setup-Wizard-Problem-with-NET-Ve...

Posted via DevelopmentNow.com Groups
http://www.development...