适用于 x86 和 x64 安装程序的 Visual Studio 部署项目
我有一个 Visual Studio 2010 部署项目,现在需要我们的产品的 x64 安装程序。我有各种自定义引导程序来检查系统是 x86 还是 x64。我认为在构建之前需要进行的唯一更改是在部署项目属性面板上将 TargetPlatform 设置为 x64,并将文件系统的 Program Files 特殊文件夹更改为 [ProgramFiles64Folder]。
我不知道如何更改配置管理器以保留 x86 和 x64 之间的这些更改。安装程序项目似乎没有与其关联的平台。即使为 x64 创建单独的配置(这是平台应该做的),这也不会保存 x86/x64 决策,而只会让我保存配置背后的不同先决条件。
有没有一种简单的方法可以在安装程序上在 x64 和 x86 之间切换?我不想每次要构建时都必须更改安装程序项目属性上的 Program Files 文件夹和平台,也不想复制安装程序项目并仅将其保留为 x64,因为这将是维护噩梦。
I have a Visual Studio 2010 Deployment Project and I now have the need to have an x64 installer for our product. I have various custom bootstrappers which check to see if the system is x86 or x64. The only change I think I need to make prior to building is setting the TargetPlatform to x64 on the Deployment Project properties panel, and changing the File System's Program Files special fodler to be [ProgramFiles64Folder].
I can't figure out how I can change the Configuration Manger to retain these changes between x86 and x64. An installer project can't seem to have an an Platform associated with it. Even creating a seperate Configuration for x64 (which is what the Platform SHOULD be for), this doesn't save the x86/x64 decision, but would only let me save different prerequisites behind a Configuration.
Is there an easy way I can switch between x64 and x86 on my installer? I'd prefer not to have to change the Program Files folder and platform on the installer project properties every time I want to build, nor do I want to make a copy of the installer project and keep it x64 only, as that would be a maintenance nightmare.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不需要。只需创建两个安装项目即可。 ——汉斯·帕桑特
No. Just create two Setup projects. – Hans Passant