How do you set directory permissions in NSIS?

前端 未结 6 1312
一个人的身影
一个人的身影 2020-12-25 10:50

I\'m trying to build a Windows installer using Nullsoft Install System that requires installation by an Administrator. The installer makes a \"logs\" directory. Since regul

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-25 11:18

    Use the AccessControl plugin and then add this to the script, where the "logs" directory is in the install directory.

    AccessControl::GrantOnFile "$INSTDIR\logs" "(BU)" "FullAccess"
    

    That gives full access to the folder for all users.

提交回复
热议问题