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 setting Installer class = false instead of true in the properties for your custom action. That fixed this problem for me.