I want to modify permissions for Users in C:\ProgramData when my install runs. Just add WRITE permission. I'm using a vb script to edit the msi tables.
This query is running okay, adding the row, but the installer is not setting the permission. I am using the ALL permission setting here, I don't know what the correct generic read/write value is.
query = "INSERT INTO LockPermissions
(LockObject
, Table
, User
, Permission
) VALUES ('COMMONAPPDATAFOLDER', 'Directory', 'Users', 268435456)"
I can't find a working example for this, and it must be a pretty common scenario. I think that COMMONAPPDATAFOLDER resolves to a path about like this:
C:\ProgramData\CompanyFoo\Foo Product Name
but I am not sure. I would want to set the permission on the "CompanyFoo" directory, but I don't know how.
Edit: this is for a build script, not a custom msi action. My problem is that I'm not using an install framework like installshield, I am modifying the crippled output of a visual studio deployment project.