Seite 1 von 1

Registryeinträge werden nicht gesetzt

Verfasst: 09 Jul 2009, 14:56
von fischerr
Hallo zusammen :D
habe folgendes Problem. Möchte gerne Registrywerte setzen.
Klappt aber nicht.
Habe erst versucht über
registry loadUnicodeTextFile("%scriptpath%/anmeldebildschirm.reg") /regedit
eine eanmeldebildschirm.reg einzubinden, die ich vorher ueber regedit/Export erstellt habe.
Dann habe ich versucht über OpenKey und Set. Klappt auch nicht.
Irgend was einfaches übersehe ich doch da?! oder :roll:

"c:\\test.txt" <-- ist nur ein Test

Hier mein Inhalt von der xp_allgemeine_anpassungen.ins

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




[Registry_install_monitor]

;registry loadUnicodeTextFile("%scriptpath%/anmeldebildschirm.reg") /regedit

OpenKey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
Set "test" = "c:\\test.txt"

OpenKey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
Set "DisableCAD" = REG_DWORD:0001

Hier noch der inhalt von anmeldebildschirm.reg

Code: Alles auswählen

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DisableCAD"=dword:00000001

Hier noch die instlog

Code: Alles auswählen

09.07.2009 14:49:29 JSON service request https://192.168.100.100:4447/rpc?%7B%22id%22:1,%22method%22:%22getDepotId%22,%22params%22:%5B%22pc2.uib.local%22%5D%7D
09.07.2009 14:49:29 JSON service request https://192.168.100.100:4447/rpc?%7B%22id%22:1,%22method%22:%22getProductInstallationStatus%5FlistOfHashes%22,%22params%22:%5B%22pc2.uib.local%22%5D%7D
09.07.2009 14:49:29 JSON service request https://192.168.100.100:4447/rpc?%7B%22id%22:1,%22method%22:%22getPossibleMethods%5FlistOfHashes%22,%22params%22:%5B%5D%7D
09.07.2009 14:49:29 JSON service request https://192.168.100.100:4447/rpc?%7B%22id%22:1,%22method%22:%22getProductActionRequests%5FlistOfHashes%22,%22params%22:%5B%22pc2.uib.local%22%5D%7D
Computername:pc2.uib.local
Computername according to Environment Variable :PC2
opsi service URL https://192.168.100.100:4447
Config path: P:\install
Utils path:  P:\utils
Depot path:  P:\install

    09.07.2009 14:49:29 JSON service request https://192.168.100.100:4447/rpc?%7B%22id%22:1,%22method%22:%22getInstallableLocalBootProductIds%5Flist%22,%22params%22:%5B%22pc2.uib.local%22%5D%7D
    bootmode BKSTD
    winst: Start sorting of products (09.07.2009 14:49:29)
    09.07.2009 14:49:29 JSON service request https://192.168.100.100:4447/rpc?%7B%22id%22:1,%22method%22:%22getProductDependencies%5FlistOfHashes%22,%22params%22:%5B%5D%7D
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Resolved sequence of products (09.07.2009 14:49:29): 
    Product 1 	xp_allgemeine_anpassungen : setup
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    09.07.2009 14:49:29 JSON service request https://192.168.100.100:4447/rpc?%7B%22id%22:1,%22method%22:%22getProductProperties%5Fhash%22,%22params%22:%5B%22xp%5Fallgemeine%5Fanpassungen%22,%22pc2.uib.local%22%5D%7D
    09.07.2009 14:49:29 JSON service request https://192.168.100.100:4447/rpc?%7B%22id%22:1,%22method%22:%22getProduct%5Fhash%22,%22params%22:%5B%22xp%5Fallgemeine%5Fanpassungen%22,%22opsidemo.uib.local%22%5D%7D
    scriptname: "xp_allgemeine_anpassungen.ins", special path: "P:\install\xp_allgemeine_anpassungen\"
    09.07.2009 14:49:29 JSON service request https://192.168.100.100:4447/rpc?%7B%22id%22:1,%22method%22:%22setProductInstallationStatus%22,%22params%22:%5B%22xp%5Fallgemeine%5Fanpassungen%22,%22pc2.uib.local%22,%22installing%22%5D%7D
    
    ============ Version 4.8.4 WIN32 script "P:\install\xp_allgemeine_anpassungen\xp_allgemeine_anpassungen.ins"
                 start: 2009-07-09  14:49:29  (on client named as : "pc2.uib.local")
    [executing: "C:\Programme\opsi.org\preloginloader\utils\winst32.exe"]
    system infos:
    00:0C:29:C2:0A:6C  -  PC hardware address
    pc2.fischerr.com  -  IP name 
    192.168.100.150  -  IP address
    DEU  -  System default locale 
    
    LogLevel set to 2
___________________
0 errors
0 warnings


no script found for file name ""
09.07.2009 14:49:29 JSON service request https://192.168.100.100:4447/rpc?%7B%22id%22:1,%22method%22:%22setProductInstallationStatus%22,%22params%22:%5B%22xp%5Fallgemeine%5Fanpassungen%22,%22pc2.uib.local%22,%22installed%22%5D%7D
09.07.2009 14:49:29 JSON service request https://192.168.100.100:4447/rpc?%7B%22id%22:1,%22method%22:%22setProductActionRequest%22,%22params%22:%5B%22xp%5Fallgemeine%5Fanpassungen%22,%22pc2.uib.local%22,%22none%22%5D%7D
Registry key [HKLM\SOFTWARE\opsi.org\winst]  opened
        Variable "RebootRequested"  is keeping its value "0"
        Variable "LastLogFilename"  is keeping its value "c:\tmp\instlog.txt"
        Variable "ContinueLogFile"  is keeping its value "0"
        Variable "NumberOfErrors"  is keeping its value "0"
        Key flushed
        Key closed
        Registry key [HKLM\SOFTWARE\opsi.org\winst]  opened
        Key closed


Re: Registryeinträge werden nicht gesetzt

Verfasst: 09 Jul 2009, 16:21
von j.schneider
Hallo,

da scheint das "Hauptprogramm" zu fehlen...

Code: Alles auswählen

[Aktionen]
Registry_install_monitor
Gruß
Jan Schneider

Re: Registryeinträge werden nicht gesetzt

Verfasst: 09 Jul 2009, 16:36
von fischerr
Servus,
Habe [Aktion] eingefügt, hilft aber nichts

Nochmal meine geänderte xp_allgemeine_anpassungen.ins

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

;registry loadUnicodeTextFile("%scriptpath%/anmeldebildschirm.reg") /regedit

[Aktion]

[Registry_install_monitor]
OpenKey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
Set "test" = "c:\\test.txt"
OpenKey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
Set "DisableCAD" = REG_DWORD:0001


Re: Registryeinträge werden nicht gesetzt

Verfasst: 09 Jul 2009, 17:25
von j.schneider
Ok...
Dan nochmal komplett:

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

;registry loadUnicodeTextFile("%scriptpath%/anmeldebildschirm.reg") /regedit

[Aktionen]
Registry_install_monitor

[Registry_install_monitor]
OpenKey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
Set "test" = "c:\\test.txt"
OpenKey [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
Set "DisableCAD" = REG_DWORD:0001

Re: Registryeinträge werden nicht gesetzt

Verfasst: 10 Jul 2009, 07:30
von fischerr
Vielen Dank Jan Schneider
ich hatte

Registry_install_monitor

vergessen
Super jetzt klappt es, Danke noch mal.
Gruß Robert

Re: Registryeinträge werden nicht gesetzt

Verfasst: 10 Jul 2009, 12:23
von fischerr
Hallo zsammen

für die anderen:
loadUnicodeTextFile
geht dann mit winbatch...
habe es nun so zum laufen gebracht

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]

winbatch_xp_allgemeine_anpassungen
registry loadUnicodeTextFile("%scriptpath%/anmeldebildschirm.reg") /regedit