KHolmes
12th May 2003 21:24 UTC
Why doesn't this work?
Why won't this set my screen saver as default
WriteRegStr HKCU "Control Panel\Desktop" "SCRNSAVE.EXE" "C:\WINDOWS\test.SCR"
It just removes SCRNSAVE.EXE entry in the registry.
I am starting to get the impression that this value cannot be changed by a program in the registry.
Can someone shed some light on this?
Joel
12th May 2003 22:29 UTC
I think:
WriteRegStr HKCU "Control Panel\desktop" SCRNSAVE.EXE "C:\WINDOWS\test.SCR"
Afrow UK
12th May 2003 22:30 UTC
Looking at the registry on my Win98 machine, I can't find where the current screen saver is stored in the registry.
I shall carry on looking.
Ok,I haven't even got a SCRNSAVE.EXE string value in my reg.
-Stu
Afrow UK
12th May 2003 22:42 UTC
Never mind. I needed to restart my PC (after turning the screen saver on)
Have you tried deleting the value first?
-Stu
KHolmes
13th May 2003 00:32 UTC
Didn't work
I figured out my problem..
I had this code a few lines after and for some reason it removed that registry entry
ExecWait 'rundll32.exe desk.cpl,InstallScreenSaver "$INSTDIR\4th Air Defence Regiment.scr"'
When I commented that out it put the value into the registry.
Thanks for the help