Changes

Jump to: navigation, search

Adding Registry Settings

1,470 bytes added, 02:22, 18 November 2010
Added Active Setup section
Please see the MS KB article for details:
[http://support.microsoft.com/kb/264584 Microsoft KB article 264584]
 
=Adding entries for HKCU for all users=
If WPKG is run at startup, if you use REG or similar to add/edit/delete a registry key to HKEY_CURRENT_USER, it will only affect the WPKG's admin account's registry hive.
==Active Setup==
[http://en.wikipedia.org/wiki/Active_Setup Active Setup] is useful if you need to add an entry to HKCU for all users of a machine. It works by adding a key to HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\%package name% with a version number. When a user logs in Windows checks this location and compares it to HKCU\SOFTWARE\Microsoft\Active Setup\Installed Components\%package name%. If it is missing or a lower version then it runs whatever has been set in HKLM\SOFTWARE\Microsoft\Active Setup\Installed Components\%package name%\StubPath.
 
For example to enable Outlook RPC encryption:
<code>
<pre>
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnableOutlookEncryption" /v "Version" /d "1" /t REG_SZ /f' />
<install cmd='reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\wpkgEnableOutlookEncryption" /v "StubPath" /d "reg add HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Outlook\RPC /v "EnableRPCEncryption" /d "1" /t REG_DWORD /f"' />
</pre>
</code>
Will run "reg add HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\11.0\Outlook\RPC /v "EnableRPCEncryption" /d "1" /t REG_DWORD /f" once for each user as they login.
[[Category: Silent Installers]]
[[Category: Changing Windows settings]]
47
edits

Navigation menu