I found a good http://www.dizzymonkeydesign.com/blog/misc/adding-and-customizing-dlgs-in-wix-3/ web site talk about this issue. But I can never make the condition correctly.
I tried <Condition>"ADDLOCAL=FeatureB"</Condition> but it will return True all the time even I pass-in "ADDLOCAL=FeatureB,FeatureB" Any idea? puyopuy wrote: > > Hello guys, > > I want to use WIX to create a msi with 3 features Full, FeatureA, > FeatureB. Full will install FeatureA and FeatureB. I want to create a > shortcut in desktop when user selected FeatureB only (select Full or > FeatureA won’t create this shortcut). I tried to use > Arguments="[ADDLOCAL]=FeatureB" in the shortcut element but still not > perform what I want to do. > > <?xml version="1.0" encoding="UTF-8"?> > <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> > <Product Id="fc38ce2e-6c36-4f72-b043-a8f43924fb54" Name="TestFeature" > Language="1033" Version="1.0.0.0" Manufacturer="Microsoft" > UpgradeCode="3cc55a49-834d-424c-b405-d9089063a403"> > <Package InstallerVersion="200" Compressed="yes" /> > <Media Id="1" Cabinet="WixProject3.cab" EmbedCab="yes" /> > <Directory Id="TARGETDIR" Name="SourceDir"> > <Directory Id="DesktopFolder" SourceName="Desktop" /> > <Directory Id="ProgramFilesFolder"> > <Directory Id="INSTALLLOCATION" Name="Microsoft"> > <Directory Id="TestingFeature" Name="TestingFeature"> > <Component Id="ProductComponent" > Guid="{D0C6AD7D-2CF5-4115-BC0D-AF39E2D23D51}"> > <File Id="TextFile1.txt" Name="TextFile1.txt" > Compressed="yes" DiskId="1" Source="File\TextFile1.txt" /> > </Component> > <Component Id="ProductComponent2" > Guid="{B073761A-4A85-478b-A73D-EDA1BA760DA7}"> > <File Id="TextFile2.txt" Name="TextFile2.txt" > Compressed="yes" DiskId="1" Source="File\TextFile2.txt" /> > </Component> > <Component Id="ProductComponent3" > Guid="{833E3DBB-E62C-44ab-9615-B26FAB911754}"> > <File Id="TextFile3.txt" Name="TextFile3.txt" > Compressed="yes" DiskId="1" Source="File\TextFile3.txt" /> > <Shortcut Id="Shortcut_TextFile2" Directory="DesktopFolder" > Arguments="[ADDLOCAL]=FeatureB" Name="ServerExe" Show="normal" > Advertise="yes" /> > </Component> > </Directory> > </Directory> > </Directory> > </Directory> > > <Feature Id="Full" Title="Full Features" Level="3"> > <ComponentRef Id="ProductComponent" /> > <Feature Id="FeatureA" AllowAdvertise="system" Title="Feature A" > Level="3"> > <ComponentRef Id="ProductComponent2" /> > </Feature> > <Feature Id="FeatureB" AllowAdvertise="system" Title="Feature B" > Level="3"> > <ComponentRef Id="ProductComponent3" /> > </Feature> > </Feature> > > <UIRef Id="WixUI_FeatureTree" /> > <Property Id="AgreeToLicense" Value="No" /> > <Property Id="InstallChoice" Value="AR" /> > </Product> > </Wix> > > > Any help is much appreciated. > > Thanks > Puyopuy > > -- View this message in context: http://www.nabble.com/How-to-create-shortcut-base-on-user-selected-feature-tp16048115p16064457.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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