giacino
Posts: 10
Joined: Tue Oct 25, 2005 5:54 pm

Close web browser

Hi,

Is it possible to prompt a dialog box at the beginning of the installation process asking users to close any opened web browser?

Ideally I would like to check if any web browser is currently opened, if so, prompt that window "please close your web browser" "Cancel, OK", and if the user then clicks OK, I want to check back if any web browser is opened. If they are all closed I will process the installation.

Thank you in advance for your insights,

Guillaume
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,
Is it possible to prompt a dialog box at the beginning of the installation process asking users to close any opened web browser?
Yes, it is. Create a new Script Inline Custom Action scheduled on the InstallUISequence -> Begin (not InstallExecuteSequence because it would be too late). Set the following properties for this Custom Action:
- Script Text:

Code: Select all

MsgBox "Please close any opened web browsers", 48, "Title"
- Execution Condition: (Not Installed)
Ideally I would like to check if any web browser is currently opened, if so, prompt that window "please close your web browser"
This is also possible using a much more complex Custom Action. Basically, you need to find all the browser windows (using their titles) and send a message or a key sequence (Alt+F4) to each of these windows. However, taking into consideration the large number of web browsers and the complexity of this Custom Action, I do not think it is worth the effort.

Regards,
Denis
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
giacino
Posts: 10
Joined: Tue Oct 25, 2005 5:54 pm

Thanks Denis.

I've used the MsgBox action with our recommendations and it works great.
You are right, too many browsers to test.

Thanks again,

Guillaume

Return to “Common Problems”