如何以编程方式安装屏保Windows 7 64?
问题描述:
我知道如何将屏幕保护程序安装到Windows Xp或Windows 7 32 rundll32.exe "desk.cpl,InstallScreenSaver {sys}\MyScreenSaver.scr"
但是此代码在Windows 7 64上不起作用(或可能在某些计算机上)
有什么想法吗?
谢谢.
Hi,
I know how to install a screen saver to Windows Xp or Windows 7 32rundll32.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.
答
我自己构建安装程序时遇到了这个问题.如果您尝试安装到Windows \ System32目录,它将被重定向到Windows \ SysWOW64-但是控制面板不会在其中查找屏幕保护程序.
最后,我决定安装到Windows目录中-控制面板确实会在该目录中查找屏幕保护程序.
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.
您可能想看看该MSDN网站上的控制面板"项目.由于在您的rundll32.exe中,您需要使用desk.cpl.该网站对适用于64位操作系统的观点有所不同.
http://msdn.microsoft.com/en-us/library/cc144191(VS .85).aspx [ ^ ]
希望这会有所帮助,
TheChazm
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