FilesInUse Dialog - 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!

kojie
Posts: 1
Joined: Thu Aug 28, 2008 8:59 am

FilesInUse Dialog

Hi,

I have created an Outlook plugin and during install/uninstall I would like for the installer to Detect out look and show the outlook is running and the option to be able
to close it using the FilesInUse or MSIrmfilesinuse dialog.

Btw, our company has a purchased a copy of AI.

Thanks,
Ryan
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: FilesInUse Dialog

Hi,

Please note that the "FilesInUse" and "MsiRMFilesInUse" dialogs are shown automatically by Windows Installer and they cannot be controlled. However, you can create your own custom action which checks if Outlook is running and prompt the user.

Note that the Detect and stop a process how-to explains an approach for this. Also, the Uninstall another MSI when my product is uninstalled how-to contains sample code for showing a Yes/No message box and performing some actions based on the button pressed by the user.

For example, you can detect if the process used by Outlook is running. If it is, you can show a custom message box to the user about this and ask if he wants to stop it. If he clicks "Yes" you can stop the process and if he clicks "No" you can make the custom action wait for about 10 seconds and detect the process again.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Cash
Posts: 18
Joined: Thu Aug 28, 2008 9:34 pm

Re: FilesInUse Dialog

I've tried reading and following the link above out Detecting and Stoping a process. However, I can't figure out how to create a very simple Parameter to hold the value of the VB script once run.

1. How do I create a parameter to be used anywhere in the install app that I want?

2. Is there a more descriptive tutorial on how to detect if a process is running and ask the user to shut id down before continuing.

I have spent hours on this,.

Thanks,

-Scott
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: FilesInUse Dialog

Hi Scott,
How do I create a parameter to be used anywhere in the install app that I want?
This parameter is already created in the detection sample script and it is the PROCESS property. Since its a public property it can be accessed anywhere in the installation (except deferred custom actions).
Is there a more descriptive tutorial on how to detect if a process is running and ask the user to shut id down before continuing.
I'm afraid that there is no tutorial which is more descriptive about detecting a process. However, you can try using the approach I suggested in my previous post: detect the process by using the sample detect custom action and prompt the user by using the sample code in the Uninstall another MSI when my product is uninstalled how-to.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”