Visual Studio 2008 部署项目问题?

发布于 2024-12-13 06:40:07 字数 269 浏览 0 评论 0原文

我已经使用 Windows Fourms 创建了一个成功的部署项目,该项目按预期工作,但有两件事需要解决:-

首先:我必须单击 setup.exe 文件以便安装检查附加条件,如果单击setup.msi,它会直接安装软件,无需检查任何内容。

第二:当我在电脑上安装该软件时单击安装文件时,收到一条错误消息“已安装此产品的另一个版本。此版本的安装无法继续。要配置或删除此产品的现有版本产品,使用控制面板上的添加/删除程序”,而我应该获得修复和删除选项。

有人能帮我解决这个问题吗?

I have created a successful deployment project using Windows Fourms that work as intended but there are two things that need to be solved:-

First: I have to click the setup.exe file in order for the installation to check for the perquisites, and if click the setup.msi it proceeds to install the software directly without checking anything.

Second: When i click on the setup file while the software is already installed on my PC, i get an error message "Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Add/Remove Programs on the Control Panel" while i should get a Repair and Remove options.

Can anybody help me solve this problems ?

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

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

发布评论

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

评论(1

橘味果▽酱 2024-12-20 06:40:07
  1. 正如 Morten 所说,这就是它的工作原理。您需要确保在安装产品之前先决条件已安装。

  2. 这可能是由于安装部署包后重建部署包造成的。 Windows 安装程序注意到您使用包含相同产品版本的不同 MSI(具有不同的程序包代码)。显然,这种情况尚无定论,因此您可以自行决定如何处理它。我认为,这样做的逻辑是为了防止“修复”实际上安装了不同的产品。测试不方便,但在生产环境中非常理想。如果您尝试安装相同 MSI,您应该会获得修复/删除选项。

顺便说一句,构建版本后,您可以右键单击 VS 中的安装项目并选择“安装”。这将执行一个安装程序,善意地删除具有相同版本的先前安装。

  1. As said by Morten, that's how it works. You want to make sure that the prerequisites are (get) installed before your product is installed.

  2. This probably is caused by a rebuild of the deployment package after you installed it. Windows installer notices that you use a different MSI (with a different package code), that contains the same product version. This situation, apparently, is inconclusive enough to leave it up to you what to do with it. The logic of this, I think, is to prevent a "Repair" that in fact installs a different product. Inconvenient for testing, but very much desirable in production environments. If you try to install the same MSI you should get the repair/remove options.

BTW, after building a release, you can right-click the setup project in VS and choose "install". This executes a setup that kindly removes a previous installation with the same version.

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