如何以编程方式安装屏保Windows 7 64? [英] How to install screensavers windows 7 64 programmatically?

查看:80
本文介绍了如何以编程方式安装屏保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 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.

推荐答案

我自己构建安装程序时遇到了这个问题.如果您尝试安装到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


这篇关于如何以编程方式安装屏保Windows 7 64?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆