How to remove a registry key during un-install (with the VS Setup Project)
-
Hi all! I have an application which provides the user with an option to start my application automaticly at windows startup (using the registry HKEY_CURRENT_USER\Software.....\Run) and this works excellent; whenever a user wants to run the application at startup I simply create the registry entry and everything works fine. However if the user wishes to un-install my application the registry key will still be present in the registry..... Does anyone have a good idea how to remove the registry key during un-install? (I use the built-in VS Installer Project) Thanks!
-
Hi all! I have an application which provides the user with an option to start my application automaticly at windows startup (using the registry HKEY_CURRENT_USER\Software.....\Run) and this works excellent; whenever a user wants to run the application at startup I simply create the registry entry and everything works fine. However if the user wishes to un-install my application the registry key will still be present in the registry..... Does anyone have a good idea how to remove the registry key during un-install? (I use the built-in VS Installer Project) Thanks!
Create a custom action for the uninstall that removes the value
I know the language. I've read a book. - _Madmatt
-
Create a custom action for the uninstall that removes the value
I know the language. I've read a book. - _Madmatt
Hi. Thanks for the quick reply. I have tried to create custom actions but without success (I'm not really sure how to do this). Would you please provide an example on how to do this? Sorry for the "extra work"....
-
Hi. Thanks for the quick reply. I have tried to create custom actions but without success (I'm not really sure how to do this). Would you please provide an example on how to do this? Sorry for the "extra work"....
Try improving your Google-Fu http://www.google.com/#hl=en&source=hp&q=Windows+setup+custom+actions&aq=f&aqi=&aql=&oq=&gs_rfai=CBKDMkZAaTMGwE6igzATEtIGfAwAAAKoEBU_QZJ23&fp=652ba8543c4f91ab[^]
I know the language. I've read a book. - _Madmatt
-
Try improving your Google-Fu http://www.google.com/#hl=en&source=hp&q=Windows+setup+custom+actions&aq=f&aqi=&aql=&oq=&gs_rfai=CBKDMkZAaTMGwE6igzATEtIGfAwAAAKoEBU_QZJ23&fp=652ba8543c4f91ab[^]
I know the language. I've read a book. - _Madmatt
Again, thanks for the quick reply! I guess I should have informed about the following: I'm a total newbie in computer programming in general. I have tried to search google (and codeproject) for solutions to my problem and I've indeed found many examples on how to create custom installations/un-installations..... My problem is that these examples are either too complicated for me to understand, or too general for me to be able to use for my specific problem. Maybe I'm a "lost case" since I cannot uderstand the existing examples on the internet, but if any of you have the time to help me with this I would really appreciate it (either with a specific example on how to resolve my problem, or a very (VERY) simple example on how to solve something similar). Again, what I want to do is to remove one registry entry during un-installation.
-
Again, thanks for the quick reply! I guess I should have informed about the following: I'm a total newbie in computer programming in general. I have tried to search google (and codeproject) for solutions to my problem and I've indeed found many examples on how to create custom installations/un-installations..... My problem is that these examples are either too complicated for me to understand, or too general for me to be able to use for my specific problem. Maybe I'm a "lost case" since I cannot uderstand the existing examples on the internet, but if any of you have the time to help me with this I would really appreciate it (either with a specific example on how to resolve my problem, or a very (VERY) simple example on how to solve something similar). Again, what I want to do is to remove one registry entry during un-installation.
Kaare Tragethon wrote:
My problem is that these examples are either too complicated for me to understand, or too general for me to be able to use for my specific problem.
And you expect us to provide you something different? Or perhaps you want one of us to write it for you?
Kaare Tragethon wrote:
I'm a total newbie in computer programming in general.
Then perhaps this task is above head at the moment and you should be working on other projects to build your skills first.
I know the language. I've read a book. - _Madmatt
-
Kaare Tragethon wrote:
My problem is that these examples are either too complicated for me to understand, or too general for me to be able to use for my specific problem.
And you expect us to provide you something different? Or perhaps you want one of us to write it for you?
Kaare Tragethon wrote:
I'm a total newbie in computer programming in general.
Then perhaps this task is above head at the moment and you should be working on other projects to build your skills first.
I know the language. I've read a book. - _Madmatt
Sorry for bothering you guys.