Creating registry entries when a new user logs on
Posted 12 February 2002 - 18:57
Posted 13 February 2002 - 00:03
RunOnce
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\
Description
The RunOnce subkey of HKEY_LOCAL_MACHINE\SOFTWARE stores the names of programs that Windows 2000 runs at startup, for all users of the computer, the next time the system starts. When these programs are run, their names are deleted from the RunOnce subkey so that they are not run again automatically.
Posted 13 February 2002 - 00:23
If I create it under HKLM...RunOnce, it will run the program only for the first user who logs on.
Posted 13 February 2002 - 00:27
I guess whoever wrote the documentation at M$ doesn't speak english very well - probably only understands american :-)
Posted 13 February 2002 - 11:38
In my own products I keep my user specific components in a Feature of their own. Then my main app (actually I have an always present systray app) which calls MsiLocateComponent to check the presence of the HKCU component then I call MsiProvideComponent if it is not. Which will invoke the installer to complete the user installation with the minimum of installer activity.
Posted 13 February 2002 - 12:13
Posted 19 February 2002 - 23:43