如何以可本地化的方式在安装时设置文件夹权限 [英] How to set folder permissions on install in a localizable fashion
问题描述
我有一个带有 WiX 3.0 的安装版本.它目前会创建一些文件夹并修改文件夹权限.但是,它不会安装在西班牙操作系统上.现在这是一个问题,因为我们必须支持西班牙操作系统.所以......我试图以一种可本地化的方式来做到这一点.这是我将其更改为:
I have an installation build with WiX 3.0. It currently creates some folders and modifies the folder permissions. However, it will not install on a Spanish OS. That is now a problem since we have to support Spanish OS's. So... I am trying to do this in a way that is localizable. This is what I have changed it to:
<CreateFolder Directory="JPROLogs" >
<util:PermissionEx User="[WIX_ACCOUNT_ADMINISTRATORS]" GenericAll="yes" />
<util:PermissionEx User="[WIX_ACCOUNT_USERS]" GenericAll="yes" />
</CreateFolder>
但是我现在在英语操作系统和西班牙语操作系统上安装失败,并出现以下错误:
But I get the install now fails on English OS's and Spanish OS's with the following error:
ExeSecureObjects:错误 0x80070534:无法获取帐户的 sid:NOREGON-B3BC733\BUILTIN\Administrators
ExeSecureObjects: Error 0x80070534: failed to get sid for account: NOREGON-B3BC733\BUILTIN\Administrators
有什么想法我哪里出错了吗?
Any ideas where I have gone wrong?
推荐答案
当涉及其他语言时,不会翻译帐户名称.我们使用了一种方法来根据已知的 SID 翻译名称,通过自定义操作来解决这个问题.
The account names do not get translated when other languages are involved. We used an approach to translate the names based on the know SID's, via custom actions, to get around this.
在以下位置概述了一种方法:http://social.msdn.microsoft.com/forums/en-US/vssetup/thread/39d9e905-2b35-4ce9-a544-4564f6b5a376
An approach is outlined at: http://social.msdn.microsoft.com/forums/en-US/vssetup/thread/39d9e905-2b35-4ce9-a544-4564f6b5a376
这篇关于如何以可本地化的方式在安装时设置文件夹权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!