How do I make a WIX MSI always remove a previous version?

前端 未结 4 1122
栀梦
栀梦 2020-12-14 16:39

I have CI build system builds an MSI whenever a developer checks in a change. We run automated acceptance tests on the installed MSI.

Basically every MSI is a comple

4条回答
  •  攒了一身酷
    2020-12-14 17:36

    So I did find a way of doing it without changing the version number.

    I change the Product GUID with every build, but keep the Upgrade GUID the same.

    I also had to change the RemoveExistingProducts to Before='InstallInitialize'. Otherwise it left only the 'deltas' between builds in the install path.

    As noted by Wim below, I can replace the generated Product GUID with '*'.

提交回复
热议问题