adding a new file (component) to a feature

lizii

So i have added to my only feature a new component (which is in reference to a new file) - but i get this error:

MSI (s) (10:4C) [12:28:00:310]: SELMGR: ComponentId '{4D4B21FB-7FAD-7972-B356-22264023C75B}' is registered to feature 'DefaultFeature', but is not present in the Component table. Removal of components from a feature is not supported!MSI (s) (10:4C) [12:28:00:310]: SELMGR: Removal of a component from a feature is not supported

I am using VS2003.net and from what i understand under changing the product code - no you are not allowed to remove a component from a feature - that does need a change in the product code (thus a major upgrade) but you are allowed to add new files and remove files....

Stefan Krueger

Stefan Krueger

InstallSite.org

Administrators

13,269 posts

Posted 15 August 2007 - 11:14

I think I've seen some discussions in some blogs, but nothing official.My recommendation: leave the component in the setup, and keep the files in your setup (if they are large, replace them with 1 byte dummies). Now the trick: set the component condition to 0 (so it will always evaluate to FALSE) and make the component transitive ("re-evaluate condition" in InstallShield).