Archive: Why doesn't this work?


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?


I think:


WriteRegStr HKCU "Control Panel\desktop" SCRNSAVE.EXE "C:\WINDOWS\test.SCR"

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


Never mind. I needed to restart my PC (after turning the screen saver on)
Have you tried deleting the value first?

-Stu


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