mat_bruges
Posts: 33
Joined: Tue Mar 11, 2008 12:28 am

Can not delete file - can not delete component

I get this error when I try to remove a file (.NET assembly) from the files in my Merge Module: "Can not delete file <filename>. It is referenced from another component."

I have deleted ALL the files, custom actions, services, assemblies etc.. but there is this 1 dll that I can not delete.

When I look at the TargetFeature in the Organization view, it still contains a number of components for the files that I have deleted. One of those components contains this dll that I can't delete.

I suspect it won't let me delete the file because it is referenced in that component? But then again I did manage to delete some of the other files.. Should those corresponding components not be automatically removed as well?

Also, the Delete option is greyed out for all the components in the feature (including for the files that have already been deleted). The only way around it seems to be to start from scratch and create a brand new merge module.

I am using Advanced Installer 6.2 Trial.

Thanks

Mat
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This happens because this DLL file is used somewhere else in your project (perhaps in a condition or a command line). In order to be able to remove the file, you first need to make sure that this file is not used anywhere in the project, except the "Files and Folders" page.

Note that if a file is present in the "Files and Folders" page it automatically has a resource under a component in the "Organization" page (and this is not the cause of your problem).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
craigjeffrey1
Posts: 3
Joined: Mon Jun 30, 2008 1:06 am

Re: Can not delete file - can not delete component

I too have the same problem

But how do you find which component is referencing the file? Is there a search function to find the component that references it?

I have searched manually but cannot find any reference...

Very frustrating...
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Re: Can not delete file - can not delete component

Hi,

In order to investigate the problem please sent the AIP file to support at advancedinstaller dot com (if does not contain any confidential information). Also mention what files you cannot remove.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”