marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

Removing COM interop file from install fails

HI there, i'm trying to remove a Com interop file from my install, but it fails to remove it saying there are references on the registry. theres about 300 "references" and htey are all related to the registration of this dll. Since i do not want that dll anymore, those references are not important to me and htey should go aswell, but i dont see a way of removing it.

Can anyone please tell me how to get arid of that file and its references in an easy way?

Thanks,
Marcelo
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Removing COM interop file from install fails

Hello Marcelo,
Can anyone please tell me how to get arid of that file and its references in an easy way?
The first thing to do in this case is unregister the dll to get rid of most of your references. After this if there are any references left, the only way to remove them is by performing a CTRL+F( keyboard shortcut to the "Project" -> "Find..." from the menu bar ) Reference search in your project and manually removing the references to your dll file.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

Re: Removing COM interop file from install fails

HI Mihai,

THanks for the answer, but the thing is, I already unregistered the assemblies and i still have around 200 references showing up on AI.. Are you saying that i have to delete all of them manually 1 by one like so: Double click reference, navigate to the root of reference, delete, go back to reference screen, navigate to the root of reference, delete, and so on? This seems to me a little bit tedious and prone to error :| . Isn't there a "Remove dll and all its reference" on AI? If not i would strongly suggest it for the next release(s) :)

Please let me know if this is the only way or if I'm missing something.
Thanks,
Marcelo
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Removing COM interop file from install fails

Hello Marcelo,

After further investigating the issue it seems that the references are left in the project only when AI can't find the dll file in its location specified in the Files and Folders page. Thus, an automatic solution would be to double click on the dll in the Files and Folders page and modify its Source Path to point to a valid location of the dll on your hard drive. Registering the dll again and then unregistering it should remove all the references.

If this is not the case, another solution would be to search for all your references from the Organization page. Select the dll in the Files and Folders page and from its context menu select "Go to Component"( or F8 keyboard shortcut ). You can then go to each resource and remove it. It is more organized this way and you can also make sure you have deleted all the resources.

I have discussed this issue with the development team and we will consider a solution for a future version.

I hope the first scenario is applicable in your case. :)

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”