[wix-users] Could not harvest data from a file that was expected to be a SelfReg DLL

Carlos Sosa carlos.sosa.us at outlook.com
Mon Mar 26 14:18:57 PDT 2018


Checking an old tread I fund this:
https://stackoverflow.com/questions/5343908/how-to-reference-gacd-dll-files-in-wix-setup-project

I also found the number in WIX code here:

  <Class Name="UtilWarnings" ContainerName="UtilWarningEventArgs" BaseContainerName="WixWarningEventArgs">
        <Message Id="SelfRegHarvestFailed" Number="5150" SourceLineNumbers="no">
            <Instance>
                Could not harvest data from a file that was expected to be a SelfReg DLL: {0}. If this file does not support SelfReg you can ignore this warning. Otherwise, this error detail may be helpful to diagnose the failure: {1}
                <Parameter Type="System.String" Name="file" />
                <Parameter Type="System.String" Name="message" />
            </Instance>
        </Message>
        <Message Id="AssemblyHarvestFailed" Number="5151" SourceLineNumbers="no">
            <Instance>
                Could not harvest data from a file that was expected to be an assembly: {0}. If this file is not an assembly you can ignore this warning. Otherwise, this error detail may be helpful to diagnose the failure: {1}
                <Parameter Type="System.String" Name="file" />
                <Parameter Type="System.String" Name="message" />
            </Instance>
        </Message>


I read that we could use the number in WIX (5151 and 5150) to suppress these warnings (using ICE5150;ICE5151 ?)
I tried using that but no luck.

Is there a way to hide these warnings? Or the link above is the only recommended way?

Best.




More information about the wix-users mailing list