/build/static/layout/Breadcrumb_cap_w.png

condition on features

how can I install a feature based on a system search

I have 2 features but I want to install only one based on a condition in the registry

I have created the system search property based on the 2 reg keys

and I have conditioned the components in each feature


ie hklm\software\servera appsearch STRFINDA
hklm\software\serverb appsearch STRFINDB


feature A

component A
condition STRFINDA=regvaluea


feature B
component B

condition STRFINDB = regvalueb


this works fine but how do i condition the features instead

0 Comments   [ + ] Show comments

Answers (18)

Posted by: pjgeutjens 15 years ago
Red Belt
2
install level in the property table is set to 100

That sounds a bit high, ofcourse depends on the default installlevels of your 2 features. But try the following:

Set INSTALLEVEL in property table to 3
Set InstallLevel of your 2 features to 4
Set level value in Condition table to 3
Make sure all features that always get installed have installlevel of 3 or lower.

If you want to use higher values, go ahead, but keep the same higher-lower relationships.
Posted by: anonymous_9363 15 years ago
Red Belt
1
Presumably, 'regvaluea' and 'regvalue' are the actual values you're expecting to be returned? That is, if you're testing for, say, an uninstall string, then 'regvaluea' would be the actual string.

Equally, I presume you have STRFINDA/STRFINDB initialised to zero in the Property table?

Why not post (in CODE tags, so that you can space things out nicely) the AppSearch, Condition, Property and RegLocator tables?
Posted by: captain_planet 15 years ago
Black Belt
0
....you might want to look into the Condition table.....[;)]
Posted by: bob_msi 15 years ago
Orange Belt
0
I have entered my conditions in the condition table but it still does not work

any ideas what am I doing wrong
Posted by: captain_planet 15 years ago
Black Belt
0
Give us a clue bob - what's in your Condition table? What's your install log saying? You might want to look into how the InstallLevel property affects whether features are installed or not, and possibly re-evaluate the value you have entered in your 'Level' column.
Posted by: bob_msi 15 years ago
Orange Belt
0
feature_ level condition
A 3 STRFINDA=regvaluea
B 3 STRFINDB=regvalueb
Posted by: captain_planet 15 years ago
Black Belt
0
....and I think your InstallLevel property will have to be at least 3 for these conditions to work too....if it's less than 3, the features wont install regardless of your conditions.
Posted by: bob_msi 15 years ago
Orange Belt
0


appsearch table

property signature_
STRA New signature1
STRB New signature 2





reglocator table

signature_ Root key name type

new signature1 2 software\myname server 2

new signature2 2 software\myname server 2







property table

property value

STRA 0

STRB 0








condition table

feature_ level condition

A 3 STRA="thisisitvaluea"

B 3 STRB="thisisitvalueb"




this is what my tables look like and when I install the msi it installs both features
what am I doing wrong[:@]
Posted by: anonymous_9363 15 years ago
Red Belt
0
At what Level are the features by default? I hope it's above 3...
Posted by: pjgeutjens 15 years ago
Red Belt
0
STRB New signature 2

The space before the 2 is a typo? If it is in your tables remove it.

Also what's the default INSTALLLEVEL of your MSI set to?

If I'm not mistaken it should be lower than the default installlevel of the features (so they don't get installed by default) and the level value in the condition table should set the installlevel of the features to lower than or equal to your MSI's INSTALLLEVEL.
Hope it helps

PJ
Posted by: bob_msi 15 years ago
Orange Belt
0
install level in the property table is set to 100
Posted by: bob_msi 15 years ago
Orange Belt
0
pjgeutjens

thanks pjgeutjens it now works. I followed you steps

you will get my rating for this one thanks
Posted by: captain_planet 15 years ago
Black Belt
0
you will get my rating for this one thanks - unlucky VBScab, you and me both. I guess we can take the horse to water....
Posted by: anonymous_9363 15 years ago
Red Belt
0
Am I bovered, doh? Does vis face look bovered?
Posted by: captain_planet 15 years ago
Black Belt
0
Does vis face look bovered - innit.
Posted by: bob_msi 15 years ago
Orange Belt
0
we are all winners thanks all and points for your help
Posted by: captain_planet 15 years ago
Black Belt
0
we are all winners - ha ha ha. Almost. But I'll resist posting instruction on how to rate a post. [;)]
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ