在使用 Windows 安装程序安装新版本之前,如何正确卸载以前的 Excel 2010 加载项?

发布于 2024-12-14 19:22:11 字数 505 浏览 0 评论 0原文

在我的安装项目中,我更新了 Version 属性,假设从 1.0.0 更新为 1.0.1 (新产品代码也是如此) ,然后将 RemovePreviousVersions 设置为 true。然后我重建了安装项目。

安装很顺利,但当我打开 Excel 时,有趣的事情发生了。以前的版本不知何故没有被删除,并且仍然显示在功能区栏上。

显然安装程序运行不正常。我不确定我是否遗漏了某些内容或者在设置项目中设置了错误。

我本想改变 Version & RemovePreviousVersions 就足够了。也许我错了。那么我还需要在这里做什么呢?有人能给我一些指点吗?

EDT:

这里还需要补充一件事: 我认为在重建安装程序时我没有更改程序集版本或文件版本。我应该更新哪一个?文件一或程序集一或两者?如果我只保留原始版本不变会有什么影响吗?

In my setup project, I updated Version property, let's say from 1.0.0 to 1.0.1 (Also yes to the new product code), and then set RemovePreviousVersions to true. I then rebuilt the setup project.

The installation went okay but the funny thing happened when I opened up the Excel. The previous version somehow was NOT removed and still showing on the Ribbon Bar.

Apparently the installer didn't work quite right. I am not sure if I missed something or perhaps set up something wrong in the setup project.

I'd have thought changing Version & RemovePreviousVersions would be enough. Maybe I was wrong. So what else do I have to do here? Can anyone give me some pointers?

EDT:

Just 1 more thing to add here:
I don't think I changed either Assembly version or File version when I rebuilding the installer. Which one should I update? The File one or Assembly one or perhaps both? Would it matter if I just keep the original version unchanged?

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

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

发布评论

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

评论(1

对你而言 2024-12-21 19:22:11

尝试创建安装日志以查看文件发生了什么情况。 Windows Installer 很可能会发现它们与已安装的文件具有相同的文件版本并跳过它们。

您还可以尝试增加所有版本化文件的文件版本。

Try creating an installation log to see what happens with your files. Most likely Windows Installer sees that they have the same file versions as the installed files and skips them.

You can also try increasing the file version for all your versioned files.

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