Jared Ashman, gave me the example I needed to be able to GAC a publisher
policy file using WIX. It did GAC the publiser policy file, but WIX
exhibited what I would call unexpected behavior when it did it.

This is hard to explain, but it seems as if WIX, stored the
publisherpolicy.config files in a structure it created that was relative
to the directory where I created the msi.  When installing the package,
WIX then looked for the publisherpolicy.config, in the same structure
but relative to the directory the msi was executed from.  The structure
was the same as that specified in the "src" attribrute of the "file"
element, so looking at the example below, if I created the msi from the
"d:\wixfrags" directory, it would have stored the publisherpolicy.config
in the "D:\wixfrags\bin" directory and if the msi was executed from the
"d:\msi" directory, it would have looked for it in the "D:\msi\bin"
directory.

I am flummoxed as to why this happened.  Does anyone have any idea?

Example fragments:
<Component Id="MyBinaries" DiskId="1"
Guid="E9C0CF18-01CF-4d68-8937-28BDAF96AA35">
                      <File Id="file19" Name="ALDC6F_1.DLL"
LongName="MY.Messaging.dll" Checksum="yes" Compressed="yes"
ReadOnly="yes"  Vital="yes" src="D:\bin\MyMessaging.dll" />
                      <File Id="file21" Name="PPOLI_1.PDB"
LongName="policy.2.1.MyMessaging.dll" Checksum="yes" Compressed="yes"
ReadOnly="yes"  Vital="yes" src="D:\bin\policy.2.1.MyMessaging.dll" />
                      <File Id="file23" Name="POLCFG.PDB"
LongName="publisherPolicy.config" Checksum="yes" Compressed="yes"
ReadOnly="yes"  Vital="yes" src="D:\bin\publisherPolicy.config" />
                    </Component>
                    <Component Id="MessagingTibco" DiskId="1"
Guid="A802166A-BAE0-4884-A8CD-A58D5346263D">
                       <File Id="gac32" Name="MSGT_3.DLL"
LongName="MyMessaging.dll" Assembly=".net" Checksum="yes"
Compressed="yes" KeyPath="yes" Vital="yes" src="D:\bin\MyMessaging.dll"
/>
                    </Component>
                    <Component Id="PublisherPolicy" DiskId="1"
Guid="9BD59E14-8D07-43b2-B1BD-F83DC2C88D0E">
                      <File Id="gac30" Name="PUB_1.DLL"
LongName="policy.2.1.MyMessaging.dll" Assembly=".net" Checksum="yes"
Compressed="yes"  KeyPath="yes" Vital="yes"
src="D:\bin\policy.2.1.MyMessaging.dll" />
                      <File Id="polcfg" Name="pol.cfg"
LongName="publisherPolicy.config" KeyPath="no" Vital="yes"
src="D:\bin\publisherPolicy.config" />
                    </Component>


Thanks.

Kenny Alperstein 
Framework Architect 
Architecture Services - AID Team 
Allstate Insurance Company 
* Office: (847) 667-5552 
* [EMAIL PROTECTED]

-------------------------------------------------------------------------
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

Reply via email to