Application Launch Issue
Hello All,
I am installing this app using Install Script Wrapper. Everytime I click on the resulted setup.exe (the wrapper), it kicks in, starts the installation, shows a window that says:
Installing
C:\....\...\....\APP.msi
then it breaks and shows the "Windows Installer" window with all the available switches that can be used.
I have tried different switches but nothing works with this wrapper. But the same switches work just fine manually.
Any thoughts? Anybody?
Greatly appreciated.
Best Regards,
AK
I am installing this app using Install Script Wrapper. Everytime I click on the resulted setup.exe (the wrapper), it kicks in, starts the installation, shows a window that says:
Installing
C:\....\...\....\APP.msi
then it breaks and shows the "Windows Installer" window with all the available switches that can be used.
I have tried different switches but nothing works with this wrapper. But the same switches work just fine manually.
Any thoughts? Anybody?
Greatly appreciated.
Best Regards,
AK
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
jmaclaurin
12 years ago
Windows Installer (MSIEXEC.exe) command lines are explicit and case sensitive. You can use system and defined variables instead of hard coded paths.
%SYSTEMROOT%\System32\msiexec.exe /i "%SOURCE%\%SOURCESUBDIR2%\%MSINAME2%" TRANSFORMS="%SOURCE%\%SOURCESUBDIR2%\%MSTNAME2%" /liwear "%LOGFILEDIR%\%PACKAGELOG2%.LOG" REBOOT="ReallySuppress" /qn
Translates to:
c:\windows\System32\msiexec.exe /i "\\servername\folder\msiname.msi" TRANSFORMS="\\servername\folder\mstname.mst /liwear "c:\folder\packagename.LOG" REBOOT="ReallySuppress" /qn
Watch for extra spaces between the commands.
As always, perform your testing without /qn so that you can see the visable errors.
%SYSTEMROOT%\System32\msiexec.exe /i "%SOURCE%\%SOURCESUBDIR2%\%MSINAME2%" TRANSFORMS="%SOURCE%\%SOURCESUBDIR2%\%MSTNAME2%" /liwear "%LOGFILEDIR%\%PACKAGELOG2%.LOG" REBOOT="ReallySuppress" /qn
Translates to:
c:\windows\System32\msiexec.exe /i "\\servername\folder\msiname.msi" TRANSFORMS="\\servername\folder\mstname.mst /liwear "c:\folder\packagename.LOG" REBOOT="ReallySuppress" /qn
Watch for extra spaces between the commands.
As always, perform your testing without /qn so that you can see the visable errors.
Posted by:
786_ak
12 years ago
Jmaclaurin, thanks for a quick response. Here's what my command line looks like, just so you have a better idea.
szProgram = WINSYSDIR ^ "\\msiexec.exe";
szCmdLine = TARGETDIR ^ "\\"+ MSINAME;
szCmdLine1 = TARGETDIR ^ "\\" + MSTNAME;
//nOptions = LAAW_OPTION_WAIT;
//MessageBox("szCmdLine = " + szCmdLine,INFORMATION);
if (LaunchAppAndWait (szProgram, "/i "+szCmdLine + " TRANSFORMS=" + szCmdLine1 + " /qb!", WAIT) < 0) then
MessageBox ("Unable to launch "+ szProgram +".",SEVERE);
What could be causing it to break. In addition to that I am still seeing the option of "Cancel" button for user to be able to cancel this installation. How can I possibly remove that, if "/QB!" is not doing it. Once again same command line works fine manually.
Thanks,
AK
szProgram = WINSYSDIR ^ "\\msiexec.exe";
szCmdLine = TARGETDIR ^ "\\"+ MSINAME;
szCmdLine1 = TARGETDIR ^ "\\" + MSTNAME;
//nOptions = LAAW_OPTION_WAIT;
//MessageBox("szCmdLine = " + szCmdLine,INFORMATION);
if (LaunchAppAndWait (szProgram, "/i "+szCmdLine + " TRANSFORMS=" + szCmdLine1 + " /qb!", WAIT) < 0) then
MessageBox ("Unable to launch "+ szProgram +".",SEVERE);
What could be causing it to break. In addition to that I am still seeing the option of "Cancel" button for user to be able to cancel this installation. How can I possibly remove that, if "/QB!" is not doing it. Once again same command line works fine manually.
Thanks,
AK
Posted by:
jmaclaurin
12 years ago
Posted by:
Dodgyguy
12 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.