Sign in to follow this  
Followers 0
frankhack1

if winexist.... sometimes it does exists and sometimes it doesn't

2 posts in this topic

I install some programs to my clients and sometimes it happens that this clients had a previous version of the program I'll install to them, so during the installation it pop-ups a windows saying that "The directory already exists" and if I do it in a new client computer where there is no previous version of the program I install, there is no "The directory already exists" pop-up.

For example the "eMule". So I'd made a script to make an unnnatended installation, but the freaking pop-up stops the macros, so I tried with the command:

If WinExists("The directory already exist") Then
ControlClick("The directory already exist", "", "OK")

but is not working for me... I need a global solution that can work in computers where there is a previous version of the program I will install and in computer where there is no previous version....

Anyone?

Thanks a lot!

Share this post


Link to post
Share on other sites



Use the AutoIt Window Info tool to get the title of that popup window. The "The Directory.." part is just the text of that window, and it is not enough to use just that.


- Bruce /*somdcomputerguy */  If you change the way you look at things, the things you look at change.

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