HOST OS and SOURCE = XP SP3
WinBuilder 077RC2 and 078SP2
I made a script for Windows Date and Time (service) and I want to write in the registry the host machine values existing in "TimeZoneInformation" key; all seems to work fine... until the reg_binary values writing (0x3) that fails.
Settings are the following
[Variables]
%TMPREG%=TMPREG
[Process]
RegHiveLoad,"WB-Setup","%target_sys%\setupreg.hiv"
If,ExistRegKey,"HKLM","SYSTEM\ControlSet001\Control\TimeZoneInformation","ActiveTimeBias",Run,"%ScriptFile%",Transfer-Reg,"ActiveTimeBias","0x4"
If,ExistRegKey,"HKLM","SYSTEM\ControlSet001\Control\TimeZoneInformation","Bias",Run,"%ScriptFile%",Transfer-Reg,"Bias","0x4"
If,ExistRegKey,"HKLM","SYSTEM\ControlSet001\Control\TimeZoneInformation","DaylightBias",Run,"%ScriptFile%",Transfer-Reg,"DaylightBias","0x4"
If,ExistRegKey,"HKLM","SYSTEM\ControlSet001\Control\TimeZoneInformation","DaylightStart",Run,"%ScriptFile%",Transfer-Reg,"DaylightStart","0x3"
If,ExistRegKey,"HKLM","SYSTEM\ControlSet001\Control\TimeZoneInformation","DaylightName",Run,"%ScriptFile%",Transfer-Reg,"DaylightName","0x1"
If,ExistRegKey,"HKLM","SYSTEM\ControlSet001\Control\TimeZoneInformation","DisableAutoDaylightTimeSet",Run,"%ScriptFile%",Transfer-Reg,"DisableAutoDaylightTimeSet","0x4"
If,ExistRegKey,"HKLM","SYSTEM\ControlSet001\Control\TimeZoneInformation","StandardBias",Run,"%ScriptFile%",Transfer-Reg,"StandardBias","0x4"
If,ExistRegKey,"HKLM","SYSTEM\ControlSet001\Control\TimeZoneInformation","StandardStart",Run,"%ScriptFile%",Transfer-Reg,"StandardStart","0x3"
If,ExistRegKey,"HKLM","SYSTEM\ControlSet001\Control\TimeZoneInformation","StandardName",Run,"%ScriptFile%",Transfer-Reg,"StandardName","0x1"
RegHiveUnLoad,"WB-Setup"
[Transfer-Reg]
RegRead,"HKLM","SYSTEM\ControlSet001\Control\TimeZoneInformation","#1","%TMPREG%"
RegWrite,"HKLM","#2","WB-Setup\ControlSet001\Control\TimeZoneInformation","#1","%TMPREG%"
WB writes all the right values except the REG_BINARY ones ("DaylightStart" and/or "StandardStart") that it does not write at all, but in the error warning/halt all seems correct...
RegWrite - Type: [0x3] Section [HKLM\WB-Setup\ControlSet001\Control\TimeZoneInformation] Key [DaylightStart]: 00,00,03,00,05,00,02,00,00,00,00,00,00,00,00,00
Run - Processing section: [Transfer-Reg] From file: [%BaseDir%\Projects\LiveXP\Apps\System\TMPREG-WindowsDateTime.script]
[Parameter] with parameters: [DaylightStart],[0x3]
[Success] RegRead - read specified key from: [HKLM]Section: [SYSTEM\ControlSet001\Control\TimeZoneInformation] Key: [DaylightStart] to variable:: [%TMPREG%] with value: [#$q00#$q#$c#$q00#$q#$c#$q03#$q#$c#$q00#$q#$c#$q05#$q#$c#$q00#$q#$c#$q02#$q#$c
#$q00#$q#$c#$q00#$q#$c#$q00#$q#$c#$q00#$q#$c#$q00#$q#$c#$q00#$q#$c#$q00#$q#$c#$q00#$q#$c#$q00#$q]
[Failed] RegWrite - Type: [0x3] Section [HKLM\WB-Setup\ControlSet001\Control\TimeZoneInformation] Key [DaylightStart]: 00,00,03,00,05,00,02,00,00,00,00,00,00,00,00,00
[Warning] Halt
Run - Processed section [Transfer-Reg] in file: [%BaseDir%\Projects\LiveXP\Apps\System\TMPREG-WindowsDateTime.script]
[Success] RegHiveUnLoad - Unloaded registry hive: [WB-Setup]