|
-
Nov 2nd, 2005, 12:49 AM
#1
Thread Starter
Junior Member
Uninstall the application
Hi
How to uninstall the software when clicking button in vb form with out going to control panal.
-
Nov 2nd, 2005, 12:55 AM
#2
Re: Uninstall the application
Most installers create an UnInstall.exe in the app.path's folder. Just call it directly.
-
Nov 2nd, 2005, 04:25 AM
#3
Hyperactive Member
Re: Uninstall the application
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
Intel 486dx3 - VB4 - DR-Dos - 2mb EdoRam - 2x CDrom drive - Window for Workgroups - CGA monitor
Real programmers use less....
-
Nov 2nd, 2005, 04:44 AM
#4
Banned
Re: Uninstall the application
 Originally Posted by SrikanthUppala
Hi
How to uninstall the software when clicking button in vb form with out going to control panal.
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"
-
Nov 2nd, 2005, 06:37 AM
#5
Re: Uninstall the application
Moved to Application Deployment.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|