Setting a property value to choose components #9024
-
I have two version of a component. I need to determine which one to install based on the result of a custom action. The challenge I am running into is that the component's condition attribute does not see the new value of a property changed via a custom action. I have verified that:
I've run out of things to try. If someone can point out what I need to do to resolve this I would greatly appreciate it. Thanks, Here are the relevant bits of code. WXS
C# .NET Custom Action - A separate custom action consumes this changed value and it is changed for that (deferred) custom action
Log - Note, IISWindowsAuthConfiguration Action is Null but should be Local and IISFormsAuthConfiguration should be Null
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
-
I take a simpler approach. When I install a new website I mark the component as permenant and and set ConfigureIfExists to false. I then give my useres instructions to install and then configure the site as they need ( For example, bindings, SSL config, applicaton pool identity or in your case auth) start the website and test. Then during upgrades my installer never touches the website configuration again. I've found this works really well. If IIS Manager is too complex for your users you could create a config tool. While I know how to do all of this in MSI I think this is a scenario where it's just too complex and the juice isn't worth the squeeze. |
Beta Was this translation helpful? Give feedback.
InstallIValidate
is too late. See the documentation for CostFinalize and use that instead.