CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2006
    Posts
    47

    How to ensure registry cleaners don't wipe out your application settings?

    So I want to place some entries in HKEY_CURRENT_USER.SOFTWARE.MICROSOFT.WINDOWS.CURRENTVERSION.MYAPP\

    It's configuring a system property so I feel it belongs here.... my fear is those registry cleaners.... how do you make sure they don't wipe out your application data?

    Thanks

  2. #2
    Join Date
    Apr 2005
    Location
    Norway
    Posts
    3,934

    Re: How to ensure registry cleaners don't wipe out your application settings?

    It's configuring a system property so I feel it belongs here....
    What system property?

    I'm sure if you add your own registry settings they bolong in a location like:
    Code:
    HKEY_LOCAL_MACHINE/Software/YourCompany/YourProduct/
    - or -
    HKEY_CURRENT_USER/Software/YourCompany/YourProduct/
    Don't you agree?

    - petter

  3. #3
    Join Date
    Oct 2005
    Location
    Bangalore
    Posts
    1,051

    Re: How to ensure registry cleaners don't wipe out your application settings?

    why do you think tat registry cleaner would randomly delete your entry into the resistry . f your entry is an valid entry it would not delete them. here are a few links that explains how registry cleaners work.
    Registry Drill
    Registry Cleaners and Tools
    - Sreehari
    "Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."
    " Everybody is sent to Earth on a purpose. I am so Lagging behind that i won't die." – Calvin

  4. #4
    Join Date
    Apr 2006
    Posts
    47

    Re: How to ensure registry cleaners don't wipe out your application settings?

    So I'd like to know whether I should be putting it in the CURRENT_USER hive, or the LOCAL_MACHINE hive.

    What's more common?

    Secondly, what is an installation program I can use to install registry key entries (that is free, and super easy to use)

  5. #5
    Join Date
    Oct 2005
    Location
    Bangalore
    Posts
    1,051

    Re: How to ensure registry cleaners don't wipe out your application settings?

    Here are some installers that you can use
    Microsoft Visual Studio Installer 1.1
    Inno Setup
    Wise Solutions
    NSIS (Nullsoft Scriptable Install System)

    for installn the registry keys ...why not do it programatically ? check the Registry Functions
    - Sreehari
    "Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us."
    " Everybody is sent to Earth on a purpose. I am so Lagging behind that i won't die." – Calvin

  6. #6
    Join Date
    Apr 2006
    Posts
    47

    Re: How to ensure registry cleaners don't wipe out your application settings?

    I definitely *WANT* to do it programatically, however, how do you deal with issues of path. I have an .exe that needs to be in Windows, and it won't know where the user installed the rest of the data files (should be in C:\Program Files\MyApp) but there is certainly no gaurantee.

    So how else would you address this problem? Thanks!

  7. #7
    Join Date
    May 2001
    Location
    Oslo, Norway
    Posts
    610

    Re: How to ensure registry cleaners don't wipe out your application settings?

    If you are an aware programmer, you would put all the settings which are the same for all users i.e. machine level settings, settings which have to do with program configuration regardless of which user runs it, under HKEY_LOCAL_MACHINE. All personal user preferences related to your program have to go under HKEY_CURRENT_USER. That way your program will behave fine, and Windows will like it

  8. #8
    Join Date
    Apr 2006
    Posts
    47

    Re: How to ensure registry cleaners don't wipe out your application settings?

    Quote Originally Posted by Amn
    If you are an aware programmer, you would put all the settings which are the same for all users i.e. machine level settings, settings which have to do with program configuration regardless of which user runs it, under HKEY_LOCAL_MACHINE. All personal user preferences related to your program have to go under HKEY_CURRENT_USER. That way your program will behave fine, and Windows will like it
    Sounds like a solid plan, and that's what I'm doing.

    However, do installations typically write keys to the registry? Because I really need to write a couple of keys to the registry at that time. But if there is some way to do it programatically, please let me know.

    Thanks!

  9. #9
    Join Date
    May 2001
    Location
    Oslo, Norway
    Posts
    610

    Re: How to ensure registry cleaners don't wipe out your application settings?

    Yes, last time i fired up Installshield thing, it had option of scripting registry writing schemes. But i really hate Installshield, it is such a benemoth of an app, and all for nothing. Amuses me how small software uses minutes to install because of Installshield overhead. Try Nullsoft install system It is tiny, and does most of the same job, including registry writing. But to tell the truth, you decide yourself which install system to use, or even whether to write your own, which is an option too.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured