Hi
How to uninstall the software when clicking button in vb form with out going to control panal.
Printable View
Hi
How to uninstall the software when clicking button in vb form with out going to control panal.
Most installers create an UnInstall.exe in the app.path's folder. Just call it directly.
hi,
can U use wmi?
try here - http://msdn.microsoft.com/library/de...r_software.asp
we have written a tool used by our security group - as well as viewing software on our users pc's, it also gives them a button to uninstall ( objSoftware.Uninstall() )
:)
if using remote then obviously the user in question need admin privs on the remote pc
cheers AJP
Quote:
Originally Posted by SrikanthUppala
I don't think this is going to work.
Because when you call the uninstaller from your application, your application is still running (in use) and can't be removed.
But perhaps you can use the uninstaller to shut down your program first.
The code for running your uninstaller is something like this:
VB Code:
Shell "c:\program files\myApp\uninstall.exe"
Moved to Application Deployment.