dis1411
07-22-2002, 03:30 AM
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)
delete settings on uninstall?dis1411 07-22-2002, 03:30 AM 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) ChiefRedBull 07-22-2002, 04:43 AM 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. ChiefRedBull 07-22-2002, 04:47 AM Check out these pages for help with MSI - http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/over_6qb6.asp More specifically: http://msdn.microsoft.com/library/en-us/msi/over_83g3.asp Banjo 07-22-2002, 07:19 AM 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. dis1411 07-22-2002, 08:30 PM 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 ChiefRedBull 07-23-2002, 05:29 AM how do i make my prog tell if it is being run with a swith ie prog.exe /uninstallYou 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. dis1411 07-31-2002, 12:01 AM how do i tell the installer in vs.net to run the prog and /uninstall ie "c:\prog.exe /uninstall" when uninstalling dis1411 07-31-2002, 12:32 AM n/m found it under custom actions |
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum