Condition on feature
Hi,
Using Wise, I am trying and failing bad on having a condition for a feature that I want to be installed only if it matches a specific registry key value and another feature with condition for file exist on wks..
What am doing, I am creating under System Search, an entry, that fetches the value of a reg key using the operation Read Raw value from registry. Key may or may not exist. I am assuming that if the key exist, the value will get populated in the Property name(PROPERTYONE). I am not sure what happens if the reg key do not exist. Does the property value get set to NUL? I am also looking for a file present on the wks using File/Directory still under System Search (PROPERTYTWO).
So, i have a main feature with no condition. I have a second one (no parent either) which I want to install only if the reg key equals a specific value. I am failing there miserably. I have try many condition syntax and am wondering if you know where am missing. Last thing I try was PROPERTYONE="ThevalueIwant" Thinking that if the workstation registry value equals "ThevalueIwant", that it will install this feature. I have try manything including with ~ for Case.
I am having the same problems for a third feature which condition is only the propertyname PROPERTYTWO. I want this feature to install only if a file is present on the wks.
Can anyone help?
Thks
Using Wise, I am trying and failing bad on having a condition for a feature that I want to be installed only if it matches a specific registry key value and another feature with condition for file exist on wks..
What am doing, I am creating under System Search, an entry, that fetches the value of a reg key using the operation Read Raw value from registry. Key may or may not exist. I am assuming that if the key exist, the value will get populated in the Property name(PROPERTYONE). I am not sure what happens if the reg key do not exist. Does the property value get set to NUL? I am also looking for a file present on the wks using File/Directory still under System Search (PROPERTYTWO).
So, i have a main feature with no condition. I have a second one (no parent either) which I want to install only if the reg key equals a specific value. I am failing there miserably. I have try many condition syntax and am wondering if you know where am missing. Last thing I try was PROPERTYONE="ThevalueIwant" Thinking that if the workstation registry value equals "ThevalueIwant", that it will install this feature. I have try manything including with ~ for Case.
I am having the same problems for a third feature which condition is only the propertyname PROPERTYTWO. I want this feature to install only if a file is present on the wks.
Can anyone help?
Thks
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
PackagerWannaBe
15 years ago
Posted by:
PackagerWannaBe
15 years ago
Just an update.
I put the conditons on every components and now it works perfectly. I am just wondering why I have to put the conditions on all of them. Is it normal way to do? Putting a condition on a feature should apply it to every components associated to this feature no?
Is this a setting am missing?
Thanks for your input if any.
I put the conditons on every components and now it works perfectly. I am just wondering why I have to put the conditions on all of them. Is it normal way to do? Putting a condition on a feature should apply it to every components associated to this feature no?
Is this a setting am missing?
Thanks for your input if any.
Posted by:
anonymous_9363
15 years ago
If there is a condition on a feature, should all the components assigned to this feature get the condition too? Looking at components table, it's not showing any condition on any components.The Components table won't show the condition, no. If the expected components of the feature you have conditioned don't seem to be obeying the condition's terms, I suspect that those components are not associated with the feature. Check the the FeatureComponents table.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.