Running CustomAction in wix as elevated user
===

As I see it - wix supports 2 kinds of CustomActions -

Deferred - The user running this action is (by default) elevated, but is not the user who ran the install (e.g. LocalSystem, or some user like that).

Immediate - The user running this action is (by default) not elevated - it's the user who ran the installer in the first place.

I need something quite in the middle - I want the elevated form (UAC) of the user who ran the installer.

The reason I need this is to access databases that can only be accessed by the user installing the package in its elevated form (LocalSystem is not accessible).