Seperate Dependencies Based On OS

Got a problem you cannot solve? Try here.
johnbaegis
Posts: 1
Joined: Tue Mar 10, 2015 3:01 pm

Seperate Dependencies Based On OS

Postby johnbaegis » Tue Mar 10, 2015 3:06 pm

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Seperate Dependencies Based On OS

Postby FrancescoT » Wed Mar 11, 2015 12:35 pm

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
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 78 guests