Solved

VB Uninstall Script

Posted on 2012-03-17
3
1,027 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

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

There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
I was prompted to write this article after the recent World-Wide Ransomware outbreak. For years now, System Administrators around the world have used the excuse of "Waiting a Bit" before applying Security Patch Updates. This type of reasoning to me …
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…

707 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