wathiant
Posts: 4
Joined: Mon Apr 23, 2007 8:26 am

Find dependencies

I'm trying to remove an item through a custom dll during runtime and this used to work perfectly. However, I recently added "something" to the project and now I get "DEBUG: Error 2711: The specified Feature name ('....') not found in Feature Table.", which is as it should be, but without the error ;)

There is something that depends on the existence of this specific feature, but it's very hard to find it. Obviously, AI can easily find it, since it tells me that there IS a dependency when I try to remove the feature, but I have to go through all pages, components, merge modules, custom actions, etc by hand to find the one that's responsible...

I would VERY VERY much like a dependency-view so I can ask AI what the immediate dependencies of a specific feature / component are.

Of course, if this is already possible and I missed it somehow, please let me know as well :)
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

I am not sure I understand what the problem is. Please give me more details. If possible, send the AIP file to support at advancedinstaller dot com.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/
wathiant
Posts: 4
Joined: Mon Apr 23, 2007 8:26 am

I thought the problem was:
I have an installer that has 3 features, which can be installed depending on the serial key entered. When you enter a less-priviliged serial key, you get only 1 or 2 features instead of all 3. It's a bit more complex than that, but this will do for the explanation ;)

To disable a feature so the user can't just enable it again in the Custom Install dialog, it needs to be removed from the Feature table (see also this topic).

Now, I accidentally added a required merge module while I had feature 3 (the most priviliged one) selected. As a result, the application would fail or the merge module prevented the feature from being removed (I didn't test this thoroughly).
There were also some custom actions that referenced the feature 3 folder.

Now, if there was some kind of view that would allow me to see all components, features, actions, etc that have some relation with a specific feature, this would have been clear.


The actual problem turned out to be: ;)
When removing an item from the feature table at run time, the installer will crash with a 2711 error when you try to set the install level. Apparently the installer will try to update all features that it thinks should be there, instead of just the features that are there.

I had a 32-bit installation button and a 64-bit installation button, which would both set the install level. After I removed the install levels and used automatic detection (AMD64) for the 32/64-bit choice, the 2711 error vanished and everything works again.

Concluding:
The feature I requested would be useful (I think), but it would not have solved my problem, except that it might have saved me the time I spent trying to find the items related to the feature I was trying to remove.
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi Job,

Sorry for the late reply.

With the current design it is not yet possible to determine which rows (Features, files, Custom Actions etc) reference other rows.

AI uses a reference counting mechanism such that when a certain row is used somewhere, its reference count is incremented. The row knowns what its refcount is, but has no knowledge who has refcount-ed it.

This could be improved such that each time the reference count of a given row is increased, that particular row is also notified who has refcount-ed it. However, this would create a considerable overhead.

We shall try to find a solution for this in a future version. Until then, the simplest method to determine what rows reference a given row would be to open the AIP file in a text editor and search for the identifier of the particular row you are interested in (in your case that would have been a Feature ID).

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Feature Requests”