Error ICE30 in WIX installer

Add-in Express™ Support Service
That's what is more important than anything else

Error ICE30 in WIX installer
Newly created setup project fails to build 
Mike VE




Posts: 168
Joined: 2007-09-09
I have just created a a setup project from an ADX add-in. Previously I had built setups in VS2010 but this was the first time I had used the WIX option.

I created the WIX setup project for my add in and built it. I got three instances of the same error

Error 2 ICE30: Installation of component 'comp_F8972A26_F4BE_4F33_A219_060A42594766' would cause the target file 'office.dll' to be installed twice in '[TARGETDIR]\' on an SFN system. This will break the component reference counting system. C:\VS Projects\Outlook Add-ins\PrintJust1\PrintJust1\PrintJust1Setup\1.2.5\Product.wxs 62 1 PrintJust1Setup(1.2.5)

Below is the Product.xws file.

What I do not understand is if the setup fr the same add-in made with the Visual Studio installer selected works fine bit when I choose the WIX option there is a problem without me doing any further work on the setup.

<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension">
<Product Id="*" Name="PrintJust1" Language="1033" Version="1.2.5" Manufacturer="Greenhill Software" UpgradeCode="{BC5AFD02-FB24-4DCA-8A38-CBD6869E060F}" Codepage="1252">
<Package AdminImage="no" Comments="PrintJust1" Compressed="yes" Description="An addin for Microsoft Outlook which can discard unnecessary text before printing an email" InstallerVersion="200" InstallScope="perMachine" Languages="1033" Manufacturer="Greenhill Software" Platform="x86" ReadOnly="no" ShortNames="no" SummaryCodepage="1252" />
<Media Id="1" Cabinet="PrintJust1.cab" EmbedCab="yes" DiskPrompt="CD-ROM #1" />
<Property Id="DiskPrompt" Value="PrintJust1 Installation [1]" />
<Property Id="ARPCOMMENTS" Value="PrintJust1" />
<Property Id="ARPCONTACT" Value="Greenhill Software" />
<!-- The ".NET Framework" launch condition. -->
<PropertyRef Id="NETFRAMEWORK20"/>
<Condition Message="This setup requires the .NET Framework 2.0. Please install the .NET Framework and run this setup again."><![CDATA[Installed OR NETFRAMEWORK20]]></Condition>
<CustomAction Id="PreventDowngrading" Error="Newer version already installed." />
<Binary Id="adxregistrator_exe" SourceFile="$(var.ADX_PATH)\Redistributables\adxregistrator.exe" />
<!-- The "adxregistrator.exe" custom action. -->
<CustomAction Id="_7C46FCFE_98B5_49C1_B949_2E6A1B6E1440" BinaryKey="adxregistrator_exe" Execute="deferred" ExeCommand="/install=&quot;[TARGETDIR]$(var.PrintJust1.TargetFileName)&quot; /privileges=admin" Impersonate="yes" />
<!-- The "adxregistrator.exe" custom action. -->
<CustomAction Id="_6CC55942_DDF6_4742_8EA2_49D67620DE9A" BinaryKey="adxregistrator_exe" Execute="rollback" ExeCommand="/uninstall=&quot;[TARGETDIR]$(var.PrintJust1.TargetFileName)&quot; /privileges=admin" Impersonate="yes" />
<!-- The "adxregistrator.exe" custom action. -->
<CustomAction Id="_09F0601D_97E9_48B3_B573_D2A443B3DCF3" BinaryKey="adxregistrator_exe" Execute="deferred" ExeCommand="/uninstall=&quot;[TARGETDIR]$(var.PrintJust1.TargetFileName)&quot; /privileges=admin" Impersonate="yes" />
<!-- Initialize the "TARGETDIR" directory property. -->
<CustomAction Id="DIRCA_TARGETDIR" Property="TARGETDIR" Value="[ProgramFilesFolder][Manufacturer]\[ProductName]" Execute="firstSequence" />
<Property Id="PREVIOUSINSTALLFOLDER">
<RegistrySearch Id="_A8A98207_F667_4A27_8C04_F4F8A97DBFDB" Root="HKLM" Key="Software\[Manufacturer]\[ProductName]" Name="Installed" Type="raw" />
</Property>
<CustomAction Id="DIRCA_TARGETDIR_UNINSTALL" Property="TARGETDIR" Value="[PREVIOUSINSTALLFOLDER]" Execute="firstSequence" />
<UIRef Id="WixUI_InstallDir" />
<UIRef Id="WixUI_ErrorProgressText" />
<Property Id="WIXUI_INSTALLDIR" Value="TARGETDIR" />
<!-- The directory tree of the installation package. -->
<Directory Id="TARGETDIR" Name="SourceDir">
<!-- The "PrintJust1" project output. -->
<Directory Id="PrintJust1.Binaries" />
<!-- The "PrintJust1" project output. -->
<Directory Id="PrintJust1.Satellites" />
<Component Id="comp_F8972A26_F4BE_4F33_A219_060A42594766" Guid="42821D45-B124-44F0-ABF2-817EE4C80D1F" Permanent="no" SharedDllRefCount="no" Transitive="no">
<RegistryKey Root="HKLM" Key="Software\[Manufacturer]\[ProductName]">
<RegistryValue Type="string" Name="Installed" Value="[TARGETDIR]" KeyPath="yes" />
</RegistryKey>
<File Id="_B63C06CB_74B8_4A5D_8E56_37A45198BB1C" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="adxloader64.dll" Source="$(var.PrintJust1.ProjectDir)Loader\adxloader64.dll" />
<File Id="_C0CC612B_0FF4_45F8_97A7_FD6F648F6846" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="adxloader.dll.manifest" Source="$(var.PrintJust1.ProjectDir)Loader\adxloader.dll.manifest" />
<File Id="_428BB074_DD8B_4EA9_BB50_5DD8B2BCC218" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="adxloader.dll" Source="$(var.PrintJust1.ProjectDir)Loader\adxloader.dll" />
<File Id="_3E7A9765_629D_4F2F_B4B0_A36A53AB7300" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="AddinExpress.MSO.2005.dll" Source="$(var.PrintJust1.TargetDir)AddinExpress.MSO.2005.dll" />
<File Id="_5EA96971_5868_4768_9FD1_8FE5351E9D81" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="AddinUtils.dll" Source="$(var.PrintJust1.TargetDir)AddinUtils.dll" />
<File Id="_FC70ED36_0B1B_472C_B3ED_3EA90219C18B" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Microsoft.Office.Interop.Excel.dll" Source="$(var.PrintJust1.TargetDir)Microsoft.Office.Interop.Excel.dll" />
<File Id="_A0EC3F60_96DA_4BEF_97BF_A3A875245178" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Microsoft.Office.Interop.Outlook.dll" Source="$(var.PrintJust1.TargetDir)Microsoft.Office.Interop.Outlook.dll" />
<File Id="_FD1252A4_89EB_491F_8DB9_CA9EB526B764" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Microsoft.Office.Interop.Word.dll" Source="$(var.PrintJust1.TargetDir)Microsoft.Office.Interop.Word.dll" />
<File Id="_7274D8AF_0040_4C65_A2BA_EB4FB1590C22" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="office.dll" Source="$(var.PrintJust1.TargetDir)office.dll" />
<File Id="_49C42007_80EF_4D79_B935_06D91567A201" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="SecurityManager.2005.dll" Source="$(var.PrintJust1.TargetDir)SecurityManager.2005.dll" />
<File Id="_DD1AB876_2B5B_47B9_A4DC_BEA1528571C6" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Syncfusion.PdfViewer.Windows.dll" Source="$(var.PrintJust1.TargetDir)Syncfusion.PdfViewer.Windows.dll" />
<File Id="_59E60931_3822_4477_B48C_06A38A97D61C" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Telerik.WinControls.dll" Source="C:\WINDOWS\assembly\GAC_MSIL\Telerik.WinControls\2012.1.321.20__5bb2a467cbec794e\Telerik.WinControls.dll" />
<File Id="_CC45BBAF_31BB_49F2_B2E6_C5F99CADE51C" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Telerik.WinControls.Themes.Office2010Silver.dll" Source="C:\WINDOWS\assembly\GAC_MSIL\Telerik.WinControls.Themes.Office2010Silver\2012.1.321.20__5bb2a467cbec794e\Telerik.WinControls.Themes.Office2010Silver.dll" />
<File Id="_8E4DBBAA_1A47_43B4_B9DF_A56C16BF7A51" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Telerik.WinControls.UI.dll" Source="C:\WINDOWS\assembly\GAC_MSIL\Telerik.WinControls.UI\2012.1.321.20__5bb2a467cbec794e\Telerik.WinControls.UI.dll" />
<File Id="_3713915E_4433_4969_80E4_B20537AA915A" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="TelerikCommon.dll" Source="C:\WINDOWS\assembly\GAC_MSIL\TelerikCommon\2012.1.321.20__5bb2a467cbec794e\TelerikCommon.dll" />
<File Id="_E39560EB_CAF0_4D61_BCE4_5BD44B0D46F9" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="AddinExpress.MSO.2005.xml" Source="$(var.PrintJust1.TargetDir)AddinExpress.MSO.2005.xml" />
<File Id="_4BE8A28A_3A89_4DBD_B709_7BB29AB46BC4" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="AddinExpress.OL.2005.dll" Source="$(var.PrintJust1.TargetDir)AddinExpress.OL.2005.dll" />
<File Id="_66BF3B43_04A1_49EC_918E_6D7226CA64D6" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="AddinExpress.OL.2005.xml" Source="$(var.PrintJust1.TargetDir)AddinExpress.OL.2005.xml" />
<File Id="_9A82A714_2BDC_4047_9264_0AC91B2708ED" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="AddinUtils.pdb" Source="$(var.PrintJust1.TargetDir)AddinUtils.pdb" />
<File Id="_50F408FB_14BB_4518_9102_31298F8D0CD3" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Dotfuscator1.xml" Source="$(var.PrintJust1.TargetDir)Dotfuscator1.xml" />
<File Id="_691D196B_BD80_4EED_81D6_0FC568E8BFFD" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Interop.VBIDE.dll" Source="$(var.PrintJust1.TargetDir)Interop.VBIDE.dll" />
<File Id="_8A462818_D089_4A40_A940_ECE22E34F764" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Microsoft.Office.Interop.Word.xml" Source="$(var.PrintJust1.TargetDir)Microsoft.Office.Interop.Word.xml" />
<File Id="_29F0F102_C059_42E1_B0A3_A217ECCEA9DB" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Microsoft.Vbe.Interop.dll" Source="$(var.PrintJust1.TargetDir)Microsoft.Vbe.Interop.dll" />
<File Id="_24589CED_1B29_480C_A9A5_F1655E0F63BC" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Office.dll" Source="$(var.PrintJust1.TargetDir)Office.dll" />
<File Id="_BEA22C5A_3C3D_4EAB_8A48_A709DC5B3A1F" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="PJ1Dotfuscator.xml" Source="$(var.PrintJust1.TargetDir)PJ1Dotfuscator.xml" />
<File Id="_59256CF4_A36C_4C6D_B45E_4281CE5D2491" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="PrintJust1.dll.config" Source="$(var.PrintJust1.TargetDir)PrintJust1.dll.config" />
<File Id="_E5404BF1_8FD8_4FE6_9053_2975FE2C41D4" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Syncfusion.Compression.Base.dll" Source="$(var.PrintJust1.TargetDir)Syncfusion.Compression.Base.dll" />
<File Id="_300521E5_D80C_49DA_9A9F_4C232F8BB92F" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Syncfusion.Compression.Base.xml" Source="$(var.PrintJust1.TargetDir)Syncfusion.Compression.Base.xml" />
<File Id="_581B20DE_2769_4A9D_AF39_53E8B8429A6A" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Syncfusion.Core.dll" Source="$(var.PrintJust1.TargetDir)Syncfusion.Core.dll" />
<File Id="_97CC04A1_B5D5_464D_A735_8071DDC66862" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Syncfusion.Pdf.Base.dll" Source="$(var.PrintJust1.TargetDir)Syncfusion.Pdf.Base.dll" />
<File Id="_D66C1716_1221_4EE2_AF32_5D08AA55DE80" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Syncfusion.Pdf.Base.xml" Source="$(var.PrintJust1.TargetDir)Syncfusion.Pdf.Base.xml" />
<File Id="_41B2AA71_C4D2_4E95_9127_A040A436B7F0" DiskId="1" Hidden="no" ReadOnly="no" System="no" Vital="yes" Compressed="yes" Name="Syncfusion.PdfViewer.Windows.xml" Source="$(var.PrintJust1.TargetDir)Syncfusion.PdfViewer.Windows.xml" />
</Component>
</Directory>
<!-- The FileSystem group of the installation package. -->
<ComponentGroup Id="FileSystemGroup">
<ComponentGroupRef Id="PrintJust1.Binaries" />
<ComponentGroupRef Id="PrintJust1.Satellites" />
<ComponentRef Id="comp_F8972A26_F4BE_4F33_A219_060A42594766" />
</ComponentGroup>
<!-- The composite feature of the installation package. -->
<Feature Id="CompleteInstall" Title="All Files" Level="1" ConfigurableDirectory="TARGETDIR">
<ComponentGroupRef Id="FileSystemGroup" />
</Feature>
<Upgrade Id="{BC5AFD02-FB24-4DCA-8A38-CBD6869E060F}">
<UpgradeVersion Minimum="1.2.5" Property="NEWPRODUCTFOUND" OnlyDetect="yes" IncludeMinimum="no" Language="1033" />
<UpgradeVersion Maximum="1.2.5" Property="OLDPRODUCTFOUND" OnlyDetect="no" IncludeMinimum="yes" IncludeMaximum="no" Language="1033" />
</Upgrade>
<InstallExecuteSequence>
<Custom Action="DIRCA_TARGETDIR" Before="CostInitialize"><![CDATA[TARGETDIR=""]]></Custom>
<Custom Action="DIRCA_TARGETDIR_UNINSTALL" After="AppSearch"><![CDATA[PREVIOUSINSTALLFOLDER]]></Custom>
<Custom Action="PreventDowngrading" After="FindRelatedProducts"><![CDATA[NEWPRODUCTFOUND]]></Custom>
<Custom Action="_7C46FCFE_98B5_49C1_B949_2E6A1B6E1440" After="StartServices"><![CDATA[$comp_F8972A26_F4BE_4F33_A219_060A42594766>2]]></Custom>
<Custom Action="_6CC55942_DDF6_4742_8EA2_49D67620DE9A" After="_7C46FCFE_98B5_49C1_B949_2E6A1B6E1440"><![CDATA[$comp_F8972A26_F4BE_4F33_A219_060A42594766>2]]></Custom>
<Custom Action="_09F0601D_97E9_48B3_B573_D2A443B3DCF3" After="MsiUnpublishAssemblies"><![CDATA[$comp_F8972A26_F4BE_4F33_A219_060A42594766=2]]></Custom>
<RemoveExistingProducts Before="InstallInitialize" />
</InstallExecuteSequence>
<InstallUISequence>
<FindRelatedProducts Sequence="200" />
<Custom Action="DIRCA_TARGETDIR" Before="CostInitialize"><![CDATA[TARGETDIR=""]]></Custom>
<Custom Action="DIRCA_TARGETDIR_UNINSTALL" After="AppSearch"><![CDATA[PREVIOUSINSTALLFOLDER]]></Custom>
<Custom Action="PreventDowngrading" After="FindRelatedProducts"><![CDATA[NEWPRODUCTFOUND]]></Custom>
</InstallUISequence>
<AdminUISequence>
<Custom Action="DIRCA_TARGETDIR" Before="CostInitialize"><![CDATA[TARGETDIR=""]]></Custom>
</AdminUISequence>
</Product>
</Wix>[/CODE]
Posted 24 May, 2015 05:41:34 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Posted 25 May, 2015 04:09:35 Top
Mike VE




Posts: 168
Joined: 2007-09-09
Hi Andrei

Thanks for your response. I took a look at the links but they did not offer anything useful. I tried creating a WIX installer for another of my Add-ins and it worked fine. The XML produced seemed to be very similar. The lines that triggered the errors in one were there in the other - first in the <ComponentGroup Id="FileSystemGroup"> section and then in the <InstallExecuteSequence> section. The relevant file name is used four times with the same syntax (although using different id) yet this triggers the error in one add-in but not the other.

Despite the error an msi is produced but it does not seem to install the add-in.

Mike
Posted 25 May, 2015 07:28:31 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Mike,

Could you please send me the projects? You can find the support email address in {Add-in Express installation folder}\readme.txt. Please make sure your email contains a link to this topic.


Andrei Smolin
Add-in Express Team Leader
Posted 25 May, 2015 07:38:54 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
In fact, I suppose you have two Office.dll in references of your add-in project.

Mike VE writes:
What I do not understand is if the setup fr the same add-in made with the Visual Studio installer selected works fine


I suppose it generates a warning.


Andrei Smolin
Add-in Express Team Leader
Posted 25 May, 2015 07:43:34 Top
Mike VE




Posts: 168
Joined: 2007-09-09
No there's only one reference to office.dll
Posted 25 May, 2015 07:49:20 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
Could you please send me projects that reproduce the issue?


Andrei Smolin
Add-in Express Team Leader
Posted 25 May, 2015 07:51:15 Top
Mike VE




Posts: 168
Joined: 2007-09-09
The solution in question has dependencies on Telerik and Syncfusion dlls and an External project. Do you need to build it or just look at it. If loking is enough I can send it today. If not I will have to prepare a special version.
Posted 25 May, 2015 09:44:54 Top
Andrei Smolin


Add-in Express team


Posts: 18825
Joined: 2006-05-11
At the moment I don't think I'll need to build it.


Andrei Smolin
Add-in Express Team Leader
Posted 26 May, 2015 07:00:20 Top
Mark McCray




Posts: 17
Joined: 2010-04-15
Did you ever find a solution for this issue? I am creating my first add-in and just ran into this issue. New to wix as well, so any info appreciated.

I have already tried the <RunWixToolsOutOfProc>true</RunWixToolsOutOfProc> setting with no change.
Posted 01 Jul, 2015 13:17:05 Top