Put a DirectoryRef or Directory as a parent of the Component.

Ex:
<DirectorRef Id='Foo'>
  <Component...>
    <File.../>
 </Component> 
  <Component...>
    <File.../>
 </Component>
  <Component...>
    <File.../>
 </Component>
...
</DirectoryRef>

-----Original Message-----
From: Rick Hantz (Hotmail) [mailto:rick_ha...@hotmail.com] 
Sent: Monday, August 27, 2012 3:49 PM
To: 'General discussion for Windows Installer XML toolset.'
Subject: [WiX-users] Install filles to an Image folder question

I have one image file to install to an Images subfolder on the client.

<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER" >  VS 2012 
gives me a syntax error if I remove the 'Directory' from the ComponentGroup.

I wanted to add:

<Component Id="BtnIconImage"  Guid="F0FA9774-79B2-4E0E-9BD7-6CB84AB73986"
Directory="ImagesDir">
        <File Id='celtic_btn_r1png'  Name='celtic_btn_r1.png'
Source="$(var.SolutionDir)SmartListW32\Images\celtic_btn_r1.png"
         DiskId="1" KeyPath="yes" >
        </File>
      </Component>

And specify the directory in each component. 

What's the best way to do this?
Thnx,
Rick


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and threat 
landscape has changed and how IT managers can respond. Discussions will include 
endpoint security, mobile security and the latest in malware threats. 
http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to