Skip to content
⌘ NSIS Forum Archive

check directory access

5 posts

hanenjom#

check directory access

Hi,
please can you help me,

How can I know the acces rights I have for a directory,

For exemple, if I can write i read or delete.

Thx.
MSG#
No, the accesscontrol plugin can only be used to SET permissions, not get them.

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
MSG#
I wouldn't be susprised if jpderuiter's method also works for directories. But there's maybe an easier way if all you need to know if you're able to read/delete files in the directory: Simply try creating a file there and deleting it. (Make sure you add a check for whether the file already exists, you wouldn't want to overwrite stuff by accident.)