Which would be the proper way to install one publisher policy in to the GAC using WIX? -


which proper way install 1 publisher policy in gac using wix 3.5?

i tried this:

      <file             id="libgac"             assembly=".net"             keypath="yes"             vital="yes"             name="classlibrary1.dll"             processorarchitecture="msil"             diskid="1"             source="..\classlibrary1\bin\release\classlibrary1.dll"  >       </file>     </component>     <component id="config"  guid="f089b1aa-b593-4662-9df4-f47eb9fba1f4"  >       <file             id="libgacpolicy"             assembly=".net"             keypath="yes"             vital="yes"             name="policy.1.0.classlibrary1.dll"             diskid="1"             source="..\classlibrary1\policy.1.0.classlibrary1.dll"  >       </file>       <file              id="libgacpolicyconfig"              source="..\classlibrary1\policy.1.0.classlibrary1.config"              companionfile="libgacpolicy">       </file>     </component>   </directory> 

when compiling vs2008 appears error:

policy.1.0.classlibrary1.dll appears invalid. please ensure valid assembly file , user has appropriate access rights file. more information: hresult: 0x8013101b

and lastly, when compiling vs2010 doesn´t appear problem. @ finalizing installation process, dll installed , publisher policy didn´t. read log generated during installation , wasn´t able find cause.

thanks reading.

i've been doing similar , works using visual studio 2010 , in build server msbuild:

<directory id="targetdir" name="sourcedir">    <directory id="programfilesfolder">       <directory id="gac" name="gac">          <!-- component assembly -->          <component id="miclassdll" guid="*">             <file id="miclass.dll" assembly=".net" keypath="yes"                   source="$(var.miclass.targetpath)" />          </component>          <!-- component policy -->          <component id="policymiclassdll" guid="{your_guid_here}">             <file id="policymiclass.dll" keypath="yes"                   source="$(var.miclass.targetdir)policy.1.0.miclass.dll" />             <file id="policymiclass.config" keypath="no"                   source="$(var.miclass.projectdir)policy.1.0.miclass.config" />           </component>       </directory>    </directory>         </directory 

in case have policy.config file in same project directory , build policy dll in same output make easier installer script.

i noticed policy component must have guid , reason requires internally policy dll , config files in same directory/component.

i build policy assembly in post-build event of miclass project command:

"c:\program files\microsoft sdks\windows\v7.0a\bin\al.exe"     /link:"$(projectdir)policy.1.0.miclass.config"     /out:"$(targetdir)policy.1.0.miclass.dll"     /keyfile:"$(solutiondir)mykeys.snk"     /comp:"my company"     /prod:"my product"      /productv:1.0      /version:1.0.0.0 

i hope works you.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -