You will need to add a value before writing to it. You can create the value by merging a reg file into your registry. Then do a write value to the added value.

The reg file would look something like this in your case.

code:
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"NoDispScrSavPage"=""

Create it in notepad or some other text editor and save it as filenam.reg.

After the merge you can write to the value using writevalue.

Tested it and works fine for me.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.