Results 1 to 5 of 5

Thread: Uninstall the application

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Sep 2005
    Posts
    27

    Uninstall the application

    Hi


    How to uninstall the software when clicking button in vb form with out going to control panal.

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Uninstall the application

    Most installers create an UnInstall.exe in the app.path's folder. Just call it directly.

  3. #3
    Hyperactive Member
    Join Date
    Feb 2001
    Posts
    280

    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....

  4. #4
    Banned programmer_boy's Avatar
    Join Date
    Sep 2005
    Location
    Netherlands
    Posts
    26

    Re: Uninstall the application

    Quote 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:
    1. Shell "c:\program files\myApp\uninstall.exe"

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    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
  •  



Click Here to Expand Forum to Full Width