pjgeutjens
Posts: 395
Score: 34 Joined: 7/12/2009 From: Leuven, Belgium Status: offline
|
ok, quick rundown of Active Setup. 1) You create a registry key in HKLM\Software\Microsoft\Active Setup\Installed Components\<Some Name>, and a value StubPath=<command> , value Version = 1.0.0 2) Every time a user logs on, windows will check to see if the corresponding HKCU\Software\Microsoft\Active Setup\Installed Components\<Some Name> key exists - If it doesn't, Windows will execute the command in StubPath and write the key to HKCU - if it does exist, Windows will check the Version value, if it's higher in HKLM than in HKCU , the command will execute again and HKCU is updated, if not, nothing happens So basically you can make a command (exe, vbs, msi repair, whatever) execute once for every user the next time he logs on, this way you can for example write registry keys in their HKCU hive. By increasing the Version value you can make a command execute again for users. This functionality results in the "Applying personal settings for Application X" dialog boxes you've undoubtedly seen before Hope this helps, PJ
< Message edited by pjgeutjens -- 11/17/2009 12:22:25 PM >
_____________________________
ǝɯıʇ ǝǝɹɟ ɥɔnɯ ooʇ ǝʌɐɥ noʎ sıɥʇ pɐǝɹ uɐɔ noʎ ɟı
|