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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
....you might want to look into the Condition table.....[;)]
Answered 10/05/2009 by: captain_planet
Third Degree Brown Belt

Please log in to comment

Please log in to comment
0
I have entered my conditions in the condition table but it still does not work

any ideas what am I doing wrong
Answered 10/05/2009 by: bob_msi
Orange Belt

Please log in to comment
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.
Answered 10/05/2009 by: captain_planet
Third Degree Brown Belt

Please log in to comment
0
feature_ level condition
A 3 STRFINDA=regvaluea
B 3 STRFINDB=regvalueb
Answered 10/05/2009 by: bob_msi
Orange Belt

Please log in to comment
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?
Answered 10/05/2009 by: VBScab
Red Belt

Please log in to comment
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.
Answered 10/05/2009 by: captain_planet
Third Degree Brown Belt

Please log in to comment
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[:@]
Answered 10/05/2009 by: bob_msi
Orange Belt

Please log in to comment
0
At what Level are the features by default? I hope it's above 3...
Answered 10/05/2009 by: VBScab
Red Belt

Please log in to comment
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
Answered 10/05/2009 by: pjgeutjens
Red Belt

Please log in to comment
0
install level in the property table is set to 100
Answered 10/05/2009 by: bob_msi
Orange Belt

Please log in to comment
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.
Answered 10/05/2009 by: pjgeutjens
Red Belt

Please log in to comment
0
pjgeutjens

thanks pjgeutjens it now works. I followed you steps

you will get my rating for this one thanks
Answered 10/05/2009 by: bob_msi
Orange Belt

Please log in to comment
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....
Answered 10/05/2009 by: captain_planet
Third Degree Brown Belt

Please log in to comment
0
Am I bovered, doh? Does vis face look bovered?
Answered 10/05/2009 by: VBScab
Red Belt

Please log in to comment
0
Does vis face look bovered - innit.
Answered 10/05/2009 by: captain_planet
Third Degree Brown Belt

Please log in to comment
0
we are all winners thanks all and points for your help
Answered 10/05/2009 by: bob_msi
Orange Belt

Please log in to comment
0
we are all winners - ha ha ha. Almost. But I'll resist posting instruction on how to rate a post. [;)]
Answered 10/05/2009 by: captain_planet
Third Degree Brown Belt

Please log in to comment
Answer this question or Comment on this question for clarity