William
Thu Jan 08 10:53:34 CST 2004
Thinking outload here. What would stop me from, in my setup app, running
caspol.exe in a Process.start with the required command line. Do you need
to be Admin to run caspol? It would be nice if you could put an Attribute
on your main class that says "This app needs to be in admin policy" and the
Framework would put up a dialog for the user with a Yes/No dialog that would
make the updates for them and start the app. Maybe the msi thing you posted
does the same, but my idea would not require setup package, just run the app
and Framework does the rest.
2) Also I noticed that running my app from network drive puts up an error
diag (permissions), but running from c:\temp worked. I assume this is
normal behavior and user would need to set assembly permission for the app
*at the network path if they want to run from there.
3) I should now this, but have been in the IDE too long and not deploying
applications so I am fuzzy on this. When user first runs app, it gets jited
and takes a bit longer. Is the exe cached so each time started it is not
compiled or do they need to put in the GAC. Could you run down for me what
happens again for a normal exe copied to C: drive (for example) and has a
strong name (if that matters.) Do they need to ngen and put into GAC to
avoid recompile. TIA
--
WJS, MVP
"Tian Min Huang" <timhuang@online.microsoft.com> wrote in message
news:TcXyaUb1DHA.2712@cpmsftngxa07.phx.gbl...
> Hello William,
>
> Thanks for your post.
>
> >>Could this be run from MS Installer package?
> Yes, it can be run as a Custom Action in an msi.
>
> In addition, there is another method as described in the KB article 815173
> if overwriting the current policy is acceptable:
>
> HOW TO: Build and Deploy a .NET Security Policy Deployment Package
>
http://support.microsoft.com/?id=815173
>
> Please feel free to let me know if any further is needed.
>
> Have a nice day!
>
> Regards,
>
> HuangTM
> Microsoft Online Partner Support
> MCSE/MCSD
>
> Get Secure! -- www.microsoft.com/security
> This posting is provided "as is" with no warranties and confers no rights.
>