Write Registry Key
Posted: Mon Jan 23, 2006 6:11 pm
I'm having a terrible time writing a registry key.
Here is the sequence:
Read Registry Key HKLM\\Software\\Quotes Plus\\Setup\\components\\Data\\Installed into INSTALLEDDATA
.
.
INSTALLEDDATA = $INSTALLEDDATA$ or 1
.
.
INSTALLEDDATA = $INSTALLEDDATA$ or 2
.
.
INSTALLEDDATA = $INSTALLEDDATA$ or 4
.
.
Everything works up to this point, the watch window shows a value of 7 for INSTALLEDDATA
I've tried both of these write statements, and nothing ever gets written to the registry.
Write Registry Key HKLM\\Software\\Quotes Plus\\Setup\\components\\Data\\Installed, INSTALLEDDATA
Write Registry Key HKLM\\Software\\Quotes Plus\\Setup\\components\\Data\\Installed, $INSTALLEDDATA$
INSTALLEDDATA is a DWORD in the registry. I've also tried a string, nothing ever gets written.
This key works fine:
Read Registry Key HKLM\\Software\\Quotes Plus\\Setup\\DataDir into DATADIR
.
.
The value is changed in a dialog box.
.
.
Write Registry Key HKLM\\SOFTWARE\\Quotes Plus\\Setup\\DataDir, $DATADIR$
I'm using the Ponderosa build, just downloaded from the web.
I've spent all day on this, and can't get any farther until I can write to the registry.
Gary Lyben
Here is the sequence:
Read Registry Key HKLM\\Software\\Quotes Plus\\Setup\\components\\Data\\Installed into INSTALLEDDATA
.
.
INSTALLEDDATA = $INSTALLEDDATA$ or 1
.
.
INSTALLEDDATA = $INSTALLEDDATA$ or 2
.
.
INSTALLEDDATA = $INSTALLEDDATA$ or 4
.
.
Everything works up to this point, the watch window shows a value of 7 for INSTALLEDDATA
I've tried both of these write statements, and nothing ever gets written to the registry.
Write Registry Key HKLM\\Software\\Quotes Plus\\Setup\\components\\Data\\Installed, INSTALLEDDATA
Write Registry Key HKLM\\Software\\Quotes Plus\\Setup\\components\\Data\\Installed, $INSTALLEDDATA$
INSTALLEDDATA is a DWORD in the registry. I've also tried a string, nothing ever gets written.
This key works fine:
Read Registry Key HKLM\\Software\\Quotes Plus\\Setup\\DataDir into DATADIR
.
.
The value is changed in a dialog box.
.
.
Write Registry Key HKLM\\SOFTWARE\\Quotes Plus\\Setup\\DataDir, $DATADIR$
I'm using the Ponderosa build, just downloaded from the web.
I've spent all day on this, and can't get any farther until I can write to the registry.
Gary Lyben