HighTechTalks DotNet Forums  

VS2008 Installer Project

Visual Studio.net (General) microsoft.public.vsnet.general


Discuss VS2008 Installer Project in the Visual Studio.net (General) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
mfr
 
Posts: n/a

Default VS2008 Installer Project - 01-03-2008 , 05:46 AM






Hi,

I am developing a solution using C# targetting the .Net framework 2.0. The
solution contains an window's form executable and a number of class library
projects. The solution also contains a WindowsInstaller project.

I've set the pre-requisites of the installation project to require .Net 2
and not .Net 3 nor 3.5. However, when I run the installer on a clean build of
XP it is prompting to me to install .Net 3.5.

I've checked that all assemblies are targeting the .Net 2.0. Why is the
installer requiring 3.5?

Regards,
Dave.



Reply With Quote
  #2  
Old   
jacky kwok
 
Posts: n/a

Default Re: VS2008 Installer Project - 01-03-2008 , 09:16 PM






mfr wrote:
Quote:
Hi,

I am developing a solution using C# targetting the .Net framework 2.0. The
solution contains an window's form executable and a number of class library
projects. The solution also contains a WindowsInstaller project.

I've set the pre-requisites of the installation project to require .Net 2
and not .Net 3 nor 3.5. However, when I run the installer on a clean build of
XP it is prompting to me to install .Net 3.5.

I've checked that all assemblies are targeting the .Net 2.0. Why is the
installer requiring 3.5?

Regards,
Dave.


1. When you created the window form application project, did you
correctly select the Runtime to be Dotnet2?

2. check the Installer project, Launch conditions. What is the version
of Dotnet framework in ".Net Framwwork" launch condition?

--
Jacky Kwok
jacky@alumni_DOT_cuhk_DOT_edu_DOT_hk


Reply With Quote
  #3  
Old   
Steven Cheng[MSFT]
 
Posts: n/a

Default Re: VS2008 Installer Project - 01-03-2008 , 09:44 PM



Thanks for Jacky's input.

Hi Dave,

As Jacky suggested, you can first check whether you've choosed the ".net
framework 2.0" when creating the setup project. If you've chosen the ".net
3.5" option, the setup project may naturally rely on .net framework 3.5.
Also, for further testing, you can try creating a very simplified setup
project with the VS 2008 IDE(choose .net version 2) to see whether you can
repro the behavior.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Quote:
Date: Fri, 04 Jan 2008 10:16:41 +0800
From: jacky kwok <jacky (AT) nospam (DOT) nospam
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
Subject: Re: VS2008 Installer Project

mfr wrote:
Hi,

I am developing a solution using C# targetting the .Net framework 2.0.
The
solution contains an window's form executable and a number of class
library
projects. The solution also contains a WindowsInstaller project.

I've set the pre-requisites of the installation project to require .Net
2
and not .Net 3 nor 3.5. However, when I run the installer on a clean
build of
XP it is prompting to me to install .Net 3.5.

I've checked that all assemblies are targeting the .Net 2.0. Why is the
installer requiring 3.5?

Regards,
Dave.



1. When you created the window form application project, did you
correctly select the Runtime to be Dotnet2?

2. check the Installer project, Launch conditions. What is the version
of Dotnet framework in ".Net Framwwork" launch condition?

--
Jacky Kwok
jacky@alumni_DOT_cuhk_DOT_edu_DOT_hk



Reply With Quote
  #4  
Old   
mfr
 
Posts: n/a

Default Re: VS2008 Installer Project - 01-04-2008 , 03:57 AM



Hi Steven,

I created a small test project and ensured that the dll and exe where
targetting .Net 2.0. I then added an installation projected (.Net 2.0) to the
solution and the same problem occurred.

Under the installation projects, one of the detected dependancies is the
..Net Framework. Under the properties for this, the launch conditions was set
to .Net 3.5 (Jacky, thanks for note, but hadn't realised this was the setting
you were refering to). Changing this to 2.0 solved the problem.

Thank you for your help.


"Steven Cheng[MSFT]" wrote:

Quote:
Thanks for Jacky's input.

Hi Dave,

As Jacky suggested, you can first check whether you've choosed the ".net
framework 2.0" when creating the setup project. If you've chosen the ".net
3.5" option, the setup project may naturally rely on .net framework 3.5.
Also, for further testing, you can try creating a very simplified setup
project with the VS 2008 IDE(choose .net version 2) to see whether you can
repro the behavior.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead


This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
Date: Fri, 04 Jan 2008 10:16:41 +0800
From: jacky kwok <jacky (AT) nospam (DOT) nospam
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
MIME-Version: 1.0
Subject: Re: VS2008 Installer Project

mfr wrote:
Hi,

I am developing a solution using C# targetting the .Net framework 2.0.
The
solution contains an window's form executable and a number of class
library
projects. The solution also contains a WindowsInstaller project.

I've set the pre-requisites of the installation project to require .Net
2
and not .Net 3 nor 3.5. However, when I run the installer on a clean
build of
XP it is prompting to me to install .Net 3.5.

I've checked that all assemblies are targeting the .Net 2.0. Why is the
installer requiring 3.5?

Regards,
Dave.



1. When you created the window form application project, did you
correctly select the Runtime to be Dotnet2?

2. check the Installer project, Launch conditions. What is the version
of Dotnet framework in ".Net Framwwork" launch condition?

--
Jacky Kwok
jacky@alumni_DOT_cuhk_DOT_edu_DOT_hk




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.