首页 > 解决方案 > Wix 安装程序 - 安装到映射的网络驱动器时出现问题

问题描述

尝试安装到映射的网络驱动器时遇到问题。我有权在此位置创建、编辑、删除文件/文件夹。它总是针对这个特定的文件 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" />

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

非常感谢

标签: wixmapped-drive

解决方案


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


推荐阅读