Check for other MSI instance running - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

V&G
Posts: 2
Joined: Mon Feb 07, 2011 11:01 am

Check for other MSI instance running

Is there some way to check for other MSI instance running BEFORE Welcome dialog appears?
In case some MSI running, to show a message like "other installation in progress" and exit installation.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Check for other MSI instance running

Hello,

Windows Installer has this behavior implemented by default. It is not permitting two MSI install processes to run at the same time.
You could try to detect the "msiexec.exe" process and condition your setup according to that. This process remains active for a while even after an installation has terminated, so this approach wouldn't be recommended.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
V&G
Posts: 2
Joined: Mon Feb 07, 2011 11:01 am

Re: Check for other MSI instance running

Thank you for your reply!

I just created test setup project in VS, built it and launched twice its setup.exe. I got two different Welcome screens.
What I'm looking for is notification message on the second attempt.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Check for other MSI instance running

Hi,

The second UI may start, but two simultaneous MSI installation processes cannot be completed. This is a Windows Installer standard.
What I'm looking for is notification message on the second attempt.
Unfortunately you cannot detect the UI of another MSI from your package.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”