Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

VB Uninstall Script

Posted on 2012-03-17
3
Medium Priority
?
1,036 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 2000 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

IF you are either unfamiliar with rootkits, or want to know more about them, read on ....
MS Outlook undoubtedly is the most widely used email client.Its user-friendliness, cost effectiveness, and availability with Microsoft Office Suite make it the most popular email application.  Its compatibility with Microsoft applications like Exch…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
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…
Suggested Courses

810 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