Installer removes files it did not create - Advanced Installer Community
jcordes133
Posts: 1
Joined: Fri Jun 30, 2017 7:59 pm

Installer removes files it did not create

Recently some change has made my installers begin to delete files that they did not create on unistall.

The behavior is:
1 build installer ver1.0.0 and install it.
2. run the installed app and it creates a few files that the installer did not like C:\program files\mycompany\myapp\printerconfig.json
3. build installer ver1.0.1 and run it (it is set to remove first then install)
4. C:\program files\mycompany\myapp\printerconfig.json is removed during the install/upgrade process.

Why would the installer ever remove a file that it did not know exists?
Sorin
Posts: 663
Joined: Mon May 08, 2017 1:03 pm

Re: Installer removes files it did not create

Hello,

This might happen if your project contains a File Removal operation or a Folder Removal operation

The file removal operation is displayed as a file in "Files and folders" page. The folder removal operation changes the icon of the folder from "Files and Folders". Please take a look on the attached screenshots that describe both these operations.

Best regards,
Sorin
Attachments
screenshot2.jpg
screenshot2.jpg (9.5 KiB) Viewed 1782 times
screenshot1.jpg
screenshot1.jpg (23.87 KiB) Viewed 1782 times
Sorin Stefan - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”