Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I know how to install a screen saver to Windows Xp or Windows 7 32

rundll32.exe "desk.cpl,InstallScreenSaver {sys}\MyScreenSaver.scr"

but this code do not works on Windows 7 64 (or may be on some computers)

Any ideas?

Thank you.
Posted
Updated 23-Jan-23 2:34am

I had this problem myself building an installer. If you try to install into the Windows\System32 directory it gets redirected into Windows\SysWOW64 - but the control panel doesn't look there for screen savers.

In the end I settled on installing into the Windows directory - the control panel does look for screen savers there.
 
Share this answer
 
You might want to take a look at this MSDN site for Control Panel items. Since in your rundll32.exe you are calling for the desk.cpl. This website has a different viewpoint that works on 64 bit operating systems.

http://msdn.microsoft.com/en-us/library/cc144191(VS.85).aspx[^]

Hope this helps,

TheChazm
 
Share this answer
 
rundll32.exe desk.cpl,InstallScreenSaver {sys}\MyScreenSaver.scr


you can remove the <"> double quotes out of your command, then it will execute success
 
Share this answer
 
Comments
Dave Kreskowiak 23-Jan-23 8:41am    
I seriously doubt the OP is working on this 11 years later.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900