|
![]() |
| HKLM Run Key |
The following is an example of some registry values which you want installed for every user:
<$Component "CurrentUser" Create="Y" Directory_="INSTALLDIR" CU="Y">
#(
<$Registry
HKEY="CURRENT_USER"
Key="SOFTWARE\ABCDEFGHIJ"
Name='AAA'
Value="VAL-AAA-[Date]"
MsiFormatted="VALUE"
>
#)
<$/Component>
What you do when the process/script runs is up to you, it could simply copy shortcuts/files into the users profile or it could invoke Windows Installer repairs.
The following is an example of how to "register" a script to be run when users logon:
<$Component "RunScriptAtUserLogon" Directory_="INSTALLDIR">
#(
;--- Run script at user logon (script contains actions to install peruser resources) ---
<$Registry
HKEY="LOCAL_MACHINE"
KEY="SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
Name="<$ProdInfo.ProductName><$ProductVersion>"
Value=^wscript.exe //NoLogo "[!LogonScript]"^ ;;Refer to the script via the file's "RowKey".
MsiFormatted="VALUE"
KEYPATH="Y"
>
#)
<$/Component>
![]() | ![]() |