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~