[英]Windows command to grant folder permission to SQL Server from Inno Setup
My Java application periodically bulk-inserts into SQL Server.我的 Java 应用程序会定期批量插入 SQL Server。 So I will need to grant file system permission to SQL Server.
所以我需要向 SQL Server 授予文件系统权限。 I am able to do this manually.
我可以手动执行此操作。 I wonder if there is a Windows command to grant permission to file system.
我想知道是否有一个 Windows 命令来授予文件系统的权限。 I would like to use that in my Inno Setup file.
我想在我的 Inno Setup 文件中使用它。
Inno Setup has a built-in feature for changing permissions of directories, Permissions
parameters of [Dirs]
section : Inno Setup 具有用于更改目录
Permissions
的内置功能, [Dirs]
部分的Permissions
参数:
[Dirs]
Name: "{app}"; Permissions: users-full
It will create the directory, if it does not exist yet.如果目录尚不存在,它将创建该目录。
See also Inno Setup - How to set permissions of installation folder .另请参阅Inno Setup - 如何设置安装文件夹的权限。
To answer your actual question: You can use icacls
.要回答您的实际问题:您可以使用
icacls
。 See Inno Setup change c:\\ permission .请参阅Inno Setup 更改 c:\\ permission 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.