Detecting running process, have it appear in MsiRMFilesInUse - Advanced Installer Community
hmemcpy
Posts: 3
Joined: Fri Jan 24, 2014 12:49 am

Detecting running process, have it appear in MsiRMFilesInUse

Hello!

I'm writing a plugin for a program, and I want my installer to close that program upon installation.
I found several ways to detect a running process and prompt user to close it with a message box, however I was hoping there was a more "elegant" way of doing this, mainly, have this process appear in the MsiRMFilesInUse dialog (and somehow force this dialog page to appear), so that the Installer could close this process?

Alternatively, what would be the "recommended" way of closing a running process before install?

Thanks!
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Detecting running process, have it appear in MsiRMFilesI

Hello,
I found several ways to detect a running process and prompt user to close it with a message box, however I was hoping there was a more "elegant" way of doing this, mainly, have this process appear in the MsiRMFilesInUse dialog (and somehow force this dialog page to appear), so that the Installer could close this process?
In order to achieve this you can create your own custom dialog. For example, you can replace the "Display message box" custom action with a "Display a specific child dialog" control event added on your dialogs and, then customize as you want the new created spawn dialog.
Alternatively, what would be the "recommended" way of closing a running process before install?
The approach exposed by my colleague Eusebiu is a recommended one.

If you have any questions just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
GeorgeNJ
Posts: 20
Joined: Wed Mar 13, 2013 10:15 pm

Re: Detecting running process, have it appear in MsiRMFilesI

Daniel wrote:
Alternatively, what would be the "recommended" way of closing a running process before install?
The approach exposed by my colleague Eusebiu is a recommended one.

If you have any questions just let us know.

All the best,
Daniel
Do you have a link to Eusebiu's recommendation?

Thanks.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Detecting running process, have it appear in MsiRMFilesI

Hello,

Yes, the approach is debated in our "Custom Launch Condition Help" thread.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”