How to wait for a msi execution

Got a problem you cannot solve? Try here.
sorin
Posts: 8
Joined: Thu Feb 01, 2007 9:22 am

How to wait for a msi execution

Postby sorin » 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 ?

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: How to wait for a msi execution

Postby FrancescoT » Tue Jun 09, 2015 1:14 pm

Dear Sorin,

unfortunately what your reported is a know issue and currently, it doesn't exist a possible workaround to use in this case.

The only possible alternative is to call an EXE version of your package from the updater.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

sorin
Posts: 8
Joined: Thu Feb 01, 2007 9:22 am

Re: How to wait for a msi execution

Postby sorin » Wed Jun 10, 2015 6:34 am

Hi,

Thank you for your message.

Regards,
Sorin

FabSter
Posts: 14
Joined: Wed May 28, 2014 2:36 pm

Re: How to wait for a msi execution

Postby FabSter » Thu Jul 30, 2015 1:29 pm

Hello,

Using a tool to deploy client installation to a large number or workstation is very typical. The deployment tools can only tell by the exit code if there were successful or not, since the MSI always completes with a success code immediately this causes two problems (1) the deployment to may terminate the session before the MSI is completed and (2) it always thinks the installation is successful and confusing the client thinking the installation should be working correctly. Is there a patch expected for this issue?

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: How to wait for a msi execution

Postby FrancescoT » Mon Aug 03, 2015 11:23 am

Dear FabSter,

as I said previously; currently, it doesn't exist a possible workaround to use in this case and not a fix expected.

Anyway, you may also consider IA Direct Deploy as possible alternative to distribute installers across via Active Directory network.

"Direct Deploy complements Microsoft's Group Policy deployment mechanism for MSI files, providing rapid deployment for any EXE installer across an Active Directory network; together with the capability to obtain statistics on installed product versions and repair/uninstall them."

For more details, please refer to "Direct Deploy" with InstallAware documentation.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 109 guests