I am using Visual Studio Installer to create an installation package for my application. However, I have found the tool to be lacking. As part of the installation procedure, I need to launch the newly copied executable so it can handle some additional installation steps. I was able to accomplish this by using Orca to create a custom action. The executable launches correctly when I do this.
However, there is a major problem. One part of the exe's install component is to acquire the Backup Privilege. If I start the executable manually by double clicking on it, this succeeds without any problems. When the installer launches it however, AdjustTokenPrivilege fails. Both of these occur while in an administrator profile. Does anyone know why this would occur and how to fix it?