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.

Executable return value from LaunchAppAndWait()

1 reply to this topic


  • Members
  • 2 posts

Posted 20 September 2004 - 11:56


Stefan Krueger created an Extended Version of LaunchAppAndWait back in 2002 but mentioned in the description:
"InstallShield Professional 7: this version has a new implementation of the LaunchAppAndWait function that is quite similar to LaunchAppEx, so this package is obsolete if you're using Professional version 7"

I'm trying to get a return value from Mircosoft MSDE SCM.exe as I want to find out if a service is running. But LaunchAppAndWait() only returns 0 (SCM will return 1 or -1). How can I get the right return value.

I'm using IS Pro 7.01

Lars Thorborg
Himsa A/S

Edited by Himsa, 20 September 2004 - 12:02.

Stefan Krueger

Stefan Krueger


  • Administrators
  • 13,269 posts

Posted 20 September 2004 - 20:19

If the function is successful and the LAAW_OPTION_WAIT option was specified, the LAAW_PARAMETERS system variable's nLaunchResult member contains the return code of the launched application.