Archive: Can you run a temp program from oninit?


Can you run a temp program from oninit?
I need to run a temporary program in the oninit where the program needs to be bundled with the installer and is not on the target PC to start. Is this possible? How do I include the program so that I can call it from oninit just after unpacking?



Function .onInit
InitPluginsDir
Setoutpath $pluginsdir
File "myapp.exe"
ExecWait "$pluginsdir\myapp.exe"
FunctionEnd