如何使用InstallShield更改目录安全性属性? [英] How to change directory security attributes using InstallShield?

查看:70
本文介绍了如何使用InstallShield更改目录安全性属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改InstallShield在CSIDL_COMMON_APPDATA下创建的目录的安全属性-有人可以建议在安装过程中如何执行此操作吗?

I'd like to change the security attribute of a directory that InstallShield creates under the CSIDL_COMMON_APPDATA - can someone please advise on how to do that during the installation process?

这是脚本定义的文件夹.

It's a script-defined folder.

谢谢.

推荐答案

您还可以轻松地调用Windows命令"CACLS.EXE"或"ICACLS.EXE"-两者都是简单的命令行工具,例如

you can also just easily call Windows commands "CACLS.EXE" or "ICACLS.EXE" -both are easy command line tool, e.g.

icacls文件/grant管理员:(D,WDAC) -将授予用户管理员删除和写入DAC的权限 文件权限

icacls file /grant Administrator:(D,WDAC) - Will grant the user Administrator Delete and Write DAC permissions to file

这篇关于如何使用InstallShield更改目录安全性属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆