somethingelse
Posts: 7
Joined: Fri May 04, 2012 9:59 pm

Unable to delete file to be installed in package

Hello,

I have an existing installer project that I am using for another task. I have copied over the project file and have been modifying it. One of the changes I need to make the removal of several files to be installed in the msi package. So I went to the "Files and folders" area under the resources gui container. I then selected the files that I wished to remove in the selected "delete" from the right-click context menu. However, when I went to verify that the file was in fact deleted from my project by clicking "Refresh" in the "files and folders" top ribbon, the file reappeared in my project. The file also reappears when I try to build install packages from the project. Is there another method I should be using to delete a file from a project?

Thank you for your help
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Unable to delete file to be installed in package

Hello,

If you want to remove a resource file from your project, then go to "Files and Folders" view, select the related file and use [Delete] toolbar button, the “Delete” tree context menu item or press the Delete key.

Also, please make sure that the containing folder of the related file you want to remove isn't synchronized with a folder from disk. Select the containing folder and from the context menu choose "Properties..." option. In the "Folder Properties" dialog make sure that "Synchronized content with folder from disk" option from "Synchronize" tab isn't enabled.

Let us know if this helps, otherwise please give us more details about your scenario.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
somethingelse
Posts: 7
Joined: Fri May 04, 2012 9:59 pm

Re: Unable to delete file to be installed in package

Great, that fixed the problem. It seems that the property "synchronized with a folder form disk" was selected when the folder was added through the installer wizard.

Return to “Common Problems”