PDA

View Full Version : Add to registry unless exists (W2K)



stubblefield
05-05-2003, 09:06 AM
I want to add a registry key, only if the key doesn't currently exist.

Here's what I need to add:


Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Control Panel\Desktop]
"SCRNSAVE.EXE"="%windir%\\system32\\logon.scr"


If a user has this key already with a different screen saver, I don't want to overwrite what they have...I just want to ensure a screen saver is set.

Andy-S
05-05-2003, 09:12 AM
Check out this thread:

<a target="_blank" href=http://www.winguides.com/forums/showflat.php?Cat=&Board=brdScripting&Number=87593&page=0&view=&sb=&vc=1>http://www.winguides.com/forums/showflat.php?Cat=&Board=brdScripting&Number=87593&page=0&view=&sb=&vc=1</a>

Cheers
Andy