Trust an assembly programmatically

  • Thread starter Daniel =?iso-8859-1?Q?Lidstr=F6m?=
  • Start date
D

Daniel =?iso-8859-1?Q?Lidstr=F6m?=

Hi,

this page:
http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx
talks about a program called adminui, that can be used to create a .msi
script to automatically trust assemblies with a common strong name. Where
can I find this adminui? I want to add trust of an assembly from an
installation program. How else can I create a script to do this? Is there a
way to do this programmatically?

Also, how can I use caspol to view what assemblies I have granted trust to?
I have tried caspol -lf but this doesn't show a network assembly I have
just granted full rights to. The assembly doesn't contain a strong name.
Thanks for any help!
 
D

Daniel =?iso-8859-1?Q?Lidstr=F6m?=

this page:
http://blogs.msdn.com/shawnfa/archive/2003/06/20/57023.aspx
talks about a program called adminui, that can be used to create a .msi
script to automatically trust assemblies with a common strong name. Where
can I find this adminui? I want to add trust of an assembly from an
installation program. How else can I create a script to do this? Is there a
way to do this programmatically?

Seems nobody knows how to do this. Let me ask for a slightly different
solution: how can I know where to find the caspol.exe utility? It is used
to allow assemblies to run over the local intranet. But this utility is not
something a user should have to be concerned with. I know the user has
installed a .Net framework, so the caspol utility exists. But finding it
should be automatic, i.e. I should be able to call it from an installation
program. How can I get the location of the .Net framework installation
path, in an absolutely reliable way?
Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top