Thanks @ Michael-Urman, I found the answer:
I have to use an executable command package. You can execute several commands using the & (or && ) symbol.
But I need to start the installation first, and then run the program. Therefore, I used the start /wait command.
Last command:
start /wait setup.exe /w /s /v/qb && "C:\Program Files (x86)\Company\Product\program.exe"
/wait pauses cmd until the installation completes and then runs the following command.
/w saves setup.exe until the msi package is successfully installed.
/s automatically installs the program and /v passes arguments to the msi installer (see the documentation ).
/qb shows the basic msi installer user interface. (see documentation ).
&& (compared to & ) runs the 2nd command if the first command is successful.
source share