Hello,
I apologize for my delayed reply.
In order to achieve what you want you can configure your C++ custom action to run as deferred with no impersonation. Just go to "Custom Actions" page, select your custom action and enable its "When the system is being modified (deferred)" and "Run under the LocalSystem account with full privileges (no impersonation)" execution options. Please keep in mind that in order to be scheduled as
deferred your custom action should be scheduled as a custom action with sequence after "Install Execution Stage -> Preparing" actions group.
As another approach, if your C++ custom action is not built as an EXE (i.e. a DLL), then you can build an EXE wrapper over your DLL custom action which will call your DLL and, afterwards you can launch your EXE wrapper using our
"Launch file" predefined custom action. Lastly, you can enable the "Run As Administrator" option of your "Launch file" custom action.
If you have any questions let us know.
All the best,
Daniel