Skip to content
⌘ NSIS Forum Archive

Why doesn't this work?

5 posts

KHolmes#

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?
Afrow UK#
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#
Never mind. I needed to restart my PC (after turning the screen saver on)
Have you tried deleting the value first?

-Stu
KHolmes#
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