I can execute the following from the command line successfully and It silently installs the product.
MyInstaller.exe /s /v"/qn DATA_DIR=\"C:\mydata\""
I want to execute that from another installation in my InstallShield project. I wrote the following code and its not working.
szMyInsPath = "K:\\install\\utilities\\" ^ "FIR" ^ "MyInstaller.exe";
LongPathToQuote(szMyInsPath, TRUE);
szFIRArgs = "/s /v\"/qn DATA_DIR=C:\\mydata\"";
nResult = LaunchAppAndWait(szMyInsPath, szFIRArgs, WAIT);
SdShowMsg("Executing MyInstaller.. Please wait...", FALSE);
Note: If I remove the "/s" and "/qn" from the path, the installer works but the GUI from MyInstaller.exe shows up. Also, Please note that MyInstaller.exe doesn't need any input from the user.
Thanks.
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.

LaunchAppAndWait issue.
Started by
m999
, Jul 14 2012 14:01
1 reply to this topic
Posted 17 July 2012 - 10:51
I believe you need to escape the other backslashes and quotes in szFIRArgs, too, since the script compiler will interpret that string constant:
szFIRArgs = "/s /v\"/qn DATA_DIR=\\\"C:\mydata\\\"\"";
szFIRArgs = "/s /v\"/qn DATA_DIR=\\\"C:\mydata\\\"\"";
Stefan Krüger
InstallSite.org twitter facebook