InstallShield Windows

Ask general questions here.
Posts: 14
Joined: Wed Apr 01, 2009 7:32 pm

InstallShield Windows

Post by jjorgens » Wed Jun 10, 2009 7:04 pm

I am trying to uninstall a program from add/remove programs. I am having trouble because when I click the remove button a installshield window pops up briefly and then asks if I want to continue. I am trying to get the yes button pressed, but I cant seem to find the form the button is on. When I do a findSingle to find the form, it finds the first window that briefly pops up but not the one with the buttons on it. I have tried several different approaches to solve this and none seem to work. When I look in the Ranorex Spy, I am able to see that it shows up. I think part of the problem is that both forms have the same text for the title. I am not sure how to differentiate between the two forms. Any ideas why I cant find the installshield form?


User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Post by Support Team » Thu Jun 11, 2009 1:26 pm

Please, note down the path for the popup using Ranorex Spy and use this path in the FindSingle method. Using RanoreXPath you should usually be able to differentiate between windows that have the same title.

Which operating system are you working on?

Ranorex Support Team

User avatar
Posts: 1336
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Post by Ciege » Thu Jun 11, 2009 5:38 pm

Or, if you do not want to use a hard coded path you can write a method to find the window dynamically.

You can continue to use findsingle and check the window found for the button you are looking for. If the button is not there, wait for a bit and retry.

Or you can try to just find all children windows of the desktop and iterate them yourself for the properties you want to find:

Code: Select all

IList<Ranorex.Form> allForms = Host.Local.FindChildren<Ranorex.Form>();
foreach (Ranorex.Form HDForm in allForms)
Also, try checking other properties of the window in Spy rather than just the text... Check the Accesible Name or Control Name properties to see if you can differentiate there.

Posts: 14
Joined: Wed Apr 01, 2009 7:32 pm

Post by jjorgens » Thu Jun 11, 2009 8:56 pm

Thanks, I will try those suggestions out and see if that works. I am working on Windows XP 32 bit