IA Installation based off of a clients .NET Framework?

Got a problem you cannot solve? Try here.
JasonCrone
Posts: 12
Joined: Wed Aug 16, 2006 2:23 pm

IA Installation based off of a clients .NET Framework?

Postby JasonCrone » Mon Oct 23, 2006 2:30 pm

We want to create an installation in such a way that one version will be installed if they have .NET Framework 1.1 and a different version if they have .NET Framework 2.0. Can IA do this, and if so is there an easy way to set this up?

MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Postby MichaelNesmith » Mon Oct 23, 2006 5:07 pm

Absolutely! This kind of runtime branching is very easy with InstallAware (and a nightmare, if at all possible, with other tools).

Use the .NET Framework plug-in to get the current version, like this:

Code: Select all

Check/Install .NET Framework (check v1.1, get result into variable NET11)
Check/Install .NET Framework (check v2.0, get result into variable NET20)

Then, try something like this:

Code: Select all

if Variable NET20 Equals TRUE
  Comment: Perform .NET 2.0 install actions
end
if Variable NET11 Equals TRUE
  Comment: Perform .NET 1.1 install actions
end


This way, you could even install your product onto both framework versions at the same time :) Below is the above code that you can copy-paste directly for your convenience into the IDE:

Code: Select all

~InstallAware Clipboard Data~
~End~
~{4561D6D7-7FA4-438A-AF19-561AFF10781A}~
~Comment~
~{8057C0FE-5170-46F0-937A-8B1165027BA2}~
~Perform .NET 1.1 install actions~
~If~
~{241B6A9A-0956-4385-9376-F60322A805EF}~
~NET11~
~0~
~TRUE~
~FALSE~
~End~
~{74601018-14C1-461B-8DFC-91A888079C0B}~
~Comment~
~{0B31D50C-3990-4C8F-A018-C61B5A5CA19C}~
~Perform .NET 2.0 install actions~
~If~
~{CA9E3F1A-E79F-4DE6-A7BD-0237BC198BF5}~
~NET20~
~0~
~TRUE~
~FALSE~
~.NET Framework~
~{0B7538CE-8D2A-4EDB-A6ED-5079FAF1D64C}~
~TRUE,TWENTY,NET20~
~mDotNet.dll\\mDotNetExec.dll~
~.NET Framework~
~{E27F2E50-3364-40FF-A4F5-2CA274E49320}~
~TRUE,FALSE,NET11~
~mDotNet.dll\\mDotNetExec.dll~
Michael Nesmith
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 33 guests