How to wait for a msi execution
Posted: Tue Jun 09, 2015 6:16 am
Hi,
I created an autoupdater for my app. In this auto updater I want to launch mysetup.msi (created with installaware) and to wait until it finish.
I tried many commands like:
msiexec.exe /i mysetup.msi /qb
start /wait msiexec.exe /i mysetup.msi /qb
start ”” /wait msiexec.exe /i mysetup.msi /qb
start ”” /w msiexec.exe /i mysetup.msi /qb
every time the mysetup.msi is started and my command go to next step - and NO WAIT for the setup to finish its work.
if I use another (not an installaware) setup the previous commands (like start /wait ...) work ok.
This behavoir is like when a program (mysetup.msi) launch another program and finish its executions right away.
I tested those commands on cmd window. In my (Delphy) app I can't launch the "start ..." command (using createprocesss with WaitForSingleObject infinite) but I can launch "msiexec.exe /i mysetup.msi /qb", obviously without effect.
Can you help my with this issue ?
I created an autoupdater for my app. In this auto updater I want to launch mysetup.msi (created with installaware) and to wait until it finish.
I tried many commands like:
msiexec.exe /i mysetup.msi /qb
start /wait msiexec.exe /i mysetup.msi /qb
start ”” /wait msiexec.exe /i mysetup.msi /qb
start ”” /w msiexec.exe /i mysetup.msi /qb
every time the mysetup.msi is started and my command go to next step - and NO WAIT for the setup to finish its work.
if I use another (not an installaware) setup the previous commands (like start /wait ...) work ok.
This behavoir is like when a program (mysetup.msi) launch another program and finish its executions right away.
I tested those commands on cmd window. In my (Delphy) app I can't launch the "start ..." command (using createprocesss with WaitForSingleObject infinite) but I can launch "msiexec.exe /i mysetup.msi /qb", obviously without effect.
Can you help my with this issue ?