/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

1
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.
Answered 01/26/2012 by: jmaclaurin
Third Degree Blue Belt

Please log in to comment
1
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
Answered 01/26/2012 by: 786_ak
Third Degree Green Belt

Please log in to comment
1
Try trimming out the variables in your commands and use explicit instead. Once that is working, then set/add each variable one at a time.
Answered 01/26/2012 by: jmaclaurin
Third Degree Blue Belt

Please log in to comment
1
Also, /qb is for a basic interface. Try using /qn for a silent install.

NB its a good idea to use /qb while testing/troubleshooting so you can see any error dialogues... [:)]
Answered 01/26/2012 by: Dodgyguy
Senior Yellow Belt

Please log in to comment
1
/qb-! can be used for disabling the cancel button
Answered 01/31/2012 by: lokeshmajji
Yellow Belt

Please log in to comment