开发者

Code Access Security in .NET 4.0 when creating installer in Inno Setup

开发者 https://www.devze.com 2023-03-24 12:10 出处:网络
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 -addg

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号