Used the FileId attribute of the CopyFile element so that it generates a row
in the DuplicateFile table,
rather than in the MoveFile table.

if  FileId attribute is used then how to eliminate the duplicate file
(source file) once the copyfile action perfomed?

And under what custom action does the destination setproperty need to be if
the FileId attribute is used? (I have used AppSearch not user it is right
one or not)



And another quick question instead of hard coding destination file path. I
am setting a property like [INSTALLOCATION]="E:\Websites\CBUDirect"  which I
am passing as parameter (not shown below) .So the "DestFilesFolder" vaue
becomes "[INSTALLOCATION]\Website\App_Config" After="AppSearch". And it is
working well for installation ,but during UnIstallation it does give a error
like Failed the network search "\Website\App_Config" ie the [INSTALLOCATION]
is not been stored during the unistallation. Then how to crossover this
hurdle? Note:[INSTALLOCATION] is dynamic one given only during MSI
installation package.

I have implemented using FileID attribute of Copyfile please see below.

<Fragment>

<SetProperty Id="DestFilesFolder"
Value="E:\Websites\CBUDirect\Website\App_Config" After="AppSearch" />

  <ComponentGroup Id="CopyFiles">
         <ComponentRef Id="CMP_LOG4TXT" />
  </ComponentGroup>

  <DirectoryRef Id="WEBSITE">
  <Component Id="CMP_LOG4TXT" Guid="DBAF8230-218D-44BB-B34B-7B26FD144454"
KeyPath="yes">
   
  <File Id="File_installme"
Source="C:\Workspaces\Chatra\Website\CBUDirect.Web\App_Config\Deployment.ProductionBuild.config.xml"
>
      <CopyFile Id="Copy_LOG4TXT" 
      DestinationProperty="DestFilesFolder"
      DestinationName="Deployment.Production.config" />
    </File>

 </Component>
  </DirectoryRef>
  
</Fragment>



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Copy-file-where-source-and-Destination-same-tp7584088p7584090.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to