I'm using InstallAware Multi-Platform Version 2025 (2.1) [Windows x86].
The Run Program command always returns -1. I'm using commands that work fine in CMD, but they still return -1 when run through Run Program.
Run Program cmd.exe echo Hello, World! (WAIT, get result into variable _appsOpen)
if Variable _appsOpen Equals -1
MessageBox: , $_appsOpen$ apppppppp
Terminate with Exit Code -1
end
Run Program C:\Windows\System32\cmd.exe /c start "" "$TARGETDIR$\Opkey Execution Agent\ExecutionAgent_Web_NetCore.exe" (WAIT, get result into variable _appsOpen)
Using this code, I want to launch my program's .exe.
Can you provide me with a sample code showing how to launch my application’s executable?
How can I close a running application during installation in installaware? The application should be closed first, and then the installation process should start.
Using the Restart Manager is the best (and official) way to do this on Windows, but since it is not a platform agnostic solution, it is not supported in InstallAware Multi Platform.