If DisableEnable1 is manually set to no or yes then the edit box behaves
as expected (enabled/disabled). I want to be able to set DisableEnable1
depending on whether a Feature has been installed.

 

 

<?define DisableEnable1  = "no"?>

 

<Control Id="WSServerEditBox" Type="Edit" X="20" Y="72" Width="290"
Height="18" Default="yes" Property="WEBSERVICESERVER1"
Text="[WEBSERVICESERVER1]" Disabled="$(var.DisableEnable1)"/>

 

<Feature Id="SampleFeature" Title="zTestWebSite" Level="1">

      <ComponentGroupRef Id="zTestWebSite" />

    </Feature>

 

I've tried various ways of detecting whether the user has selected my
feature - none of which appear to work - The component in which I
include the condition never gets installed (implying that the condition
always evaluates to false(?)) though all other components get installed.
I've tried:

 

<Condition>SampleFeature=3</Condition>

 

 

<Condition><![CDATA[SampleFeature=3]]></Condition>

 

<Condition><![CDATA[&SampleFeature=3]]></Condition>

 

 

<Condition><![CDATA[&SampleFeature=3 Or &SampleFeature=4]]></Condition>

 

 

Anyone got an idea where I'm going wrong? Also Once I've established the
right condition what would be the syntax for re-setting the
DisableEnable1 value? Would this typically be done within a Custom
Action?

 

Norman Lough

Developer

Tel: +44 (0)191 213 5555

DDI: +44 (0)191 2028360

Email: norman.lo...@imass.co.uk

Imass Ltd, Northumbria House, Regent Centre, Gosforth, Newcastle upon
Tyne, NE3 3PX. http://www.imass.co.uk <http://www.imass.co.uk/> 

 

Imass Limited is an Infoterra company, part of EADS Astrium

 

 

Registered in England and Wales No. 2379476

 

- Disclaimer -
The information contained in this e-mail and its attachments is
confidential and intended only for the use of the individual or entity
named above.  If you are not the intended recipient, please do not read,
copy, use or disclose this message or its attachments.  If you have
received this message in error, please notify the sender immediately and
delete or destroy all copies of this message and attachments in all
media.  Any views expressed in this e-mail that do not relate to Imass'
official business may not reflect the views of the company.

 

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to