Require all browsers closed

Got a problem you cannot solve? Try here.
Post Reply
tofutim
Posts: 176
Joined: Thu Mar 01, 2012 1:16 pm

Require all browsers closed

Post by tofutim »

Is there a way to require that all browsers (IE, Firefox, Chrome) are closed during installation?
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Require all browsers closed

Post by FrancescoT »

Probably you mean... if it is possible to close all the browser applications that are eventually open.

If true, InstallAware does not have a built in command to do it.
You could realize an external component to accomplish your task ... or maybe with a script using WIN API calls ... generally it is not done by forcing the application to close, but asking the user to close those before to continue.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
tofutim
Posts: 176
Joined: Thu Mar 01, 2012 1:16 pm

Re: Require all browsers closed

Post by tofutim »

Yes, that's much more elegant. Sometimes you see installers that indicate such-and-such application is still open. Please close them to continue. That's what I am after.
bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Re: Require all browsers closed

Post by bokkie »

I don't have it to hand, but yes, there is a Windows API in the kernel.dll. You can call it to get the handle to a window using the window title. You can check for an invalid value to confirm if its open or not.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP
Post Reply