Solved

VB Uninstall Script

Posted on 2012-03-17
3
1,018 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now