How do you set directory permissions in NSIS?

前端 未结 6 1313
一个人的身影
一个人的身影 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:34

    Instead of changing the permissions on directories under Program Files, why not put the logs in a location that is writeable by all users.

    See the 4.9.7.7 SetShellVarContext section in your NSIS documentation. You can use it with $APPDATA to get the application data folder that is writeable for all users.

提交回复
热议问题