在VS2005中安装项目来设置HKLM\Software...注册表设置?

发布于 2024-10-06 08:19:29 字数 501 浏览 0 评论 0原文

我正在为 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

忘东忘西忘不掉你 2024-10-13 08:19:29

是的,当您在 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文