更新时间:2021-09-03 08:33:07
您可以在Wix中做您想做的事而无需自定义操作:
You can do what you want to do within Wix without custom actions:
<CreateFolder Directory="DirectoryToSetPermissions">
<util:PermissionEx User="Everyone" GenericAll="yes" />
</CreateFolder>
要使用Util扩展,您必须添加对WixUtilExtension程序集的引用,并将UtilExtension命名空间添加到wsx文件上的Wix标记如下:
To use the Util extension you have to add a reference to WixUtilExtension assembly and add the UtilExtension namespace to the Wix tag on your wsx file like so:
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">