I need to launch the application I've just installed at the end of the installation.
However, the application relies on being launched in an environment which has the PATH set.
I am using the environment variables option in Advanced Installer to append the directory I need to the PATH environment variable.
The problem is that the post-install launch of the application is a child process of the MSI Installer process, and only gets its original environment, that is, minus the added-to PATH.
This one is driving me nuts.
Any child process spawned just inherits its parent's environment, and does not pick up a newly modified or set env var. Only a "top-level" launch of a new process will get the newly set env vars.
I'd like to request that Advanced Installer add a way of doing a slightly deferred action (but which is not post-reboot, because I don't need a reboot), where somehow the deferred action is not launched as a sub-process of the MSI installer process. Could something be scheduled using the Windows task scheduler (for like 2 seconds in the future or similar).
By the way, I know that I could use various shell commands in my application launch script to SET PATH, SETX PATH, or SETLOCAL SET PATH etc. but none of those actually seem to affect the currently executing command interpreter and its executable-search path.