PDA

Click to See Complete Forum and Search --> : Creating Registry Keys


Fazi
Dec 10th, 2008, 03:17 AM
Folks,

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

:wave:

si_the_geek
Dec 10th, 2008, 03:47 AM
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).

Fazi
Dec 10th, 2008, 04:34 AM
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.

si_the_geek
Dec 10th, 2008, 05:44 AM
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).

Fazi
Dec 10th, 2008, 05:51 AM
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?

si_the_geek
Dec 10th, 2008, 06:11 AM
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.

Fazi
Dec 10th, 2008, 06:15 AM
Great !
i ll try to install my software to all users now :)