Hi Peter,

I was able to do copy file, see below statements. But I don't want to do
hard coding of source or destination. How that can be achieved through
custom actions or setting property? I tried with custom action and was not
successful .Can you provide those steps for below example ;which i need to
replicate it for so many files.

<Component Id="cmp209B0DBB82F9FF15193D29F0BD337B7F"
Directory="dirB0A921E55A598C65B18B4E47885629C3"
Guid="{3B140259-FCC7-4D2E-8629-CBB879BBA46C}">
  <File Id="filBC5CC5B8DCC504F6DC75A7B2673E7D0D" KeyPath="yes"
Source="C:\Workspaces\Chatra\Website\SCBUDirect.B2CWeb\App_Config\basic.log4net.dev"
/>
</Component>
-----------------------------------------------------------------------------------------------
<Fragment>
    <Property Id="SourceFilesFolder"
Value="E:\Websites\SCBUDirect\Website\SCBUDirect.B2CWeb\App_Config\basic.log4net.dev"
/>

    <Property Id="DestFilesFolder"
Value="E:\Websites\SCBUDirect\Website\SCBUDirect.B2CWeb\App_Config\" />


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

      <Component Id="CMP_LOG4TXT"
Guid="341BD660-7249-42DD-9744-DBEF0776AD52"  Directory="INSTALLLOCATION"
KeyPath="yes">
        <CopyFile Id="Copy_LOG4TXT" 
              SourceProperty="SourceFilesFolder" 
              DestinationProperty="DestFilesFolder" 
              DestinationName="basic.log4net" />
      </Component>

</Fragment>



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Rename-File-based-on-Argument-passed-to-MSI-Installation-tp7583717p7584038.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