Writing an Uninstall App ...


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 9 of 9

Thread: Writing an Uninstall App ...

  1. #1
    Join Date
    Apr 2004
    Location
    Hawaii
    Posts
    220

    Question Writing an Uninstall App ...

    VB6/WinXP/Hobby Programmer. I want to write a simple little App to include with my main App (in the Programs directory) that will uninstall the Main App for the user without them having to do it through Windows.

    My app does not make any registry entries or do anything fancy to the user's system. Can someone tell me what other considerations I need to make, other than deleting the App folder, or what I need to clean out of Windows to do it properly.

    Thanks!

  2. #2
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    All you can do is delete the app folder.

    If you make a uninstall program from VB6 it is going to require the same runtime and dependency files to execute as does the program you are trying to delete, so you really can't remove any of those. The only thing left is the .exe of the app.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  3. #3
    Join Date
    Apr 2004
    Location
    Hawaii
    Posts
    220
    But if I just delete the App folder, doesn't that leave remnants of ... stuff, like in the Windows 'Add/Remove Software' list, where it will still show my App (I assume by a registry entry somewhere), even thought the App folder is now deleted?

  4. #4
    Join Date
    Apr 2004
    Location
    Hawaii
    Posts
    220
    Hack? Psssssssssssstttttt ....

  5. #5
    Join Date
    Mar 2009
    Location
    Italy - Breganze (VI)
    Posts
    120
    You can't unistall correctly applications that wasn't previously installed using the "standard rules" for Add/Remove programs.

    Then

    1. you have to document correctly about this "standard rules" and related problem concerning Windows versions difference, Registry access, user permission, register/unregister components and check numerator-of-use related, and many many other questions very hard to learning (if you don't know anything).

    2. Next, create a your TOOL that Install/Unistall applications, based on "standard rules (point 1)

    Last, install applications using your TOOL, and Remove applications using your TOOL.


    The question now is:
    There are many many great tools that already achieve this task,
    how much it's convenient spend a lot of time to learning all this?
    Above all, you must think that VB 6.0 itself is a obsolete language, no longer supported by Microsoft.

    However, if you want re-invent the wheel, you can start using the PDWizard source project shipped with VB 6.0, located here:
    <ProgramFiles>\Microsoft Visual Studio\VB98\Wizards\PDWizard\Setup1

    BUT! Keep in mind that this project is very-very-very obsolete!!!
    Therefore, yours setup created by the PDW will be NOT Windows XP SP3, Vista and Windows 7 compliant.


  6. #6
    Join Date
    Apr 2004
    Location
    Hawaii
    Posts
    220
    The VB6 Setup PDW will not work with Vista or Win7??? I thought VB6 was supposed it be FULLY compatible. Wouldn't that include the PDW, despite that it's obsolete?

  7. #7
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    Even in the best of times, the package and deployment wizard left much to be desired.

    Will it work in Vista or Windows 7? Maybe....maybe not, but, regardless, as gibra points out, it won't be compliant.
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

  8. #8
    Join Date
    Apr 2004
    Location
    Hawaii
    Posts
    220
    Gibra, Hack, what is a good PDW by todays standards (to use with VB6)? I don't mind paying for one (within reason), just so it's fairly easy to use without a lot of book learning (no time). I don't have any fancy needs, just something that accomplishes the basic steps of the VB6 PDW would be enough.

    Gibra you said, "There are many many great tools that already achieve this task". Could you give some examples, please?

    Thanks very much!

  9. #9
    Join Date
    Apr 2007
    Location
    Sterling Heights, Michigan
    Posts
    8,666
    I don't answer coding questions via PM or Email. Please post a thread in the appropriate forum section.
    Please use [Code]your code goes in here[/Code] tags when posting code.
    Before posting your question, did you look here?
    Got a question on Linux? Visit our Linux sister site.
    Modifications Required For VB6 Apps To Work On Vista

Similar Threads

  1. Replies: 1
    Last Post: 09-10-2007, 07:17 PM
  2. An Uninstall Program for my App
    By Shannon in forum VB Classic
    Replies: 7
    Last Post: 09-01-2007, 08:02 AM
  3. App Problem with MS Office ...
    By Shannon in forum VB Classic
    Replies: 7
    Last Post: 06-24-2007, 08:47 PM
  4. How to make App B modal in App A?
    By Måns in forum VB Classic
    Replies: 2
    Last Post: 11-11-2000, 05:17 PM
  5. How to make App B modal in App A?
    By Måns in forum VB Classic
    Replies: 0
    Last Post: 11-08-2000, 07:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center