Solved

VB Uninstall Script

Posted on 2012-03-17
3
1,024 Views
Last Modified: 2012-03-18
I'm trying to create an uninstall vbscript. This is the uninstall string:

rundll32.exe "C:\Program Files\Lenovo\VIRTSCRL\cleanup.dll",InfUninstall DefaultUninstall.LH 132 C:\Program Files\Lenovo\VIRTSCRL\tpdu_vs.inf

Attached is my foolish attempt to create one on my own which doesn't seem to be working correctly. Can anyone correct my super noob script? Basically im using kaseya to create an uninstall procedure. Having kaseya just run that command doesn't seem to be working so i wanted to run a vbscript as local admin and uninstall said software. Any help?


MG.
RemoveVirtScroll.vbs
0
Comment
Question by:TropicalPriest
3 Comments
 
LVL 10

Accepted Solution

by:
CSI-Windows_com earned 500 total points
ID: 37733651
I can't verify it on my system, but you have to escape the internal set of quotes and remove the "*" from the end, like this:

Set objShell = CreateObject("WScript.Shell")
objShell.Exec("rundll32.exe ""C:\Program Files\Lenovo\VIRTSCRL\cleanup.dll"",InfUninstall  DefaultUninstall.LH 132 C:\Program Files\Lenovo\VIRTSCRL\tpdu_vs.inf")
0
 
LVL 16

Expert Comment

by:cantoris
ID: 37734517
And if that doesn't work, try this:

Set objShell = CreateObject("WScript.Shell")
objShell.Exec("rundll32.exe ""C:\Program Files\Lenovo\VIRTSCRL\cleanup.dll"",InfUninstall  DefaultUninstall.LH 132 ""C:\Program Files\Lenovo\VIRTSCRL\tpdu_vs.inf""")
0
 

Author Comment

by:TropicalPriest
ID: 37735301
It works thanks!! Any way to have it run as admin? Like a "run as" emulator?
0

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
Learn how to PXE Boot both BIOS & UEFI machines with DHCP Policies and Custom Vendor Classes
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
This Micro Tutorial will give you basic overview of the control panel section on Windows 7. It will depth in Network and Internet, Hardware and Sound, etc. This will be demonstrated using Windows 7 operating system.

790 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question