Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

uninstall NT application

Status
Not open for further replies.

tonykent

IS-IT--Management
Jun 13, 2002
251
GB
Can anyone point me to a module that will enable me to uninstall a Windows NT application using perl? The app in question installs from an msi but refuses to uninstall except through the add/remove software feature in the control panel (i.e. it won't uninstall from the commandline using msiexec /x switch).

I've had a look on cpan but there are so many win32 modules that I wasn't able to find the wood for the trees!
 
If it's a particular application

get a clean machine, export registry, install app, export registry, uininstall app export registry. Compare the three registry files, and see what keys are affected, these are the ones you'll want to delete, also see if you can get the path, or filelist in the registry as to what files to delete from the disk.

One of the registry modules should be all you need, does this need to be run in administrator mode to uninstall at present?

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
Thanks for the response Paul.

Eventually I had figured out I was being thick (not much change there).

I just used regedit to go to HKLM/software/Microsoft/windows/currentversion/uninstall and got the uninstall strings for all the apps in question then ran them as

msiexec /q/x{<string>}

inside a script and it worked fine.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top