Möchte in Registry schreiben:
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Run]
"test"="c:\windows\explorer.exe"
damit der Windows Explorer beim Anmelden automatisch gestartet wird. Es würde auch unter HKEY_LOCAL_MACHINE gehen, ich will es aber unter dem User HKEY_CURRENT_USER haben.
Wie schaffe ich das?
Wenn ich es wie folgt ausführe:
Code: Alles auswählen
[Initial]
Message=XP Allgeneine Anpassungen
LogLevel=2
; Log Errors in Logfile but don't abort:
ExitOnError=false
; Show syntax errors in the script:
ScriptErrorMessages=on
; Dont trace step by step through the script:
TraceMode=off
; let started programs run in front of the winst window
StayOnTop=false
[Aktionen]
Registry_install_monitor
[Registry_install_monitor]
OpenKey [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
Set "test" = "c:\windows\explorer.exe"
[HKEY_USERS\.DEFAULT\Software\Microsoft\Windows\CurrentVersion\Run]
"test"="c:\windows\explorer.exe"
geschrieben, anstatt
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run]
"test" = "c:\windows\explorer.exe"
Weiß jemand Rat!?