I have a WiX
project, and it installs some executables and libraries on a folder located at ProgramFiles
.
The problem comes when running one of these executables. Some of them need to be executed as Administrator
to do all the tasks it should do. If I right click on it, and run it as administrator, it works well. But I want WiX to elevate that permissions for my files by itself.
Is there any way?
I tried doing this:
<Package Id="$(var.GUID_Package)"
InstallPrivileges="elevated"
InstallScope="perMachine" ...>
And:
<Property Id="MSIUSEREALADMINDETECTION" Value="1" />
But these two options only work for the .msi
package (not for the installed files).
NOTE: I think I didn't explain myself correctly... My problems came on permissions with my installed files. I couldn't execute them correctly because of permissions. When I run them as administrator, obviously, all permissions are correct for execution. So what I had to do was change that permissions for each file I had trouble with.