I am creating a setup program using InstallShieldX. I have a requirement under which I have to launch another .msi package from within my script. I am using the following code...
function NUMBER LaunchPostGREInstall()
STRING szProgram, svPath;
STRING szParam;
NUMBER nResult;
begin
Enable (USE_LOADED_SKIN);
szProgram = WINSYSDIR^"msiexec.exe";
svPath = SRCDIR^"postgresql-8.0.msi";
LongPathToQuote(svPath,TRUE);
szParam= "/i " + svPath;
nResult = LaunchAppAndWait(szProgram,szParam,WAIT|LAAW_OPTION_NO_CHANGEDIRECTORY);
return nResult;
end;
The problem is that I want my original installation to hault till the time this package is completely installed or terminated, but this is not happening. It happens only for the first window of the packeage. But as soon as I click NEXT on that window, my original setup regains the control, which I don't want to happen.
I found that I should use \SMS, but my problem is I don't know where should I place that switch....I tries....
szParam= "/i " + svPath + "-SMS";
nResult = LaunchAppAndWait(szProgram,szParam ,WAIT);
But this doesnot work.
Any input from your side will be of great help.
Thanks & regards.
Gautam Adlakha.
Edited by Gadlakha, 04 February 2005 - 12:14.