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 return code


2 replies to this topic

BobRouse

BobRouse
  • Members
  • 82 posts

Posted 26 October 2001 - 16:53

According to the documentation, the LaunchAppAndWait function will return:

 1 -  Success
<0 - Failure

However, I get a 0 back, which does not seem to be covered by the documentation. Any ideas?

Thanks,


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 26 October 2001 - 18:09

This may be a bug in the help file.

xgwsmbr

xgwsmbr
  • Members
  • 1 posts

Posted 26 September 2002 - 14:27

I have the same effect. When I start some Applications with "LaunchAppAndWait" then I get Returncode 1 and sometimes Returncode 0.

But the applications do fine, so the returncodes 0 and 1
seem to mean, that the application was executed successfully.

The help-Files are still unchanged with Version 2.03, so the
returncode 0 ist still undocumented.

The function CreaterProcess int the kernel32.dll that is called intenally in LaunchAppAndWait returns 0 if the application could not be started and a returncode > 0 if it was successfull.