Re: Creating MSI for installing .NET security policies
- From: "Joe Kaplan" <joseph.e.kaplan@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 12 Oct 2006 09:56:29 -0500
Probably the most reliable method would be to create a custom action that
calls caspol.exe with the proper arguments to add your policy to the current
policy. You'll probably want to use a search of some sort to find the
appropriate .NET framework directory to use to call caspol so that you
configure for the correct framework version.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"David++" <David@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:EA689966-00ED-4B4D-A577-38776F91A1C6@xxxxxxxxxxxxxxxx
Hi folks,
I'm deploying my app to a network share and I need the security
permissions
installed on the client. AFAICT I cannot use ClickOnce because ClickOnce
deployment doesnt allow user to specify install location i.e. Network
share.
So I have gone down the route of creating a Strong Name key and signing my
assemblies with that key, creating a new Code Group in the Microsoft .NET
configuration Tool which assigns full trust to my Strong Name key, and
then
finally creating a deployment package MSI to allow users to install the
Security Policy easily.
Now, this all works ok, but I find it a bit sas that the security policies
are over written in the Code Groups with the new settings i.e. they are
not
merged with the existing groups. Luckily my clients have a clean slate of
policies anyway so I wasnt overwriting anyone elses, but what if some
other
vendor had written an app for the client and had used the same approach, I
would scrub there policies, or vice versa someone could quite easily scrub
mine. Is this correct?
Of course policies could be manually added in, but this might be a pain if
there were a lot of users.
Or is there another way I have missed?
Thanks again,
David
.
- Follow-Ups:
- Re: Creating MSI for installing .NET security policies
- From: Dominick Baier
- Re: Creating MSI for installing .NET security policies
- Prev by Date: Re: Creating MSI for installing .NET security policies
- Next by Date: Re: Creating MSI for installing .NET security policies
- Previous by thread: Re: Creating MSI for installing .NET security policies
- Next by thread: Re: Creating MSI for installing .NET security policies
- Index(es):
Relevant Pages
|