Thanks Pally. It doesn't seem to be working for some reason, whether the initial install has them turned off or on, I never seem to be able to change it. Everything I've read seems to indicate that it should work so I'll look over it all again - but in the meantime, here is what I have:
<DirectoryRef Id="DesktopFolder"> <Component Id="MyApp.DesktopShortcut.Component" Guid="{removed}" Transitive="yes"> <Condition>INSTALLDESKTOPSHORTCUT</Condition> <Shortcut Id="MyApp.DesktopShortcut" Name="MyApp" Description="MyApp" Target="[APPLICATIONFOLDER]myapp.exe" WorkingDirectory="APPLICATIONFOLDER" /> <RegistryValue Root="HKCU" Key="Software\MyApp\MyApp" Name="desktopshortcut" Type="integer" Value="1" KeyPath="yes" /> </Component> </DirectoryRef> And in the feature: <Feature Id="MyApp.Feature" Title="MyApp" Level="1" Display="expand" ConfigurableDirectory="APPLICATIONFOLDER" AllowAdvertise="yes"> .. .. <ComponentRef Id="MyApp.DesktopShortcut.Component" /> </Feature> I must be missing something. Thanks, Mark. -- On 23/09/2010 12:19, Pally Sandher wrote: > Set Transitive="yes" on those Components -> > http://wix.sourceforge.net/manual-wix3/wix_xsd_component.htm > > Palbinder Sandher > Software Deployment& IT Administrator > T: +44 (0) 141 945 8500 > F: +44 (0) 141 945 8501 > > http://www.iesve.com > **Design, Simulate + Innovate with the<Virtual Environment>** > Integrated Environmental Solutions Limited. Registered in Scotland No. > SC151456 > Registered Office - Helix Building, West Of Scotland Science Park, > Glasgow G20 0SP > Email Disclaimer > > -----Original Message----- > From: Mark Simonetti [mailto:ma...@opalsoftware.co.uk] > Sent: 23 September 2010 12:01 > To: General discussion for Windows Installer XML toolset. > Subject: [WiX-users] Component installation status not affected by > condition? > > Hi, > I have a custom dialog box that contains checkboxes to allow the user to > select what shortcuts they want installing. I then have a component for > each shortcut with a condition inside it. > > <DirectoryRef Id="DesktopFolder"> > <Component Id="MyApp.DesktopShortcut.Component" Guid="{removed}"> > <Condition>INSTALLDESKTOPSHORTCUT</Condition> > <Shortcut Id="MyApp.DesktopShortcut" > Name="MyApp" > Description="My app." > Target="[APPLICATIONFOLDER]myapp.exe" > WorkingDirectory="APPLICATIONFOLDER" /> > <RegistryValue Root="HKCU" Key="Software\MyApp\MyApp" > Name="desktopshortcut" Type="integer" Value="1" KeyPath="yes" /> > </Component> </DirectoryRef> > > The problem is if I run the setup again and change these conditions (via > the checkboxes) the component installation status does not change. Is > their a way I can make this work or will I have to have them as > "features" instead? > > Thanks, > Mark. > > > ------------------------------------------------------------------------ > ------ > Start uncovering the many advantages of virtual appliances and start > using them to simplify application deployment and accelerate your shift > to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------------ > Start uncovering the many advantages of virtual appliances > and start using them to simplify application deployment and > accelerate your shift to cloud computing. > http://p.sf.net/sfu/novell-sfdev2dev > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users