/build/static/layout/Breadcrumb_cap_w.png

Calling msiexec issue.....

I am using InstallShield 11 (within AdminStudio 10). I have created an InstallScript Project and I want to know how I call an .MSI file. I have added my Orca.msi file to Files\Folders location and installed it to c:\windows\system32 which is what I want to call with msiexec. The following line of code does not work.

LaunchApplication(SystemFolder ^ "msiexec.exe", "c:\windows\orca.msi /i REBOOT=R /QB+", "", SW_NORMAL, 1000, LAAW_OPTION_SHOW_HOURGLASS);

But, if I install an .EXE to the Language Independent location and run this command it Does work.

LaunchApplication(SUPPORTDIR ^ "test1.exe", "", "", SW_NORMAL, 1000, LAAW_OPTION_SHOW_HOURGLASS);

So I am not seeing how to call the msiexc and pass it the .MSI and switches.

Any help would be nice.

0 Comments   [ + ] Show comments

Answers (6)

Posted by: AngelD 13 years ago
Red Belt
0
I have no idea regarding IS but:

I have added my Orca.msi file to Files\Folders location and installed it to c:\windows\system32
LaunchApplication(SystemFolder ^ "msiexec.exe", "c:\windows\orca.msi /i REBOOT=R /QB+", "", SW_NORMAL, 1000, LAAW_OPTION_SHOW_HOURGLASS);
Posted by: mhsl808 13 years ago
Fifth Degree Brown Belt
0
Within InstallShield 11, on the Installation Designer Page I went to Application Data\Files and Folders. There I added/installed Orca.msi. Then, under Behavior and Logic I go to InstallScript. There I have this.

function OnFirstUIAfter()
STRING szTitle, szMsg1, szMsg2, szOpt1, szOpt2;
NUMBER bvOpt1, bvOpt2;
begin
LaunchApplication(SystemFolder ^ "msiexec.exe", "/i orca.msi /i REBOOT=R /QB+", "", SW_NORMAL, 1000, LAAW_OPTION_SHOW_HOURGLASS);
end;

I compile this into a single .EXE. When I run this Orca.msi does get installed to the C:\windows\system32 folder but it never gets launced or run.
Posted by: kardock 13 years ago
Second Degree Green Belt
0
why do you have 2 /i ?

"/i orca.msi /i REBOOT...
Posted by: mhsl808 13 years ago
Fifth Degree Brown Belt
0
sorry, that was a typo. There is only 1 /i.
Posted by: kardock 13 years ago
Second Degree Green Belt
0
and it should be before the msi file

msiexec /i msifile /qb
Posted by: mhsl808 13 years ago
Fifth Degree Brown Belt
0
I got this working. Here is the working command line that InstallShield 11 likes.

LaunchApplication("msiexec.exe", "/i " + SUPPORTDIR^"Orca.msi" + " /qn REBOOT=R", "", SW_NORMAL, INFINITE, LAAW_OPTION_WAIT | LAAW_OPTION_USE_SHELLEXECUTE);
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ