SetupJuggler
12-12-2008, 02:56 AM
Hi,
using SUF 8.1.1006.0
I'm using old REGEDIT4 file format, because of our existing previous setups.
Open the Action Editor and select the button Advanced/Import .REG File.... When there is some comment in the next line after a string value, then the line isn't properly interpreted.
My reg file example:
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Company\Before]
"Value1"="before comment"
; ----------------------------------------------------------------------------------------------------------------
; comment line 1
; comment line 2
; ----------------------------------------------------------------------------------------------------------------
[HKEY_LOCAL_MACHINE\SOFTWARE\Company\After]
"Value1"="after comment"
This is the code you got:
--Imported from REG file: D:\MyExamples\Setup Factory 8\BugTraq\Bug_ReadRegistryFile\Bug_ReadRegistryFil e.reg
Registry.SetValue(HKEY_LOCAL_MACHINE,"SOFTWARE\\Company\\Before","Value1","before comment\"; ----------------------------------------------------------------------------------------------------------------; comment line 1; comment line 2; ----------------------------------------------------------------------------------------------------------------",REG_SZ);
Registry.SetValue(HKEY_LOCAL_MACHINE,"SOFTWARE\\Company\\After","Value1","after comment",REG_SZ);
No serious bug, I know.
Best regards,
Udo
using SUF 8.1.1006.0
I'm using old REGEDIT4 file format, because of our existing previous setups.
Open the Action Editor and select the button Advanced/Import .REG File.... When there is some comment in the next line after a string value, then the line isn't properly interpreted.
My reg file example:
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Company\Before]
"Value1"="before comment"
; ----------------------------------------------------------------------------------------------------------------
; comment line 1
; comment line 2
; ----------------------------------------------------------------------------------------------------------------
[HKEY_LOCAL_MACHINE\SOFTWARE\Company\After]
"Value1"="after comment"
This is the code you got:
--Imported from REG file: D:\MyExamples\Setup Factory 8\BugTraq\Bug_ReadRegistryFile\Bug_ReadRegistryFil e.reg
Registry.SetValue(HKEY_LOCAL_MACHINE,"SOFTWARE\\Company\\Before","Value1","before comment\"; ----------------------------------------------------------------------------------------------------------------; comment line 1; comment line 2; ----------------------------------------------------------------------------------------------------------------",REG_SZ);
Registry.SetValue(HKEY_LOCAL_MACHINE,"SOFTWARE\\Company\\After","Value1","after comment",REG_SZ);
No serious bug, I know.
Best regards,
Udo