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

问题描述 投票:0回答:1

我尝试安装到映射的网络驱动器时遇到问题。我有权在此位置创建,编辑,删除文件/文件夹。总是用于此特定文件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
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.