MSIRMFilesInUse dialog for browsers on uninstall - Advanced Installer Community
wangzhoulin
Posts: 7
Joined: Tue Jul 16, 2013 7:58 am

MSIRMFilesInUse dialog for browsers on uninstall

The MSIRMFilesInUse dialog can pop-up for closing the application process when uninstall by add/remove. Now,i want to show MSIRMFilesInUse dialog for reminding users whether not close browsers.How do i do?Thanks!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: MSIRMFilesInUse dialog for browsers on uninstall

Hi and welcome to Advanced Installer forums.

The "FilesInUse" dialog is displayed by Windows Installer when a file that was installed by a package is in use during the uninstallation of the same package and unfortunately it cannot be used for files that was not installed by that package.

As a workaround, you can follow the steps described in the Custom Launch Condition Help thread.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wangzhoulin
Posts: 7
Joined: Tue Jul 16, 2013 7:58 am

Re: MSIRMFilesInUse dialog for browsers on uninstall

Thank you for Eusebiu.
I want to show a MSIRMFilesInUse dialog box when detecting iexplorer.exe、chrome.exe and firefox.exe are running that the application uninstall by control pannel. The application process can be detected when uninstall and show a MSIRMFilesInUse dialog box for users whether or not to automatically close applications and restart them.How do i do? I need you help.Thanks!
wangzhoulin
Posts: 7
Joined: Tue Jul 16, 2013 7:58 am

Re: MSIRMFilesInUse dialog for browsers on uninstall

Eusebiu wrote:Hi and welcome to Advanced Installer forums.

The "FilesInUse" dialog is displayed by Windows Installer when a file that was installed by a package is in use during the uninstallation of the same package and unfortunately it cannot be used for files that was not installed by that package.

As a workaround, you can follow the steps described in the Custom Launch Condition Help thread.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Thank you for Eusebiu.
I want to show a MSIRMFilesInUse dialog box when detecting iexplorer.exe、chrome.exe and firefox.exe are running that the application uninstall by control pannel. The application process can be detected when uninstall and show a MSIRMFilesInUse dialog box for users whether or not to automatically close applications and restart them.How do i do?Please give me some examples.Thanks!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: MSIRMFilesInUse dialog for browsers on uninstall

Hi,

The "FilesInUse" dialog is handled by Windows Installer and unfortunately, it cannot be used in your scenario. But, as described in the thread I mentioned above, you can use custom actions to detect if a browser is open, display a message to inform the user and give him the possibility to stop the processes.

The only step different from that post is that you have to place your custom actions above "Install Execution Stage -> Preparing" action group.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
wangzhoulin
Posts: 7
Joined: Tue Jul 16, 2013 7:58 am

Re: MSIRMFilesInUse dialog for browsers on uninstall

Eusebiu wrote:Hi,

The "FilesInUse" dialog is handled by Windows Installer and unfortunately, it cannot be used in your scenario. But, as described in the thread I mentioned above, you can use custom actions to detect if a browser is open, display a message to inform the user and give him the possibility to stop the processes.

The only step different from that post is that you have to place your custom actions above "Install Execution Stage -> Preparing" action group.

Best regards,
Eusebiu
Thank you for Eusebiu.I finished it successed according to your suggesstion.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: MSIRMFilesInUse dialog for browsers on uninstall

You're welcome. I'm glad you got this working.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”