[wix-users] Issues with Harvesting COM and GAC DLLs

Habib Salim habib at hsalim.com
Tue Jan 23 08:43:45 PST 2018


https://stackoverflow.com/questions/5343908/how-to-reference-gacd-dll-file
s-in-wix-setup-project

See Bob Aronson's answer.



-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
Of Ven H via wix-users
Sent: Tuesday, January 23, 2018 10:02 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Ven H <venh.123 at gmail.com>
Subject: Re: [wix-users] Issues with Harvesting COM and GAC DLLs

Can anyone please provide some help / inputs?

Regards,
Venkatesh

On Tue, Jan 23, 2018 at 10:02 AM, Ven H <venh.123 at gmail.com> wrote:

> Any help on this, please?
>
> Regards,
> Venkatesh
>
> On Mon, Jan 22, 2018 at 2:58 PM, Ven H <venh.123 at gmail.com> wrote:
>
>> I am trying to harvest some dlls which have to be eventually deployed 
>> to GAC through installer. When I am calling the heat command as 
>> below, I am getting some errors / warnings as mentioned below.
>>
>> *heat.exe dir "D:\\InstallTest" -cg \"MyCompGgroup\" -dr MY_DIR -gg 
>> -g1 -srd -sfrag -var var.OutDir -out "D:\\InstallTest\\MyComps.wxs"*
>>
>> 1. *Could not harvest data from a file that was expected to be a 
>> SelfReg DLL. If this file does not support SelfReg, you can ignore this
warning.
>> Otherwise, this error detail may be helpful to diagnose the failure. 
>> Unable to load the file.*
>>
>> 2. *Could not harvest data from a file that was expected to be an 
>> assembly. If this file is not an assembly, you can ignore this warning.
>> Otherwise, this error detail may be helpful to diagnose the failure. 
>> Could not load the file or assembly 'Assembly Name' or one of its
dependencies.
>> The system cannot find the file specified.*
>>
>> Actually, the files which are being mentioned as missing, are 
>> actually present in the same directory.
>>
>> I am also trying to harvest some COM components with the same heat 
>> command as above. I am getting the below warning
>>
>> *Ignoring the Registry key 'Interface\{Guid}\Something', it has 
>> already been added to the Component 'cmpGuid'. The registry value 
>> '{Guid}' will not be harvested.*
>>
>> For one of the COM components, the heat command even fails with the 
>> following error.
>>
>> *heat.exe : error HEAT0001 : '.', hexadecimal value 0x00, is an 
>> invalid
>> character.*
>>
>> Exception Type: System.ArgumentException
>>
>> Stack Trace:
>>    at System.Xml.XmlEncodedRawTextWriter.InvalidXmlChar(Int32 ch, 
>> Char* pDst, Boolean entitize)
>>    at 
>> System.Xml.XmlEncodedRawTextWriter.WriteAttributeTextBlock(Char*
>> pSrc, Char* pSrcEnd)
>>    at System.Xml.XmlEncodedRawTextWriter.WriteString(String text)
>>    at System.Xml.XmlEncodedRawTextWriterIndent.WriteString(String text)
>>    at System.Xml.XmlWellFormedWriter.WriteString(String text)
>>    at System.Xml.XmlWriter.WriteAttributeString(String localName, 
>> String
>> value)
>>    at 
>> Microsoft.Tools.WindowsInstallerXml.Serialize.Class.OutputXml(XmlWrit
>> er
>> writer)
>>    at 
>> Microsoft.Tools.WindowsInstallerXml.Serialize.TypeLib.OutputXml(XmlWr
>> iter
>> writer)
>>    at 
>> Microsoft.Tools.WindowsInstallerXml.Serialize.File.OutputXml(XmlWrite
>> r
>> writer)
>>    at 
>> Microsoft.Tools.WindowsInstallerXml.Serialize.Component.OutputXml(Xml
>> Writer
>> writer)
>>    at 
>> Microsoft.Tools.WindowsInstallerXml.Serialize.Directory.OutputXml(Xml
>> Writer
>> writer)
>>    at 
>> Microsoft.Tools.WindowsInstallerXml.Serialize.DirectoryRef.OutputXml(
>> XmlWriter
>> writer)
>>    at 
>> Microsoft.Tools.WindowsInstallerXml.Serialize.Fragment.OutputXml(XmlW
>> riter
>> writer)
>>    at 
>> Microsoft.Tools.WindowsInstallerXml.Serialize.Wix.OutputXml(XmlWriter
>> writer)
>>    at Microsoft.Tools.WindowsInstallerXml.Tools.Heat.Run(String[] 
>> args)
>>
>>
>> Can anyone please help?
>>
>>
>> Regards,
>> Venkatesh
>>
>
>

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant
http://www.firegiant.com/



More information about the wix-users mailing list