在VS2005中安装项目来设置HKLM\Software...注册表设置?
我正在为 Internet Explorer 编写一个工具栏,它需要设置以下键。
HKLM\Software\Microsoft\Interet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN\iexplore.exe
安装程序正在以提升的权限运行。
我已设置此值
但在 Windows 7 Enterprise 上,安装程序将注册表设置写入此路径:
HKLM\Software\Wow6432node\Microsoft\Interet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN\iexplore.exe
如果我更改 Internet Explorer 中的设置(允许活动内容在我的计算机上运行文件),我看到这是第一个被调整的路径。
如何使安装项目写入注册表中的正确路径?
谢谢克里斯蒂安
I'm writing a toolbar for Internet Explorer, and it requires that the following key is set.
HKLM\Software\Microsoft\Interet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN\iexplore.exe
The installer is running with elevated rights.
I have set this value
But on Windows 7 Enterprise, the installer writes the registry setting to this path instead:
HKLM\Software\Wow6432node\Microsoft\Interet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN\iexplore.exe
If I change the setting in Internet Explorer (allow active content to run files on my computer), I see that it's the first path that gets adjusted.
How do I make the setup project write to right path in the registry?
Thanks
Christian
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,当您在 64 位操作系统上运行 32 位安装程序时,就会发生这种情况。注册表重定向会将写入从 HKLM\Software 重定向到 HKLM\Software\Wow6432Node。您需要 64 位安装程序。
TargetPlatform 属性(如果您使用的是 VS 安装项目)。
Yes, that happens when you run a 32-bit installer on a 64-bit operating system. Registry redirection will redirect the writes from HKLM\Software to HKLM\Software\Wow6432Node. You'll need a 64-bit installer.
The TargetPlatform property, in case you are using a VS Setup project.