Hi
I have created a setup program - windows Installer MSI using .net framework
1.1.
This MSI is working fine with framework 1.1. but during testing i came
across a machine on which framework 1.1 is NOT installed but only framework
2.0 is installed. on that machine i got an (error) message like this
"This setup required .net framework version 1.1.4322 required. please
install the program and then run the setup".
Now, Microsoft while papers says that if there is an executalbe (.exe)
created with lets say framework 1.1 and if on the machine that framework
version is not installed, executable will be execuated wih latest version
installed on the machine.
Now , my question is does this thing apply to installer programs also or not.
what is the solution for my case?
Any quick help will be appriciated.
thanks & Regards
Nils
james - 26 Dec 2005 18:54 GMT
> Hi
>
[quoted text clipped - 18 lines]
> thanks & Regards
> Nils
I have found that I need to include the framework 1.1 in my setup projects just for this sort of situation.
Besides, even though your application may go ahead and try to run with the newer framework, there is
no guarantee that your application(other than a very basic Hello World type app) will run without problems
against a different framework than it was originally built with. If you are installing your app from a CD/DVD
it is easy to include the needed framework and install it if it is missing from the client's machine. It certainly saves a lot
of problems.
james
Phil Wilson - 26 Dec 2005 20:21 GMT
In the Launch Conditions view in the setup project, look at the properties
of the framework's launch condition. SupportedRuntimes is a semi-colon
delimited list, add your 2.0 framework version there.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsintro7/html/v
xgrfSupportedRuntimesProperty.asp

Signature
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280
> Hi
>
[quoted text clipped - 21 lines]
> thanks & Regards
> Nils
Nilesh - 27 Dec 2005 09:27 GMT
Hi Phil
thanks for the reply.
I have tried the way you told. but somehow it is still not working. let me
tell you one thing.the machine on which i am running installer program only
have framework 2.0 installed and the installer program was compiled with
framework 1.1.
I have set SuportedRuntime property like this : 2.0.52727;1.1.4322 because i
want framework 2.0 as higher preference.
Do i need to some more properties also.
please help me for the same.
Thanks.
Nils
> In the Launch Conditions view in the setup project, look at the properties
> of the framework's launch condition. SupportedRuntimes is a semi-colon
[quoted text clipped - 27 lines]
> > thanks & Regards
> > Nils