I have tried to create a custom action for a Visual Studio Installer project to modify the permissions for a config file.
The Installer.cs is as follows:
Try installing this as in an administrator command prompt. This worked for me.!