WIX: Giving Permissions to a folder

前端 未结 5 562

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

5条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-05 06:04

    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.

提交回复
热议问题