Archive: Install and immediatelly execute file?


Install and immediatelly execute file?
Hi!

How do I install and immediatelly execute a file? The following script would install MSDEChk.exe correctly, but ExecWait gives an error. On second execution ExecWait works ok. Does "File" somehow spool the files that need to be installed?

Here is the script:

Section "xyz" SecCopyUI
SetCompress Auto
SetOverwrite IfNewer
SetOutPath "$INSTDIR"

File "C:\Development\MSDEChk.exe"
ExecWait "$INSTDIR\MSDEChk.exe" $9
ifErrors MSDECHKMISSING ; at first run I get here an error
; the second time it runs allright.

Kulle


Did you try ExecShell


This seems to solve it. Thanks for helping out!

Kulle