Give both app.exe unique File Id's & I suspect the shortcuts won't appear.



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: fiordean dacian [mailto:dfiord...@yahoo.com] 
Sent: 15 September 2009 15:35
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Component installed even if not part of selected feature

Hi,

I have something like

<Component Id="C1" Guid="..." DiskId="1">
   <File Id="F1" Name="app.exe" Source="c:\app.exe">
       <Shortcut Id="app1Sc" Name="app sc" Icon="..." IconIndex="..."/>
       <Shortcut Id="app1ScRmt" Name="appSc Remote" Icon="..." IconIndex="..."/>
   </File>
   <File>...</File>
   <Registry>...</Registry>
</Component>

<Component Id="C2" Guid="..." DiskId="1">

   <File Id="F1" Name="app.exe" Source="c:\app.exe">

       <Shortcut Id="app2Sc" Name="app sc" Icon="..." IconIndex="..."/>

   </File>

   <File>...</File>

   <Registry>...</Registry>

</Component>

<Component Id="C3" Guid="..." DiskId="1">
   <File>...</File>


</Component>


<Feature Id="Full" Level="1">
   <ComponentRef Id="C2"/>
   <ComponentRef Id="C3"/>
</Feature>

<Feature Id="Partial" Level="1"/>
    <ComponentRef Id="C1"/>
</Feature>

I select "Full" feature for installation; I know it's correct because C3 
component files are installed. But I also get the shortcuts from C1 component 
created which looks like the C1 is installed as well (basically C1 and C2 
differs only by a shortcut as above, the files are exactly the same) even if 
not part of "Full" install.

I saw someone already had a similar problem but can't seem to find an answer 
for my problem in the answers he got (I don't plan using conditions)

http://sourceforge.net/mailarchive/forum.php?thread_name=45f1db380908240448n2c4a5594y3a5e9ee8437ee399%40mail.gmail.com&forum_name=wix-users

Did anyone had a similar problem? Thanks





      
------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA is the 
only developer event you need to attend this year. Jumpstart your developing 
skills, take BlackBerry mobile applications to market and stay ahead of the 
curve. Join us from November 9&#45;12, 2009. Register now&#33; 
http://p.sf.net/sfu/devconf _______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to