Jonas Abrams wrote:
> Hey everyone,
Hi.
> I am trying to base the installation of a feature in my
> install on a property that gets set through a custom action
> and have been unable to get it to work correctly. These are
> the steps that I am following:
>
>
>
> I first set up my property:
>
> <Property Id='PREREQ' Value="0" />
>
>
>
> Now I have my feature information (I have tried with and
> without the '[]' around the property):
>
> <Feature Id='CFeature' Title='Feature'
> Description='The Feature' Level="1"
> ConfigurableDirectory='INSTALLDIR'>
>
> <Condition Level="0">[PREREQ] !=
> "1"</Condition>
>
> <!-- Insert any references to
> hand-coded components -->
>
> <ComponentRef Id='NComponent' />
>
> </Feature>
>
>
>
> I have my custom action set up like this within the
> InstallUISequence element:
>
> <Custom Action="CheckVersion" Before="WelcomeDlg" />
>
>
>
> Does this look correct? Is there something I'm missing?
I am not sure it can work this way.
I use in a similar situation 'Remove' and 'AddLocal' in the
'Next' button 'handlers' of the dialog leading the the
customization page, i.e. something like
<Control Id='Next' Type='PushButton' X='...'>
<Publish Event='NewDialog' Value='CustomizeDlg'>"Yes"</Publish>
<Publish Event='Remove' Value='Netlm'>LICENSEMODE = "demo"</Publish>
<Publish Event='Remove' Value='Netlm'>LICENSEMODE = "client"</Publish>
<Publish Event='AddLocal' Value='Netlm'>LICENSEMODE = "network"</Publish>
This selects/deselects an item in the feature tree.
Andre'
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users