Hey Brian,

Per your example, remove CopyFile/@SourceName and CopyFile/@SourceProperty.
Add CopyFile@/FileId and set it to the File/@Id which equals app.ico. OR,
move the <CopyFile/> under the <File/> and then remove the CopyFile/@FileId.

According to documentation (
http://wix.sourceforge.net/manual-wix3/wix_xsd_copyfile.htm)
CopyFile/@SourceProperty is a more advanced need.

Hope that helps,

Brian Rogers
"Intelligence removes complexity." - Me
http://icumove.spaces.live.com


On Fri, Feb 20, 2009 at 5:49 PM, Little Forest <little.for...@ymail.com>wrote:

> Essentially, what I'd like to do is to "install one file in two folders".
>
> We have one file called app.ico. It needs to be installed in
> "ProgramFiles\MyCompany\MyApp" folder and
> "ProgramFiles\MyCompany\MyApp\Images" folder. - Please don't ask me why,
> this is the requirement.
>
> Anyways, I searched the forum. It seems I'll have to "CopyFile". But I
> don't have a clue how to make CopyFile working in WiX 3.0.
>
> I tried that, but the file only got installed in
> "ProgramFiles\MyCompany\MyApp" folder, it's never installed in
> "ProgramFiles\MyCompany\MyApp\Images" folder. The CopyFile doesn't work.
>
> Here is my code:
>
>       <Directory Id="TARGETDIR" Name="SourceDir">
>            <Directory Id="ProgramFilesFolder">
>                <Directory Id="InstallFolderCompanyLevel"
> Name="$(var.CompanyShortName)">
>                    <Directory Id="INSTALLLOCATION"
> Name="$(var.ProductNameForDisplay)">
>                        <Component Id="Component_App_Ico"
> Guid="C5CBC75E-2571-4815-A5ED-C9839DB15658">
>                           <File Source="app.ico" KeyPath="yes"
> Checksum="yes"/>
>                        </Component>
>                        ... ...
>                        <Directory Id="FOLDER_IMAGES" Name="Images">
>                        ... ...
>                            <Component Id="CopyAppIcoFile"
> Guid="97B5836B-E1AB-4910-8C00-91EE2A25F399">
>                                <CopyFile Id="MyCopyFile"
>                                      SourceName="app.ico"
>                                      SourceProperty="INSTALLLOCATION"
>                                      DestinationProperty="FOLDER_IMAGES" />
>                            </Component>
>
>                        </Directory>
>                    </Directory>
>                </Directory>
>            </Directory>
>        ... ...
>        </Directory>
>
> Can anyone correct me and give the source code solution?
>
> Thanks.
>
> /Brian
>
>
>      __________________________________________________________________
> Be smarter than spam. See how smart SpamGuard is at giving junk email the
> boot with the All-new Yahoo! Mail.  Click on Options in Mail and switch to
> New Mail today or register for free at http://mail.yahoo.ca
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to