Code Access Security in .NET 4.0 when creating installer in Inno Setup
When I created installer with .NET2.0 application I always add that line:
Filename: {win}\Micr开发者_StackOverflow中文版osoft.NET\Framework\v2.0.50727\CasPol.exe; Parameters: "-q -machine -addgroup 1.2 -url ""file://{app}/*"" FullTrust -name ""MyApp"""; WorkingDir: {tmp}; Flags: skipifdoesntexist runhidden; StatusMsg: "Setting Program Access Permissions..."
Now, I want to create installer with .NET4.0 and I'm confused a little bit.
I don't know whether that is very important, but how can I replace it? So that it will work with .NET4.0?
Maybe I don't have to do anything in Inno setup script, and only in my app.config this?:
<configuration>
<runtime>
<NetFx40_LegacySecurityPolicy enabled="true"/>
</runtime>
</configuration>
I don't know if that is important, but my app (windows service) will host WCF functions.
精彩评论