?
Solved

VB Uninstall Script

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

Get real performance insights from real users

Key features:
- Total Pages Views and Load times
- Top Pages Viewed and Load Times
- Real Time Site Page Build Performance
- Users’ Browser and Platform Performance
- Geographic User Breakdown
- And more

Question has a verified solution.

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

Configuring Remote Assistance for use with SCCM
This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
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…
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…

801 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