Hi guys, I am trying to install 1 file to 2 different locations by using 2 different directory elements, 2 different component elements and 2 different file elements.
Before I do this I have a custom action that copies the powershell.exe.config to powershell.exe.config.bak (I try both the system32 and the SysWOW64 powershell folders. Here is my WIX code for the file copy.. <Property Id="POWERSHELLPATH_X86" Value="0"> <RegistrySearch Id="Find_POWERSHELLPATH_x86" Type="directory" Root="HKLM" Key="SOFTWARE\Wow6432Node\Microsoft\PowerShell\1\PowerShellEngine" Name="ApplicationBase" Win64="no"/> </Property> <Property Id="POWERSHELLPATH_X64" Value="0"> <RegistrySearch Id="Find_POWERSHELLPATH_x64" Type="directory" Root="HKLM" Key="SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine" Name="ApplicationBase" Win64="yes"/> </Property> <ComponentRef Id="cmp_PSConfig_System32"/> <ComponentRef Id="cmp_PSConfig_SysWOW64"/> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="POWERSHELLPATH_X64" Name="PowerShell X64" DiskId="1"> <Component Id="cmp_PSConfig_System32" Guid="{BC51F641-03C1-4477-9976-F464A61A3921}" KeyPath="yes" Permanent="yes" Shared="no"> <File Id="file_PSConfig_System32" Name="powershell.exe.config" Source="$(var.resourcePath)\powershell.exe.config" /> </Component> </Directory> <Directory Id="POWERSHELLPATH_X86" Name="PowerShell x86" DiskId="1"> <Component Id="cmp_PSConfig_SysWOW64" Guid="{51F24D8C-FE09-4FEA-8F8D-5C645A3F9D40}" KeyPath="yes" Permanent="yes" Shared="no"> <File Id="file_PSConfig_SysWOW64" Name="powershell.exe.config" Source="$(var.resourcePath)\powershell.exe.config" /> </Component> </Directory> here are the two errors: Error 13 ICE30: The target file 'j47lduzx.con|powershell.exe.config' is installed in '0' by two different components on an LFN system: 'cmp_PSConfig_System32' and 'cmp_PSConfig_SysWOW64'. This breaks component reference counting. C:\Dev\Core Technologies\Main\Setup\Services_Setup_x64\Product.wxs 290 1 Services_Setup_x64 Error 14 ICE30: The target file 'j47lduzx.con|powershell.exe.config' is installed in '0' by two different components on an LFN system: 'cmp_PSConfig_System32' and 'cmp_PSConfig_SysWOW64'. This breaks component reference counting. C:\Dev\Core Technologies\Main\Setup\Services_Setup_x64\Product.wxs 285 1 Services_Setup_x64 What the heck am I doing wrong? thanks, STeve -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Can-t-compile-Install-getting-ICE30-error-tp7589530.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users