Hi! Mainly, I want to leave the web site from the first version during a major upgrade. To do that I try to use Component Condition like this: <Condition>
</Condition> Did not help. Then I did try to use Custom Action and setted the component RequestState to Local if(!string.IsNullOrEmpty(session["UPGRADINGPRODUCTCODE"])) { var webSiteComponent = session.Components["WebSiteComponent"]; if(webSiteComponent != null) webSiteComponent.RequestState = InstallState.Local; } But All works fine, except the case, when a rollback was occurred during a major upgrade. The feature contains my web site becomes advertised and never will be removable from the system. MSI (s) [time]: Feature: FullPack; Installed: Advertise; Request: Absent; Action: Absent MSI (s) [time]: Component: Component1; Installed: Local; Request: Null; Action: Null MSI (s) [time]: Component: Component2; Installed: Local; Request: Null; Action: Null MSI (s) [time]: Component: Component3; Installed: Local; Request: Null; Action: Null MSI (s) [time]: Component: WebSiteComponent; Installed: Absent; Request: Null; Action: Null I think there is no good design, but can anybody help me to find a workaround at least. Related docs and posts, that I found: http://stackoverflow.com/questions/15668829/wix-component-condition http://www.joyofsetup.com/2008/04/09/feature-states-in-component-conditions/ https://msdn.microsoft.com/en-us/library/aa368012(v=vs.85).aspx http://www.packagedeploy.com/forum/platformsdk-msi/feature-migration-during-major-upgrade-2666/ Regards, Alexey. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-prevent-an-Advertised-feature-state-after-the-rollback-during-a-major-upgrade-tp7600531.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users