During install i set the following pemissions to a file -
Administrators - full control
SYSTEM - Deny Write
Users - Deny All rights
Power Users - Deny all rights
Terminal Server user - Deny all rights
I set these permissions in a custom action using Windows API to set Access Control Lists (ACL). Install succeeds and the file permissions are set.
Uninstall gives an error 1321 - user does have sufficient privileges to modify file. The error has the name of the file whose permission was set during install. This error comes from InstallValidate action.
Why does this happen? Does 'msiexec' run as SYSTEM? As SYSTEM does not have write access, does installvalidate fail?
However, if i change the permissions for Users, ie. deny only write instead of all permissions and retain the SYSTEM permissions, uninstall succeeds.
Can someone help me understand this.
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
1 reply to this topic