Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling uninstall

Status
Not open for further replies.

Horrid

Programmer
May 20, 1999
373
This is the uninstall command for an acitveX control I have made.
rundll32 advpack.dll,LaunchINFSection TLregmods.inf,UnInstall

Can anyone help me with calling this from withing visual basic? I need to be able to uninstall the control that is in use so it can be upgraded.

Or the URL of somewhere with good info on using inf files for installations and upgrades from the web.

thanks for any help
 
You can pass a command line using the Shell statement like this:

Shell "notepad.exe" & " C:\windows\desktop\new text document.txt"

You may be able to shell Rundll32.exe and pass it your uninstall information in the same way.

Hope that works!

-Mike

Any man willing to sacrifice liberty for security deserves neither liberty nor security.

-Ben Franklin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top