Top DevX Stories
Creating Custom Export Filters for StarOffice with XSLT
WPF Wonders: Using DataTemplates
Crystal Reports Family Offers Options for Developers
Avaya Aura Session Manager video
Avaya Aura Overview video
Search the forums:

Go Back   DevX.com Forums > DevX Developer Forums > VB Classic

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-14-2009, 03:31 AM
Shannon Shannon is offline
Registered User
 
Join Date: Apr 2004
Location: Hawaii
Posts: 206
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!
Reply With Quote
  #2  
Old 10-14-2009, 08:18 AM
Hack's Avatar
Hack Hack is offline
Super Moderator
 
Join Date: Apr 2007
Location: Sterling Heights, Michigan
Posts: 7,719
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

Microsoft MVP 2005/2006/2007/2008/2009
Reply With Quote
  #3  
Old 10-14-2009, 04:29 PM
Shannon Shannon is offline
Registered User
 
Join Date: Apr 2004
Location: Hawaii
Posts: 206
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?
Reply With Quote
  #4  
Old 10-16-2009, 03:22 AM
Shannon Shannon is offline
Registered User
 
Join Date: Apr 2004
Location: Hawaii
Posts: 206
Hack? Psssssssssssstttttt ....
Reply With Quote
  #5  
Old 10-16-2009, 07:12 AM
gibra's Avatar
gibra gibra is offline
Registered User
 
Join Date: Mar 2009
Location: Italy - Breganze (VI)
Posts: 75
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.

Reply With Quote
  #6  
Old 10-17-2009, 03:48 PM
Shannon Shannon is offline
Registered User
 
Join Date: Apr 2004
Location: Hawaii
Posts: 206
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?
Reply With Quote
  #7  
Old 10-19-2009, 09:13 AM
Hack's Avatar
Hack Hack is offline
Super Moderator
 
Join Date: Apr 2007
Location: Sterling Heights, Michigan
Posts: 7,719
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

Microsoft MVP 2005/2006/2007/2008/2009
Reply With Quote
  #8  
Old 10-21-2009, 03:26 PM
Shannon Shannon is offline
Registered User
 
Join Date: Apr 2004
Location: Hawaii
Posts: 206
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!
Reply With Quote
  #9  
Old 10-21-2009, 03:29 PM
Hack's Avatar
Hack Hack is offline
Super Moderator
 
Join Date: Apr 2007
Location: Sterling Heights, Michigan
Posts: 7,719
Couple of things...

http://www.jrsoftware.org/isinfo.php

http://msdn.microsoft.com/vstudio/do.../download.aspx
__________________
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

Microsoft MVP 2005/2006/2007/2008/2009
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Published vs. debugging build of app (endless looping) Noryk Rekrap .NET 1 09-10-2007 08:17 PM
An Uninstall Program for my App Shannon VB Classic 7 09-01-2007 09:02 AM
App Problem with MS Office ... Shannon VB Classic 7 06-24-2007 09:47 PM
How to make App B modal in App A? Måns VB Classic 2 11-11-2000 06:17 PM
How to make App B modal in App A? Måns VB Classic 0 11-08-2000 08:28 AM


All times are GMT -4. The time now is 11:22 PM.


Sponsored Links



Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.