Jared,
Thanks so much! This did the trick and GAC'd my publisher policy
file. I had the config file in the same directory, but did not make the
connection of putting it in the same WIX component. This really saved
the day for me.
Thanks again.
Kenny Alperstein
Framework Architect
Architecture Services - AID Team
Allstate Insurance Company
* Office: (847) 667-5552
* [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
________________________________
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jared
Ashman
Sent: Wednesday, March 26, 2008 11:27 AM
To: Alperstein, Kenny
Subject: Re: [WiX-users] GACing a Publisher Policy File Problem
I had to do something similar, to solve it I had to include the policy
dll along with the config dll it applied to in the same component.
So:
<Component Id="policy.2.1.somedll.dll"
Guid="{F46DC797-1590-4199-B21A-2F5304F95A8C}">
<File Id="policy.2.1.somedll.dll"
Name="policy.2.1.somedll.dll" KeyPath="yes"
Source="src\policy.2.1.somedll.dll" Assembly=".net"
/>
<File Id="policy.2.1.somedll.config"
Name="policy.2.1.somedll.config" KeyPath="no"
Source="src\policy.2.1.somedll.config" />
</Component>
The reason for this is the config needs to be in the same directory as
the dll when it's added to the GAC and being in the same component
accomplishes this some way. Perhaps someone more versed on the
internals of windows installer could say why (I assume items in the same
component are extracted to the same temp directory, but I have no idea
really). The above should work to GAC the policy however.
J.
On Wed, Mar 26, 2008 at 10:33 AM, Alperstein, Kenny
<[EMAIL PROTECTED]> wrote:
I am trying to GAC a publisher policy file dll using WIX. When
I tried to GAC it using method that works with .net dll's, I get a
message during the install saying that "One or more modules of the
assembly could not be found" .
Knowing that it needs the publisher policy config file, I added
that to the File element in the "AssemblyManifest" attribute. Then I
got an error during Light that said "error LGHT0124 : Not a valid
manifest file; detail: Data at the root level is invalid. Line 1,
position 1." I get the same results if I specify the "Assembly"
attribute as "win32".
Any ideas on how I can GAC this dll? Any help would be
appreciated.
Thanks
Kenny Alperstein
------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketp
lace
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users