Publisher Policy Assembly and HRESULT 0x80131042 - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Martein
Posts: 3
Joined: Fri Feb 18, 2011 1:21 pm

Publisher Policy Assembly and HRESULT 0x80131042

Hi Support,

I am using Advanced Installer V6.2 Enterprise. I know it is not the latest version anymore.

I am trying to install 2 Publisher Policy .NET assemblies in the GAC that share the same XML publisher.policy.config file. I am getting the dreaded HRESULT 0x80131042 during installation of the MSI.

At that point I see the publisher.policy.config file in the APPDIR. I see the dependent assembly properly installed in the GAC already. I don't see the 2 publisher policy assemblies in the APPDIR where they should be together with the config file in order for the GACUTIL utility not to fail.

I have searched the forum for "Publisher Policy" and find a trail of problem reports that don't end in clear solutions. Is there a way to get this working with AI without resorting into defining custom actions? Does the latest version solve this issue?

Many thanks in advance,
Martein
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Publisher Policy Assembly and HRESULT 0x80131042

Hi Martein and welcome to the Advanced Installer Forums,

You can try to add the XML publisher.policy.config file in two different folders on the Files and Folders Page. This behavior may manifest as a result of sharing it. Simply create two different folders each containing the assembly and the XML file before adding each of them from the Assemblies Page.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Martein
Posts: 3
Joined: Fri Feb 18, 2011 1:21 pm

Re: Publisher Policy Assembly and HRESULT 0x80131042

Hi Mihai,

Thanks for your fast response. I have tried your suggestion but the results are still the same.

Now I see, when the .MSI prompts with the error, both unshared config files in the APPDIR. The policy DLL's are again nowhere at that point while the GAC has the dependentAssembly. So this results in the same situation as before and it cannot work. Both thee the policy DLL and the config file should be in the same directory when GACUTIL is run. This condition is not met somehow by the .MSI made with AI 6.2.

Do you have any other suggestions or do I really have to go down the painfull path of writing custom actions myself doing things that should be standard and simple. This kind of defeats the need for a tool as AI! This issue has come up on the forum a couple of times over the years without a solution and it would be nice if it could be solved finally.

Martein
Martein
Posts: 3
Joined: Fri Feb 18, 2011 1:21 pm

Re: Publisher Policy Assembly and HRESULT 0x80131042

Mihai,

Got it working finally. Problem was my assumption that AI should be smart enough to find out which files are part of a multifile assembly such as a Publisher Policy. Wrong assumption. No intelligence there. One has to add all the files one by one that comprise the multifile assembly and tell the tool which one is the manifest. Ouch, did not think of that one but it finally works.

Thanks, support case closed!

Martein

Return to “Common Problems”