Results 1 to 7 of 7

Thread: Creating Registry Keys

  1. #1

    Thread Starter
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Creating Registry Keys

    Folks,

    Do you create your programs registry keys though the installer or Using the program itself on the first run?


  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Creating Registry Keys

    If it is supported by your installer software, it is best to do it as part of the installation - as that way they will be removed if your program is uninstalled (thus keeping the users computer as clean as possible).

  3. #3

    Thread Starter
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: Creating Registry Keys

    OK SI,
    But i have come to a problem when using this method.
    Say one user with admin rights install my program. so the installer creates all the values and keys for him.

    when a new user login to the same system, he dont find any values and keys under his HKCU / Software relevent to my program.

    Any solution? if i ask to install it again under his account, he cannot do so since he is a user. so no permission to install software.

    * Assume My program works on xp.

  4. #4
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Creating Registry Keys

    Some installers allow you to install to HKCU for all users, but if yours doesn't then you'll need to set them up on first run instead/also (if they don't exist).

  5. #5

    Thread Starter
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: Creating Registry Keys

    Some installers allow you to install to HKCU for all users
    ok after installation for all users on the machine, a new user account is created. now what will happen?

  6. #6
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Creating Registry Keys

    The registry keys should automatically be created for them, as settings for a user are copied from a template user - which is where the installer should be creating them.

  7. #7

    Thread Starter
    PowerPoster Fazi's Avatar
    Join Date
    Aug 2005
    Location
    Underworld
    Posts
    2,525

    Re: Creating Registry Keys

    Great !
    i ll try to install my software to all users now

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