Go Back  Xtreme Visual Basic Talk > Legacy Visual Basic (VB 4/5/6) > Installation / Documentation > delete settings on uninstall?


Reply
 
Thread Tools Display Modes
  #1  
Old 07-22-2002, 03:30 AM
dis1411
Guest
 
Posts: n/a
Default delete settings on uninstall?


im making a setup .msi file using vs.net, when the user goes to unistall the prog i'd like it to ask to delete the prog's registry settings (the ones that will come from use of the prog not the installer)
Reply With Quote
  #2  
Old 07-22-2002, 04:43 AM
ChiefRedBull's Avatar
ChiefRedBull ChiefRedBull is offline
ISearchGoogle

Retired Moderator
* Expert *
 
Join Date: May 2001
Location: england
Posts: 6,321
Default

If you know what these reg keys are, it shouldn't be too hard to add something to the uninstall script to remove them...

If you don't know what they are but your program does, you could get your uninstall to shell your program with a command line parameter (perhaps "/uninstall") to which your program would then react by removing all reg keys then unloading itself.
You can check command line parameters passed to your program via the Command$ function.
__________________
Chuck Norris ordered a Big Mac at Burger King, and got one.
Reply With Quote
  #3  
Old 07-22-2002, 04:47 AM
ChiefRedBull's Avatar
ChiefRedBull ChiefRedBull is offline
ISearchGoogle

Retired Moderator
* Expert *
 
Join Date: May 2001
Location: england
Posts: 6,321
Default

__________________
Chuck Norris ordered a Big Mac at Burger King, and got one.
Reply With Quote
  #4  
Old 07-22-2002, 07:19 AM
Banjo's Avatar
Banjo Banjo is offline
Hell's Angel

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Yorkshire, UK
Posts: 10,394
Post

You should try to keep a degree of separation between your product and the installer. If the installer created the keys in the first place then it should delete them. if the app created them however, then go with the shell the app and let it delete them option.
__________________
A wise one man once said "what you talking about dog breath"
Reply With Quote
  #5  
Old 07-22-2002, 08:30 PM
dis1411
Guest
 
Posts: n/a
Default

just to clear up i am talking about using savesetting/getsetting etc. in vb so i know the exact location of the registry values..

how do i make the setup creat the registry values.. thus wanting to delete them on unintall... how do i make it ask to do this? i recall seeing something that said user's registry in vs.net while making a setup but can't find that anymore...

how do i make my prog tell if it is being run with a swith ie prog.exe /uninstall
Reply With Quote
  #6  
Old 07-23-2002, 05:29 AM
ChiefRedBull's Avatar
ChiefRedBull ChiefRedBull is offline
ISearchGoogle

Retired Moderator
* Expert *
 
Join Date: May 2001
Location: england
Posts: 6,321
Default

Quote:
how do i make my prog tell if it is being run with a swith ie prog.exe /uninstall
You would pass a command line parameter to it when shelling it from the uninstall package. You can retrieve this command line via the Command$ function in your main forms Form_Load() event, like I said above.
__________________
Chuck Norris ordered a Big Mac at Burger King, and got one.
Reply With Quote
  #7  
Old 07-31-2002, 12:01 AM
dis1411
Guest
 
Posts: n/a
Default

how do i tell the installer in vs.net to run the prog and /uninstall ie "c:\prog.exe /uninstall" when uninstalling
Reply With Quote
  #8  
Old 07-31-2002, 12:32 AM
dis1411
Guest
 
Posts: n/a
Default

n/m found it under custom actions
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
 
 
-->