You have a build error, that's why it's referring to the WiX source
file, just have the file in the right place for the build. It's not
building, so that means you haven't tested it yet.

Maybe you are confusing build time with install time? The copyfile
element at install time needs a source location and a destination
location. If you are copying from the same location as the installing
MSI file then you need the SourceDir property as the source location:

http://msdn.microsoft.com/en-us/library/aa371857(v=vs.85).aspx


---------------
Phil Wilson


On Mon, Feb 24, 2014 at 6:25 AM, Suvrajyoti Panda
<suvrajyo...@contata.co.in> wrote:
> Hey Guys, if you have any clue on the below issue please provide your
> inputs on the same.
>
> Regards,
> Suvra Jyoti
>
> -------- Original Message --------
> Subject:        Re: [WiX-users] Not able to copy a file using CopyFile from
> installers install location to a target destination
> Date:   Mon, 24 Feb 2014 12:46:56 +0530
> From:   Suvrajyoti Panda <suvrajyo...@contata.co.in>
> To:     wix-users@lists.sourceforge.net
>
>
>
> Hi Phil,
>
> Thanks for the suggestion. I have modified my wix source file as below
> to use SourceDir in the Source attribute of <File>:
>
> <Directory Id='TARGETDIR' Name='SourceDir'>
>        <Directory Id='EnergySolutions' Name="Energy Solutions
> International">
>         <Directory Id='TORT' Name='PipelineOptimizer 6.0.0'>
>              <Directory Id="CopiedFiles" Name="Copied Files" />
>       </Directory>
>     </Directory>
> </Directory>
>
>      <Component Id="PreferencesFile"
> Guid="{AD1478B2-D6DE-4855-9AFE-BFADDD63554F}" Directory="SourceDir">
>        <File Id="FilePref" Name="preferences.xml"
> Source="SourceDir\Energy Solutions International\PipelineOptimizer
> 6.0.0\gui\screens" KeyPath="yes">
>          <CopyFile Id="Copy" DestinationDirectory="CopiedFiles"/>
>        </File>
>      </Component>
>
>
>      <SetDirectory Id="EnergySolutions" Value="[WindowsVolume]Energy
> Solutions International"/>
>
>      <Feature Id='Complete' Title='Tort Installer' Description='Tort
> Installer' Level='1'>
>        <ComponentGroupRef Id='gui'></ComponentGroupRef>
>        <ComponentRef Id="PreferencesFile" />
>      </Feature>
>
> On executing the Light i am getting the below error:
>
> C:\PLO\CruiseControl\TortInstaller\TortInstall.wxs(23) : error LGHT0103
> : The system cannot find the file 'SourceDir\Energy Solutions
> International\PipelineOpti
> mizer 6.0.0\gui\screens'.
>
> For the File Source attribute above, i have also used only "SourceDir"
> value as well. The main issue is the resolution of the path to the file
> that is inside componentgroupref Id 'gui' (subdirectory) that is created
> by Heat.exe .As can be seen here the path to the preference.xml file is
> in the gui\screens, created by the componentgroupref Id="gui" directory
> under which there is a screens directory which contains the file. The
> structure thus formed on installation should be SourceDir\Energy
> Solutions International\PipelineOptimizer 6.0.0\gui\screens\, which i am
> not able to access and getting the path error.
>
> The gui.wxs file created looks like below:
>
> <Fragment>
>          <DirectoryRef Id="TORT">
>              <Directory Id="dir9819615C78959640E45EA793F36FD3BB" Name="gui">
>                  <Component Id="cmp9DEB41E9A6D785D0FFB64755704DFDED"
> Guid="{31302A86-80FD-4552-8037-B3CB54B12219}">
>                      <File Id="filE2623651AE1B80ACDAB29B5020830498"
> KeyPath="yes" Source="$(var.GuiPath)\mosquito.exe" />
>                  </Component>
>                  ....
>                  .....
>
>
> <Fragment>
>          <ComponentGroup Id="gui">
>          ....
>          ....
>
> Please provide some help on the this, as this is urgent for me.
>
> Regards,
> Suvra Jyoti
>
> On 21-02-2014 22:45, Phil Wilson wrote:
>> If you're doing an install time copyfile from the install location of
>> the MSI to a location on the system you need a copyfile that has
>> something like SourceDir as the source of the copy and EnergySolutions
>> as the destination.
>> ---------------
>> Phil Wilson
>>
>>
>> On Fri, Feb 21, 2014 at 8:10 AM, John Cooper<jocoo...@jackhenry.com>  wrote:
>>> You're trying to copy to a privileged location.  You need to either be 
>>> installing perMachine or you need to elevate and have an installing user 
>>> with Administrator privileges.  An unprivileged user can't install or copy 
>>> to "C:\Program Files" ordinarily.
>>> --
>>> John Merryweather Cooper
>>> Build & Install Engineer - jXchange
>>> Jack Henry & Associates, Inc.®
>>> Shawnee Mission, KS  66227
>>> Office:  913-341-3434 x791011
>>> jocoo...@jackhenry.com
>>> www.jackhenry.com
>>>
>>> ________________________________________
>>> From: Suvrajyoti Panda [suvrajyo...@contata.co.in]
>>> Sent: Friday, February 21, 2014 4:07 AM
>>> To: General discussion about the WiX toolset.
>>> Subject: [WiX-users] Not able to copy a file using CopyFile from installers 
>>> install location to a target destination
>>>
>>> Hi All,
>>>
>>> I have the requirement of creating an installer that on executing will
>>> install to the location  "C:\Energy Solutions
>>> International\PipelineOptimizer 6.0.0" the following 5 directories:
>>> db,data,engine,security, gui. These five directories are being harvested
>>> from a location using Heat. Below is the structure of the Wix source
>>> file i have:
>>>
>>> <Property Id="CopyDestination"
>>> Value="$(var.copyRoot)\$(var.rootFolder)\$(var.installFolder)"/>
>>>
>>> <Directory Id='TARGETDIR' Name='SourceDir'>
>>>         <Directory Id='EnergySolutions' Name="Energy Solutions
>>> International">
>>>          <Directory Id='TORT' Name='PipelineOptimizer 6.0.0'>
>>>          </Directory>
>>>         </Directory>
>>>       </Directory>
>>>
>>>       <SetDirectory Id="EnergySolutions" Value="[WindowsVolume]Energy
>>> Solutions International"/>
>>>
>>>       <Feature Id='Complete' Title='Tort Installer' Description='Tort
>>> Installer' Level='1'>
>>>         <ComponentGroupRef Id='db'/>
>>>         <ComponentGroupRef Id='data'/>
>>>         <ComponentGroupRef Id='engine'/>
>>>         <ComponentGroupRef Id='security'/>
>>>         <ComponentGroupRef Id='gui'/>
>>>         <ComponentRef Id="PreferencesFile" />
>>>       </Feature>
>>>
>>>     </Product>
>>>
>>> I want to copy a file called preferences.xml that will be found under
>>> C:\Energy Solutions International\PipelineOptimizer 6.0.0\gui\screens on
>>> installation to the c:\programdata\Energy Solutions
>>> International\PipelineOptimizer 6.0.0 as this file will be used by an
>>> exe that would be present in the location of the installation at
>>> C:\Energy Solutions International\PipelineOptimizer 6.0.0\gui
>>>
>>> I am aware that the CopyFile would be used to do so but am not able to
>>> use it properly. Please suggest some solution around the same.
>>> I have tried something like the below:
>>>
>>> <DirectoryRef Id="TORT">
>>>         <Component Id="PreferencesFile"
>>> Guid="{A4E1FFCE-1534-43BF-AA2B-CDFD39381720}">
>>>           <File Id="FilePref" Source="gui\screens\preferencel.xml"
>>> KeyPath="yes">
>>>             <CopyFile Id="Copy" DestinationProperty="CopyDestination"/>
>>>           </File>
>>>          </Component>
>>>       </DirectoryRef>
>>>
>>> But this does not work. Please provide some help on this as i am stuck
>>> on this.
>>>
>>> Regards,
>>> Suvra Jyoti
>>> ------------------------------------------------------------------------------
>>> Managing the Performance of Cloud-Based Applications
>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>> Read the Whitepaper.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> WiX-users mailing list
>>> WiX-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>> NOTICE: This electronic mail message and any files transmitted with it are 
>>> intended
>>> exclusively for the individual or entity to which it is addressed. The 
>>> message,
>>> together with any attachment, may contain confidential and/or privileged 
>>> information.
>>> Any unauthorized review, use, printing, saving, copying, disclosure or 
>>> distribution
>>> is strictly prohibited. If you have received this message in error, please
>>> immediately advise the sender by reply email and delete all copies.
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Managing the Performance of Cloud-Based Applications
>>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>>> Read the Whitepaper.
>>> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> WiX-users mailing list
>>> WiX-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/wix-users
>> ------------------------------------------------------------------------------
>> Managing the Performance of Cloud-Based Applications
>> Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
>> Read the Whitepaper.
>> http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>
>
>
> ------------------------------------------------------------------------------
> Flow-based real-time traffic analytics software. Cisco certified tool.
> Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
> Customize your own dashboards, set traffic alerts and generate reports.
> Network behavioral analysis & security monitoring. All-in-one tool.
> http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Flow-based real-time traffic analytics software. Cisco certified tool.
Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer
Customize your own dashboards, set traffic alerts and generate reports.
Network behavioral analysis & security monitoring. All-in-one tool.
http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to