安装包配置中缺少 .Net 先决条件 2.0 (x64)

发布于 2024-10-10 08:46:50 字数 181 浏览 0 评论 0原文

我正在 Visual Studio 2008 中构建一个包项目。我的一些将要安装此包的用户在他们的 64 位计算机上没有安装 x86 版本的 .net 2.0。如何将 .net 2.0 的先决条件设置为任一版本; x86 还是 x64?请记住,我不希望将 .net 与应用程序打包在一起;我希望安装程序能够从供应商网站下载它。

谢谢

I am building a package project in Visual Studio 2008. Some of my users that will be installing this package do not have the x86 version of .net 2.0 installed on their 64bit machines. How do I set the prerequisite of .net 2.0 to either version; x86 or x64? Keep in mind I do not wish to package .net with the application; I want the installer to be able to download it from the venders website.

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

天邊彩虹 2024-10-17 08:46:50

32 位版本的 .NET Framework 2.0 无法安装在 64 位计算机上,因此您需要单独的先决条件:一个适用于 32 位,另一个适用于 64 位。不幸的是,Visual Studio 安装项目无法根据 Windows 版本调节自定义先决条件。

解决方案是在“c:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages”文件夹中手动创建 .NET Framework 2.0 x64 先决条件,并将其配置为仅在 64 位计算机上运行。也许这会对您有所帮助:
http://msdn.microsoft.com/en-us/ library/ms229223(VS.80).aspx

另一个解决方案是使用商业设置创作工具,该工具允许您根据目标 Windows 版本来调整先决条件。

对于user358051提到的博文,我不同意。 Windows Installer 在正确的手中非常强大,并且它与 Windows 集成。它可能存在局限性和效率问题,但它可以完成工作。

The 32-bit version of .NET Framework 2.0 cannot be installed on 64-bit machines, so you need separate prerequisites: one for 32-bit and another for 64-bit. Unfortunately Visual Studio setup project cannot condition custom prerequisites based on the Windows version.

A solution is to manually create a .NET Framework 2.0 x64 prerequisite in "c:\Program Files \Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages" folder and configure it to run only on 64-bit machines. Perhaps this will help you:
http://msdn.microsoft.com/en-us/library/ms229223(VS.80).aspx

Another solution is to use a commercial setup authoring tool which allows you to condition prerequisites based on the target Windows version.

Regarding the blog post mentioned by user358051, I disagree. Windows Installer is very powerful in the right hands and it's integrated with Windows. It may have limitations and efficiency problems, but it gets the job done.

少女七分熟 2024-10-17 08:46:50

老实说,

我一直在使用 Visual Studio 安装程序项目来处理安装包。我无法为您的 x86 v x64 问题提供解决方案,但我想向您指出 Promit 博客上的一些相关信息:
http://ventspace.wordpress.com/ 2010/11/10/windows-installer-worse-than-i-thought/

可能值得考虑另一种安装解决方案。

Faithful,

I've struggled with installation packages using visual studio installer projects. I can't offer a solution to your x86 v x64 problem, but I wanted to point you towards a somewhat related information on Promit's blog:
http://ventspace.wordpress.com/2010/11/10/windows-installer-worse-than-i-thought/

It might be worth considering another installation solution.

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