Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. How to remove a registry key during un-install (with the VS Setup Project)

How to remove a registry key during un-install (with the VS Setup Project)

Scheduled Pinned Locked Moved C#
visual-studiowindows-admintutorialquestionworkspace
7 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kaare Tragethon
    wrote on last edited by
    #1

    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!

    N 1 Reply Last reply
    0
    • K Kaare Tragethon

      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!

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Create a custom action for the uninstall that removes the value


      I know the language. I've read a book. - _Madmatt

      K 1 Reply Last reply
      0
      • N Not Active

        Create a custom action for the uninstall that removes the value


        I know the language. I've read a book. - _Madmatt

        K Offline
        K Offline
        Kaare Tragethon
        wrote on last edited by
        #3

        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"....

        N 1 Reply Last reply
        0
        • K Kaare Tragethon

          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"....

          N Offline
          N Offline
          Not Active
          wrote on last edited by
          #4

          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

          K 1 Reply Last reply
          0
          • N Not Active

            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

            K Offline
            K Offline
            Kaare Tragethon
            wrote on last edited by
            #5

            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.

            N 1 Reply Last reply
            0
            • K Kaare Tragethon

              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.

              N Offline
              N Offline
              Not Active
              wrote on last edited by
              #6

              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

              K 1 Reply Last reply
              0
              • N Not Active

                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

                K Offline
                K Offline
                Kaare Tragethon
                wrote on last edited by
                #7

                Sorry for bothering you guys.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups