2
votes

We use WIX for building installation packages. There are some problems when I try install the newest version in other folder (major upgrade). In previous installation folder all subfolders are cleaned up but not removed.

  1. Which unintalling algorithm is used on upgrade: from previous installer or from newest?
  2. How can I remove these subfolders?
1

1 Answers

4
votes

A major upgrade first uninstalls the old version and then installs the new one. If some folders are left behind, there are two possibilities:

  • They are being used by another product and cannot be uninstalled. In this case you can try creating a verbose log to see why their components are not uninstalled.
  • They were not created by the MSI install process. In this case you need an uninstall custom action which deletes them.