Files are not deleted when deleted

I use the Wix installer, I create a tree of folders and files, they are created during installation, but they are not deleted during uninstallation, and I cannot understand why. (I also tried using the removeRFile component)

I do not need removeFile because I want the installation files to be deleted, not the files created by the application.

+4
source share
2 answers

The RemoveFile element deletes only files and empty folders. If you have a complex dir structure, your best approach is the usual action. This topic has also been discussed here: Deleting Files When Removing WiX

+3
source

You registered the installer and read it to understand why? This is typically the result of a minor update and violation of component rules between assemblies. Other reasons may be files modified by the application after installation or files that already exist before installation, and will raise the entire number of links.

Test a clean virtual machine by applying a snapshot and start with the installation by removing the same assembly without starting the application. From there, you launch the application and check for update scripts.

0
source

Source: https://habr.com/ru/post/1396194/


All Articles