Seite 1 von 1

Wie in Registry HKEY_CURRENT_USER schreiben?

Verfasst: 10 Jul 2009, 14:33
von fischerr
Hallo
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"
wird es in

[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!?

Re: Wie in Registry HKEY_CURRENT_USER schreiben?

Verfasst: 10 Jul 2009, 16:46
von d.oertel
Hi,

bitte mal im Winst-Handbuch im Kapitel über die Registry Sektionen den Abschnitt über /AllNTuserDat lesen.

gruss
detlef oertel

Re: Wie in Registry HKEY_CURRENT_USER schreiben?

Verfasst: 13 Jul 2009, 11:04
von fischerr
Hallo
jetzt habe ich es zum laufen gebracht.
Wenn man z.B. den Windows Explorer mit dem User Starten will,

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
"test1" = "c:\windows\explorer.exe"

hier code bsp.

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_robert /AllNTUserdats
[Registry_robert]
OpenKey [Software\Microsoft\Windows\CurrentVersion\Run]
Set "test1" = "c:\windows\explorer.exe"