locked
Why does MSI(WIX) always delete installation directory and all files under installation directory? RRS feed

  • Question

  • Hi All,

    Recently I am assigned to create a MSI which is written by WIX(Windows Installer XML toolset) to deploy product. Our program will create some configuration files during running. So if user wants to upgrade via MSI(for example from v1.0 to v1.1), then we should keep configuration files after upgrade. But now the MSI always delete installation directory and all files under installation directory. Can anybody give me a hand? Thanks a lot.

    • Moved by Barry Wang Monday, April 21, 2014 7:46 AM
    Sunday, April 20, 2014 10:44 AM

Answers

  • I find the problem out, the problem is that I delete all installation directory and all files under installation directory, but MSI will remove existing products(RemoveExistingProducts, see MajorUpgrade) before upgrade. Does anybody how to keep configuration details after upgrade but remove installation directory completely ? Thanks
    • Marked as answer by VicZhang Tuesday, April 22, 2014 6:00 AM
    Tuesday, April 22, 2014 5:59 AM

All replies