I am installing an setup.exe file through autoit runwait.
And after installation , I need to test the application shortcut.
Initially I have completed installation part and the shortcut functionality part I have done separately.
Both are working as separate exe files(.au3 compiled versions).
But as a final product, when I combined both of them, I am getting the error during shortcut launch as JRE_HOME variable not set.
I think, when both are separate exe files, the env. variable is being set by setup file during first au3 file.
And for second au3 as it is completely separate executable, it is loading the env variables from system at that point of time.
But for combined version, even though it is being set in the system, the au3 being run is not taking the latest values set during its runtime.
I tried restarting the explorer process also by using
Run("explorer.exe",Call(ProcessClose("explorer.exe")));restart explorer
But still no use.
Can anyone provide your suggestions, how to handle this.