Jump to content
Sign in to follow this  
Joeb1

Add/Remove Programs Window Usage

Recommended Posts

Joeb1

I am trying to utilize Control Panel>Add/Remove Programs to uninstall some software so I can reinstall it. I need to know a good approach to do this. I have figured out how to open the add/removed window directly but now need a reliable way to always access the correct program to remove.

I was first thinking of the following:

1) Get the window size

2) Locate the mouse position relative to the window size

3) Click it and then follow each window path etc. to remove it.

But it occurs to me that there are flows with this idea. What if another program gets loaded? Now my relative positions are wrong. I could maximize it first but then I would be worried about screen sizing.

So any ideas on a good approach and functions to use etc?

Share this post


Link to post
Share on other sites
SmOke_N

I am trying to utilize Control Panel>Add/Remove Programs to uninstall some software so I can reinstall it. I need to know a good approach to do this. I have figured out how to open the add/removed window directly but now need a reliable way to always access the correct program to remove.

I was first thinking of the following:

1) Get the window size

2) Locate the mouse position relative to the window size

3) Click it and then follow each window path etc. to remove it.

But it occurs to me that there are flows with this idea. What if another program gets loaded? Now my relative positions are wrong. I could maximize it first but then I would be worried about screen sizing.

So any ideas on a good approach and functions to use etc?

You'd be better off using the uninstall strings for locations and uninstall options.

In the registry that is.

Edited by SmOke_N
Clarity

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites
big_daddy

You may want to take a look at Uninstall Apps in my signature.

Share this post


Link to post
Share on other sites
weaponx

Slightly off topic but Nirsoft make an Add / Remove programs alternative that is superb:

http://www.nirsoft.net/utils/myuninst.html

Edited by weaponx

Share this post


Link to post
Share on other sites
Joeb1

You may want to take a look at Uninstall Apps in my signature.

Thanks! Did not even know about uninstall strings in registry. Not a programmer by trade, just know enough to be dangerous. I should be able to follow your code and fiugure it out. Saves me a lot of research time and experimentations. I appreciate it!!

Share this post


Link to post
Share on other sites
big_daddy

Slightly off topic but Nirsoft make an Add / Remove programs alternative that is superb:

http://www.nirsoft.net/utils/myuninst.html

Thanks for the link. That gives me some ideas for improving mine.

Thanks! Did not even know about uninstall strings in registry. Not a programmer by trade, just know enough to be dangerous. I should be able to follow your code and fiugure it out. Saves me a lot of research time and experimentations. I appreciate it!!

You're welcome!

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  

×