wix - 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" />
在本地安装时,相同的安装程序可以正常工作。有人可以帮我理解为什么在安装到映射的网络驱动器时会失败吗?
非常感谢
解决方案
这不是 Windows Installer 支持的方案。映射驱动器仅存在于登录上下文的用户中。以 SYSTEM 身份运行的 Windows 安装程序服务看不到它。
推荐阅读
- google-api - Drive Api v3:更改监视请求 TeamDriveId 被忽略?
- android - 主题/样式/文本外观,哪个先例?
- tsql - 列 Data_Type 的 SQL 表达式检查
- php - Woocommerce 结帐后注销用户
- python - How to stop a function with another function ? (in python)
- android - Unity 在 Android 上启动游戏时会根据纵横比进行拉伸
- angular - “X”类型的参数不能分配给“字符串”类型的参数
- excel - 如果删除行,自定义函数会出错
- wordpress - 使用其他产品作为选项 - WooCommerce
- android - Android Leanback (android tv) 应用程序中的滚动条拇指可见性