如何避免安装应用程序 wix 安装程序 MSI 和 Wix 安装程序的同一实例EXE文件?

发布于 2025-01-16 20:24:26 字数 249 浏览 2 评论 0原文

我有 MSI 和EXE 安装程序,用于安装 Excel 插件。用户可以选择下载 exe 或 msi 来安装插件。问题是我的应用程序会在新版本的应用程序可用时向用户显示通知,并且如果用户获得新版本,我总是返回 msi 文件,因为此时我没有任何用户已通过 msi 安装插件的信息或.exe。如果用户通过 exe 安装并使用 msi 安装新版本,则多个实例安装在同一台计算机上。我怎样才能避免它?

另外,C# 中有什么方法可以知道应用程序是通过 msi 还是 exe 安装的?

I have an MSI & EXE installer that installs the excel plug-in. The user has option to download exe or msi to install the plug-in. The problem is my applicaiton shows a notification to user if new version of applicaiton is available and if user get new version I always returns the msi file because at that point I don't have any information that user has installed the plug-in through msi or .exe. If user install thorugh exe and install new version with msi the multipe instance installed on same machine. How I can avoid it?

Also, is there any way in C# to know the applicaiton is installed through msi or exe?

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

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

发布评论

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

评论(1

她如夕阳 2025-01-23 20:24:26

您应该有两种不同的 UpgradeCodes - 一种用于 MSI,一种用于 EXE。那么新版本的MSI将取代MSI,EXE将取代EXE。另外不要忘记升级版本号,否则您将面临同样的问题。

您不能使用 MSI 升级 EXE,它们被系统视为不同的产品。

如何查找已安装的应用程序

You should have two different UpgradeCodes - one for MSIs and one for EXEs. Then new version of MSI will replace MSI, EXE will replace EXE. Also don't forget to upgrade version number, or you will face same issue.

You can't upgrade EXE with MSI, they are treated by system as different products.

How to find the UpgradeCode of installed app

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