I\'ve read all related topics and haven\'t found a full answer to my problem.
I would like to give full permissions to SYSTEM and Read & Execute permissions to U
I had this exact same issue and talked to Rob M about it. I was going to do Christian G's answer (https://stackoverflow.com/a/5296967/18475), but Rob suggested using WixQueryOsWellKnownSID (http://wix.sourceforge.net/manual-wix3/osinfo.htm) to get around non en-US locales.
In the .wxs
file you add the following:
And further down in the .wxs
file where you want to apply the permissions it's just like this:
Now when you run light, you just need to link WixUtilExtension
.
light -ext WiXUtilExtension ...
NOTE: Depending on your version of WiX, this may not be fully supported. If it doesn't work for you, there may be other options you can use to translate SIDs.