View Full Version : set permissions on directories

11-07-2003, 12:21 PM

I have an installation that installs my software as administrator. If the software is installed under Program Files, normal users don't have write permissions. This is however needed by the application to create and write logfiles.
Is there a way to change the permissions of directories?

I am not using MSI so there is no LockPermissions Table.


I found a way using cacls. But is there no 'standard' way to do this with DevStudio?

11-08-2003, 12:32 PM
For InstallScript projects, no, there's nothing built in to do this; common practice seems to be to use cacls.exe or the security APIs (for examples of which see www.installsite.org > InstallScript Samples > Operating System > Setting Access Permissions).