For those who might be interested, I found a solution.
At first, I added at my .wxs
project a reference to WixUtilExtension
, that you can find at the WiX folder.
You can also add it as an external reference like this:
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension"
After that, I could use locally PermissionEx
:
<File Id="$(var.productFamily)$(var.productSummary)"
Name="$(var.productFamily)$(var.productSummary).exe"
DiskId="1" KeyPath="yes"
Source="$(var.release)$(var.productFamily)$(var.productSummary).exe" >
<util:PermissionEx User="Everyone" GenericAll="yes" ChangePermission="yes" />
</File>
And with that I could elevate their permissions.