質問

I have an addin application, A, built with Add-In express. Its installer is built in a Visual Studio setup project. Now I have included it in another comprehensive application, B. Its installer is built with Advanced Installer.

We want to be able to uninstall A during install of the comprehensive application B. According to Advanced Installer's user guide "How do I uninstall another MSI package when my application is uninstalled?", I follow the guide, but it does not work for me.

So I must miss something or some setting is not correct in my AIP. I am not sure how to attach aip file. How can I fix this problem?

役に立ちましたか?

解決

The solution is very simple. Since A, from what I can see is a MSI package you can simply go to Upgrades page in Advanced Installer, for project B, and use the "New" button to add the MSI for app A to the list.

This will add the upgradecode of app A to the Upgrades table from the B package, so the OS will consider B is an upgrade for A and will automatically remove it.

Edit

Add a custom action to run something like MSIEXEC.exe /x {21D0F841-65A2-4A42-AA56-D7EF238968DE} /qn and then add an extended search (search by upgradecode), use search result to control the custom action. see more details in comments & chat

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top