I have an installer built with wix that includes a custom action run in deferred mode and needs administrative rights on the local machine.
The installer works fine when using the administrator account on the local machine but doesn't not when I use an account in the administrator group. I get exceptions about insufficient privileges as I am trying to ass keys to the registry. Using Impersonate="no" is not an option as this action needs to have admin rights on the local machine as well, from time to time access to different network shares. I would like for the level of "network share access" to be determined by the account used to install the application(not the admin account) but can't seem to some up with a solution - any would be gladly appreciated.
<CustomAction Id='LaunchFile' ExeCommand='[SourceDir]' Return='check' Execute='deferred' FileKey='SetupHelper' ></CustomAction>@gparyani