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. Creating Registry Keys with Setup if key doesn't exist.

Creating Registry Keys with Setup if key doesn't exist.

Scheduled Pinned Locked Moved C#
helpcsharpwindows-admintutorialworkspace
3 Posts 2 Posters 0 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.
  • P Offline
    P Offline
    Paramhans Dubey
    wrote on last edited by
    #1

    Hi Experts, I have developed a winApp in C# 2.0. I have created Setup of the application that creates required registry keys into the registry. I want these keys should not be deleted when application is uninstalled. I have set DeleteOnUninstall Property to false in the setup project. Still if application is uninstalled the keys are getting deleted. I dont know how to overcome these problem Please help me out!!!!!!!!!!111 Thanks And Regards, Paramhans Dubey

    M 1 Reply Last reply
    0
    • P Paramhans Dubey

      Hi Experts, I have developed a winApp in C# 2.0. I have created Setup of the application that creates required registry keys into the registry. I want these keys should not be deleted when application is uninstalled. I have set DeleteOnUninstall Property to false in the setup project. Still if application is uninstalled the keys are getting deleted. I dont know how to overcome these problem Please help me out!!!!!!!!!!111 Thanks And Regards, Paramhans Dubey

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      Did you read this on MSDN [^]? If a registry key has values, the key will be removed when all values are removed regardless of the DeleteAtUninstall property setting.

      Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      P 1 Reply Last reply
      0
      • M Manas Bhardwaj

        Did you read this on MSDN [^]? If a registry key has values, the key will be removed when all values are removed regardless of the DeleteAtUninstall property setting.

        Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

        P Offline
        P Offline
        Paramhans Dubey
        wrote on last edited by
        #3

        Hi Manas, Thanks for your reply. I tried the link given by you but unable to connect to MSDN site. Anyways Can you guide me further? Can you please tell me how can I avoid these keys beeing deleted? Actually I want to keep track of the application installation on tha machine, like how many times this application has been installed to the machine, etc. Its part of licensing of the application. Please help me Thakns And Regards. Paramhans Dubey.

        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