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

setup.exe from command prompt


1 reply to this topic

guyjoules

guyjoules
  • Full Members
  • 18 posts

Posted 05 February 2008 - 19:21

Hey all..

From InstallShield manual -
Due to the nature of DOS, when you launch Setup.exe from the command line, a DOS prompt is quickly returned although Setup.exe is still in memory.

Now, I need to run uninstallation of another setup.exe from my installing silently. It can easily be done using RunAppAndWait("setup.exe", "/s....", WAIT), but, like the manual says, it reurns immediately and I need to wait for the uninstallation to finish before proceeding.

I tried -
WaitForApplication(LAAW_PROCESS_INFORMATION.hProcess, LAAW_PROCESS_INFORMATION.dwProcessId, 10000, LAAW_OPTION_WAIT);

but it also returns immediately.

Is there a way to overcome this behavior?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 08 February 2008 - 00:35

Try the /SMS switch