PDA

View Full Version : How can I catch return value from exe file?



yonitr
12-02-2004, 04:11 AM
Hi,
I need to launch an exe (and not a dll) from a custom action and check it's returned value. The returned value is an Integer between 0 to 5.
How can I catch in order to use it in the following custom actions?

10x

RobertDickau
12-02-2004, 10:19 AM
Alas, Windows Installer doesn't have a built-in technique for doing this; you'd need a custom action that launches the EXE and captures the return value, such as a DLL action that calls CreateProcess or an InstallScript action that calls LaunchAppAndWait...