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!

stradinov
Posts: 11
Joined: Fri May 16, 2008 11:17 pm

GAC Publisher Policy

Hi, I created a publisher policy following the steps listed here: http://msdn.microsoft.com/en-us/library ... pic=306132

It worked fine using gacutil, but I'm having troubles with the msi installation in AI, at the moment my policy is being registered in the gac, the config file isn't available at the same folder.

I attach a rar file with a sample project.

Thanks in advance.
Attachments
Setup.rar
(6.78 KiB) Downloaded 435 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: GAC Publisher Policy

Hi,

We investigated the test case you provided and we were unable to find the problem. However, we will keep investigating to see why the assembly cannot be installed through the Assemblies page.

Until we find the problem, you can try to use "gacutil.exe" as a Custom Action (for example "Launch file or open URL"). The command line of the custom action should be set to register your assembly into the GAC.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stradinov
Posts: 11
Joined: Fri May 16, 2008 11:17 pm

Re: GAC Publisher Policy

Thanks for your response.

Please note that in order to install the policy.1.1.SimpleGACAssembly.dll assembly in the GAC you need to have the policy.config file in the same folder.

I think the policy.config file is being deployed after the MSI runs the GAC registration actions, am I ok at this point?

Doing some googling I found the same problem using Wix:
http://www.nabble.com/GACing-a-Publishe ... 07734.html

I tried to solve this including the policy.config file in the same component that contains the policy.1.1.SimpleGACAssembly.dll file. But it launched a 0x80131043 error code.
stradinov
Posts: 11
Joined: Fri May 16, 2008 11:17 pm

Re: GAC Publisher Policy

Hi, finally I was able to fix the 0x80131043 error. I attached the sample with no errors.
If you open and modify the policy.config you'll have the 0x80131043 again, here is the description of this error code:

Code: Select all

/// When installing multi-file assemblies into the GAC, the hash of each
module is 
/// checked against the hash of that file stored in the manifest. If the

/// hash of one of the files in the multi-file assembly does not match
what is recorded 
/// in the manifest, FUSION_E_UNEXPECTED_MODULE_FOUND will be returned. 
                                  
 /// The name of the error, and the text description of it, are somewhat
confusing. 
 /// The reason this error code is described this way is that the
internally, 
/// Fusion/CLR implements installation of assemblies in the GAC, by
installing 
/// multiple "streams" that are individually committed. 
/// Each stream has its hash computed, and all the hashes found 
/// are compared against the hashes in the manifest, at the end of the
installation. 
/// Hence, a file hash mismatch appears as if an "unexpected" module was
found. 

 FUSION_E_UNEXPECTED_MODULE_FOUND = 0x80131043,
In resume, I shouldn't modify the policy config file after that the policy assembly was generated, because a hash of the config file is stored on the assembly.

Regards.
Attachments
Setupfixed.rar
(6.73 KiB) Downloaded 465 times

Return to “Common Problems”