Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8729701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T08:52:49+00:00 2026-06-13T08:52:49+00:00

Solutions I’ve already tried that have not worked are: 1) Add ini key to

  • 0

Solutions I’ve already tried that have not worked are:

1) Add ini key to $WINDIR\system.ini

[boot]
SCRNSAVE.EXE $SYSDIR\savername.scr

2) Call user32.dll::SystemParametersInfo(17, 1, 0, 2)

The above works in XP but not in 2000

rundll32.exe desk.cpl,InstallScreenSaver <path to screensaver>

This kind of works in 2000 but it pops up a configuration dialog and then when I go back into the dialog the settings are gone.

Looking for a solution or set of solutions that works on all platforms, does not pop up a configuration screen, retains the settings when you open the configuration dialog and doesn’t require third-party software.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T08:52:50+00:00Added an answer on June 13, 2026 at 8:52 am

    What worked was combining the INI method and the registry method found here: How do I change the screensaver programatically?. Here is the NSIS code:

    !include WinVer.nsh
    
    ; Install the executable
    ${If} ${AtMostWinXP}
      SetOutPath "$SYSDIR"
      File screen.scr
    ${EndIf}
    SetOutPath "$INSTDIR"
    File screen.scr
    
    ; Set screensaver and make it active
    ${If} ${AtMostWinXP}
      WriteINIStr "$WINDIR\system.ini" "boot" "SCRNSAVE.EXE" "$SYSDIR\screen.scr"
    
    ${Else}
      WriteRegStr HKCU "Control Panel\desktop" "SCRNSAVE.EXE" "$INSTDIR\screen.scr"
      WriteRegStr HKCU "Control Panel\desktop" "ScreenSaveActive" "1"
    ${EndIf}
    
    ; Notify system of the change
    System::Call 'user32.dll::SystemParametersInfo(17, 1, 0, 2)'
    

    Notice that I install the screensaver both in \windows\system32 and in the package install directory. For some reason installing in system32 did not work in Windows 2000.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I tried a few solutions already posted here, but nothing seems to work. That
I have tried some solutions but I am unable to get exact name and
I have tried several solutions I found on github (like rolling back to rake
Cron solutions in rails are numerous and pretty good. That's not what I'm struggling
I have tried several solutions to replace a , with aeither <br /> or
What solutions do I have if I want to prevent the UI from freezing
What solutions accomplish the same auto-completion that SO uses for entering tags? There are
I tried several solutions found on other posts but still having problems to autoresize
I have seen solutions like this: kernel dp_square (const float *a, float *result) {
What are the solutions for data persistance in a .NET webservice? I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.