Page 1 of 1

Seperate Dependencies Based On OS

Posted: Tue Mar 10, 2015 3:06 pm
by johnbaegis
Hi,

I was wondering how do I specify different runtimes based on the OS. For example SQL Server 2008 is NOT compatible with the newer version of windows, but its the only version that works for older versions. I don't want to have to create 3-4 setup files. Is this possible and if so do I need a different version of the software? The "Options..." button is always greyed out so I hope that is not it.

Thanks

Re: Seperate Dependencies Based On OS

Posted: Wed Mar 11, 2015 12:35 pm
by FrancescoT
Dear Johnbaegis,

of course you can do it, but you need to handle this via MSI code script.
In your case, you only need to conditionally execute the runtime script based on the target OS.

For example, supposing you want to install "SQL Server 2008" with a WIN XP target only;

1- Add the "MS SQL Server 2008" application Runtime to your project (IA Design view)
2- Switch to the MSI code view in IA IDE
3- In your main script locate the "Include Script: checksql2008" statement in the "[DEFINE REGION: Check Application Pre-Requisites]" and then replace it as follow;

Code: Select all

Set Variable TARGET_OS to
Get Exact OS Level into TARGET_OS
if Variable TARGET_OS Equals XP
  Include Script: checksql2008
end

Hope this helps you.

Regards