Jump to content


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.
Photo

LaunchAppAndWait issue.


1 reply to this topic

m999

m999
  • Full Members
  • 1 posts

Posted 14 July 2012 - 14:01

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.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

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\\\"\"";