Wix安装程序-安装到映射的网络驱动器时出现问题

时间:2020-05-14 22:32:25

标签: wix mapped-drive

尝试安装到映射的网络驱动器时遇到问题。我有权在此位置创建,编辑,删除文件/文件夹。此特定文件始终为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" />

同一安装程序在本地安装时可以正常工作。有人可以帮我了解为什么在安装到映射的网络驱动器时失败了吗?

非常感谢

1 个答案:

答案 0 :(得分:0)

这不是Windows Installer支持的方案。映射的驱动器仅存在于登录上下文中的用户中。以SYSTEM身份运行的Windows Installer服务无法看到它。