View Full Version : Adding permissions to folders
11-04-2002, 10:28 AM
Is there a way to grant specific rights on the INSTALLDIR and on another (own) directory under c:\program files\common files to the user that is logged on during the install?
I found the "Destination Permissions" of the component (using [%USERDOMAIN] and [LogonUser]) but they replace the existing permissions; I would like to add a permissions regardless of what there is already there.
11-04-2002, 11:19 AM
MSI only supports adding new permissions and not appending to the existing ones, but take a look at this KB:
It explains how to modify permissions using VBScript & ADSI
I also found some good code samples here:
Hope this helps
11-05-2002, 10:06 AM
might more be more suitable as it requires only a single entry to
the msi database(lockpermissions) table
11-05-2002, 06:43 PM
Yes, the LockPermissions table is nice. But in all of our tests, entries in LockPermissions cause the Windows Installer to replace the existing permissions. We don't know of a way to use LockPermissions to add a permission regardless of what is already there.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.