Hi, I am trying to use VT to uninstal a older version software and then instal a new version, when I enter Add/Remove Program" window, form (winfo),it shows all the software are in a window, not a listview, how could I click the specified software item and click remove? Using
recorder,it will capture the "position" of the item and use "play" to click the item, but this is not what I want, since the positon changes frequently,can you suggest me any other better way? Thanks
There is another way to handle this as typically Windows stores an uninstall string in the Windows registry which can be used to programtically call the uninstall routine for the application yo wish to uninstall. In Windows 2000, XP, 2003 Server, the key is located under:
For example, located under the following registry key:
\Visual Test 6.01 Run-Time Install
With this Registry key, I can find the uninstall string that can be called from the command line to remove the Visual Test runtimes that I install on machines without a full install of Visual Test in order to run .pc6 script files:
That means I can call the uninstall from within a VT script using the "Run" function. The problem with this approach is that in the majority of cases, the registry key for the software you want to remove is not so easy to find. Software that is installed with InstallShield will most likely have a SID assigned for the registry key name instead of a more logical moniker like "Visual Test 6.01 Run-Time Install". This is not an insurmountable but it means that in such cases, you may have to traverse/search all of the
uninstall registry entries in order to to find the correct registry for your application - here is one way to do it in order to come up with the uninstall string. See my post here!
Michael - Armageddon was yesterday, today we have a serious problem!