Unistalling Programs

  1. #1
    ssuth9 is offline Newbie

    Unistalling Programs

    Hello, I need to uninstall a program on multiple XP/2000 PC's. So I want to do through a login script...

    The Program does show up in "Add/Remove Programs", and it does work/uninstall if you use the "Add/Remove" Applet...

    What I want to do is run a script that will uninstall the program for me...

    Can someone help?

    Steve


  2. #2
    ssuth9 is offline Newbie
    Got it...

    There is a Registry setting that hold the Uninstall info for items that show up in the "Add/Remove" applet.

    Here:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall]

    Click "Start | RUN" then type "regedit". The Registry Editor will open...

    --- Warning: Tread lightly while in here. You can really mess your PC up in here ---

    Navigate to the path shown above. Click on the “ + ” next to “Uninstall” Here you will see a bunch of folders/entries.

    One for each program installed. Click on one of the folders in the Left column, and the entries for that program will show in Right column.

    One should be “UninstallString”.

    If you double click the entry “UninstallString” a window pops up, and the field labeled “Value Data” holds the info…

    If you Copy and Paste what is in “Value Data” to a Command Window and hit Enter the Program will uninstall…

    Now I can paste that info in to a VBScript that run at login and I’ve some free time now…

    You might want to play with sending Key Strokes if you want to uninstall without user interaction. Most programs usually ask “If you really want to uninstall” and you have to click on “Yes” or “OK”.

    Sample:
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys "{ENTER}"

    Steve

+ Reply to Thread