Sign in to follow this  
Followers 0
mattw112

Help with closing windows

3 posts in this topic

I was wondering what the best way to do this is?

When I'm doing an uninstall on a machine, sometime there are windows open on the machines before I start. Could be error dialogs, could be other apps, whatever.

I want to close all windows that are open on the machine before doing the uninstall.

Some may be minimized, some may be maximized, some I guess could even be hidden.

The other piece is I don't know all the possible combination of things that could be open so I can't kill the processes.

Is there a way to either gett his information, or maybe just maximize all windows and then do a winclose one at a time, or maybe another command to say close all open windows, which would be the easiest?

Thanks,

Terry

PS - I'm fairly new to this so if I'm missing something let me know! Thanks.

Share this post


Link to post
Share on other sites



Sounds risky in that a user could lose unsaved data. I think I've seen, sometwhere in these forums, an example using WinList to help close all windows.

I'd personally just ProcessClose the program you are trying to uninstall....


Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Sounds risky in that a user could lose unsaved data. I think I've seen, sometwhere in these forums, an example using WinList to help close all windows.

I'd personally just ProcessClose the program you are trying to uninstall....

Thanks, I'll look for some winlist stuff.

Closing processes would be fine, except not knowing the name. Could be many different things open, not just what I'm uninstalling. As for users losing info, were giving them warning in advance, 30 min, blocking input, etc...

Terry

Edited by mattw112

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0