Use Different Installed Versions of InstallShield?

I have a build machine that has multiple versions of InstallShiled installed on it - because we have multiple versions of our software utilizing different versions of IS.  Right now we have IS 11.5 and 12.  Later we'll add 2008.

Because the version of IsCmdBld.exe that FB uses is specified under the Options menu/ InstallBuilders, if I want to use the built in InstallShield action (MSI) in my scripts, it seems as though I cannot have two different scripts using building against two different versions of IS.  

Short of writing my own Run DOS Command to IsCmdBld.exe, is it possible to use the built-in FB action in different FB scripts and reference different IS versions?   If not could it be?  :-)   Probably just a way to supply the version of IsCmdBld.exe in the action itself?

Thanks,

Jason

Hi Jason,

What you can do is put some script into the BeforeAction event of each IS action, to set the path to the correct InstallShield version.

If you’re using JScript, it should look something like this:

GetOptionsObject(“InstallShield”).DevISCmdBldLocation = “C:\Path\To\My\IsCmdBld.exe”;

… if you need to do this a lot, go to Project -> Project Global Script and paste in a function like this:

function SetISVersion(versionNo)
{
var path;
switch(versionNo)
{
case 11.5:
path = “C:\IS115\IsCmdBld.exe”;
break;
case 12:
path = “C:\IS12\IsCmdBld.exe”;
break;
default:
throw "Unknown IS version " + versionNo;
}
GetOptionsObject(“InstallShield”).DevISCmdBldLocation = path;
}


… then you can just use BeforeAction scripts like

SetISVersion(12);


Hth.

- Angus

Thank you for the reply! I hadn’t thought of solving it that way. I do try to avoid scripts as much as possible, because we have multiple team members that work on these and I think it can make a script a little more difficult to follow and maintain. But maybe that’s what we’ll do for time being. I’ll still add something about handling multiple versions to the wish list… :wink: