That should work.  You probably don't need the CreateFolder element though.

-----Original Message-----
From: ychen [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2008 07:51
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Conditionally create shortcuts


Hi,

I would like to create shortcuts based on whether one or more checkboxes are
checked. Is that achievable?

<Component Id="DesktopShortcut" Guid="...">
          <Condition>IS_CHECKED</Condition>
          <CreateFolder/>
          <RegistryKey Root="HKCU" Key="Software\Llamagraphics\Life Balance
\Install"
                       Action="createAndRemoveOnUninstall">
            <RegistryValue Name="DTSC" Value="1" Type="integer" KeyPath="yes"/>
          </RegistryKey>
          <Shortcut Id="DesktopShortcut" Directory="DesktopFolder"
                    Name="Life Balance" WorkingDirectory="INSTALLDIR"
                    Icon="Application.ico" Target="[#Life_Balance.exe]"/>
</Component>
--
View this message in context: 
http://n2.nabble.com/Conditionally-create-shortcuts-tp1614044p1614044.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to