Not to confuse you - in my example in the mail I left the line to define my dll: <Binary Id="MsiTools" SourceFile="MsiTools.dll"/>
EBCN(Christian Ebner) wrote: > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Chris > Sent: Montag, 11. Februar 2008 08:59 > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Property set by CA and used in a Condition > > Hello, > I want to set a value of a Property with a Custom Action and decide then > with a condition if a certain folder will be installed or not. > In the log I see that the Property was set but the defined value is used > for the condition. I tried already several things but nothing worked > out! > How can I solve this? > Thank's, > Chris > > here my example: > > <?xml version="1.0" encoding="UTF-8"?> > <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> > <Product Id="5f98847e-4d63-490d-9644-fa98120decd5" > Name="Application" Language="1033" > Version="20.0.0.0" Manufacturer="Test AG" > UpgradeCode="c963414f-10c2-44e0-adaa-01c8b09fd56b"> > > <Package InstallerVersion="200" Compressed="yes" /> > <Media Id="1" Cabinet="MPS.cab" EmbedCab="yes" /> > > <Directory Id="TARGETDIR" Name="SourceDir"> > <Directory Id="ProgramFilesFolder"> > <Directory Id ="INSTALLDIR" Name="A_Test"> > <Component Id="ProductComponent1" > Guid="c2bb4873-bc98-4c19-811a-57df970321f3"> > <File Id="test.txt" Source="test.txt" Name="service.exe"/> > <Condition><![CDATA[(HASARCNET="1")]]></Condition> > </Component> > </Directory> > </Directory> > </Directory> > > <Feature Id="ProductFeature" Title="MyFeature" Level="1"> > <ComponentRef Id="ProductComponent1" /> > </Feature> > > <Property Id="HASARCNET" Value="1"/> > <CustomAction Id="CheckArcnet" BinaryKey="MsiTools" > DllEntry="HasArcnet" Execute="deferred"/> > > <InstallExecuteSequence> > <Custom Action="CheckArcnet" Before="InstallFinalize">NOT > Installed</Custom> > </InstallExecuteSequence> > > <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" /> > <UIRef Id="WixUI_InstallDir" /> > > </Product> > </Wix> > > > ------------------------------------------------------------------------ > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users