Archive: Install and activate screen saver for all users


Install and activate screen saver for all users
Hello

I must do an installation script which installes a screen saver and sets that active for all users. It installes on a Win2003 Server system. There are only three users, which are pre defined. Installing is done as Administrator.

1) I copied the screen saver file SS.scr to $SYSDIR.

2) I set the following to the registry.

  WriteRegStr HKCU "Control Panel\Desktop" "SCRNSAVE.EXE" "$SYSDIR\SS.scr" 
WriteRegStr HKCU "Control Panel\Desktop" "ScreenSaveActive" "1"
WriteRegStr HKCU "Control Panel\Desktop" "ScreenSaverIsSecure" "0"
WriteRegStr HKCU "Control Panel\Desktop" "ScreenSaveTimeOut" "180"
WriteRegStr HKU ".DEFAULT\Control Panel\Desktop" "SCRNSAVE.EXE" "$SYSDIR\SS.scr"
WriteRegStr HKU ".DEFAULT\Control Panel\Desktop" "ScreenSaveActive" "1"
WriteRegStr HKU ".DEFAULT\Control Panel\Desktop" "ScreenSaverIsSecure" "0"
WriteRegStr HKU ".DEFAULT\Control Panel\Desktop" "ScreenSaveTimeOut" "180"


But this is not setting all purposes for all users. I know this is no NSIS problem. But maybe someone can help me with a pointer or info to bring this to work. Many thanks.

Sigi

http://nsis.sourceforge.net/EnumUsersReg

Stu


Runs beautiful. Many Thanks. Sigi