【发布时间】:2020-05-14 22:32:25
【问题描述】:
我在尝试安装到映射的网络驱动器时遇到问题。我有权在此位置创建、编辑、删除文件/文件夹。它总是针对这个特定的文件 abc.xslt
这是 wix 日志告诉我的内容:
MSI (s) (48:9C) [14:48:11:524]: Source for file 'NSf100' is compressed
InstallFiles: File: abc.xslt, Directory: M:\abc\def\, Size: 17819
MSI (s) (48:9C) [14:48:11:525]: Re-applying security from existing file.
Error 1315. Unable to write to the specified folder: M:\abc\def\.
MSI (s) (48:9C) [14:50:33:621]: Product: ABC -- Error 1315. Unable to write to the specified folder: M:\abc\def\.
然后,我尝试在安装新文件之前执行 RemoveFile,如下所示:
<RemoveFile Id="NSfr100" Name="abc.xslt" On="install"/>
我再次看到这个错误:
RemoveFiles: File: abc.xslt, Directory: M:\abc\def\
Error 1315. Unable to write to the specified folder: M:\abc\def\.
MSI (s) (9C:3C) [16:54:29:389]: Product: ABC -- Error 1315. Unable to write to the specified folder: M:\abc\def\.
Action ended 16:54:29: InstallFinalize. Return value 3
所以,我尝试如下设置该文件的权限,但这也无济于事,
<util:PermissionEx User="Everyone" Domain="domain name" GenericRead="yes" Delete="yes" Read="yes" GenericAll="yes" GenericWrite="yes" GenericExecute="yes" WriteAttributes="yes" WriteExtendedAttributes="yes" ReadAttributes="yes" ReadExtendedAttributes="yes" ReadPermission="yes" Synchronize="no" />
在本地安装时,相同的安装程序可以正常工作。有人可以帮我理解为什么在安装到映射的网络驱动器时会失败吗?
非常感谢
【问题讨论】:
标签: wix mapped-drive