Dear Edhy,
for what concerns the Windows Installer 4.5 package, you should install the appropriate Runtime respecting the target OS Platform.
To make this possible, you can install the required Runtime conditionally, after querying in your main script the effective target OS Platform.
Usually the main script calls a specialized script that verifies if a specific runtimes is not already present with the system anf if the same, it's supported by the target. If this process completes correctly, then the Runtime will be effectively installed (... an additional script is executed for this purpose).
Consequently, any IA runtime added to the project includes 2 scripts for each runtime installation;
- the first one for checking purpose (the name of the script begins with "checkxxx") and the second one, it's the one that effectively execute the runtime installation (the name of the script begins with "setupxxxx").
That said in your main script, you only need to conditionally execute the Runtime "check-script" that matches the target OS Platform ... no other actions are required to install the correct "Windows Installer 4.5 package" based on the target OS platform.
NOTE:
the Runtime "check-scripts" are Always added to the "Check Application Pre-Requisites" Code Region of the main script project.Example;
Code: Select all
Set Variable ISWIN64 to FALSE
Get System Setting Windows in 64 bit Mode into ISWIN64
if Variable ISWIN64 Equals TRUE
Include Script: checkmsi45_x64
else
Include Script: checkmsi45
end
the same code snippet in IA Clipboard format.
Code: Select all
~InstallAware Clipboard Data~
~End~
~{D2AF82CE-13C3-4BB8-A976-EC33821DAE1F}~
~Include Script~
~{2A4016AF-620F-4AC4-AC2F-94B4436C9158}~
~checkmsi45~
~Else~
~{B9A87721-19B9-4EE1-8A0F-7A1A3E511C97}~
~Include Script~
~{E32009B8-BEF1-4278-87A9-252356200BE5}~
~checkmsi45_x64~
~If~
~{5A2AD9E6-8884-420D-B866-C510F8A68AA6}~
~ISWIN64~
~0~
~TRUE~
~FALSE~
~Get System Settings~
~{5D565BEE-DC62-4BF3-8E39-B0FF0607ED16}~
~ISWIN64~
~65~
~Set Variable~
~{FCD260E7-869E-4B4F-9B3A-90C9D4878242}~
~ISWIN64$MYAH$MYAH$FALSE~
~FALSE~
Hope this helps you.
Regards