【问题标题】:Windows Installer cannot access network location when installed directories on network drive在网络驱动器上安装目录时,Windows Installer 无法访问网络位置
【发布时间】:2014-03-04 22:05:20
【问题描述】:

我有一个在 Visual Studio 2010 中构建的 C++ Windows 应用程序,它带有一个安装项目来创建一个 .msi,当用户有一个本地 My Documents 文件夹时可以正常安装,但当他们的 My Documents 文件夹位于网络驱动器上时会失败.

在本地安装时,安装程​​序会在其My Documents 文件夹中创建ProjectData 文件夹,但是当我尝试在网络位置使用My Documents 安装到系统时,.msi 失败并显示@987654327 @ 错误信息。查看安装程序日志文件,似乎是在安装程序创建描述ProjectData 目录的属性时发生故障,而不是在尝试创建和填充这些目录时发生。

是否有人知道如何避免、解决或从该错误中恢复?

现在安装失败并回滚网络上带有“我的文档”的系统。谢谢。

来自 MSI 日志:

"The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2835. The arguments are: ErrorIcon, ErrorDialog, 
Error 1606. Could not access network location \\TOMVEE-W7PC\Users\W8RemoteUserDocs\\eQUEST 3-65 Projects\.
MSI (c) (38:64) [13:13:34:987]: Note: 1: 2262 2: Error 3: -2147287038 
MSI (c) (38:64) [13:13:34:987]: Product: eQUEST 3-65 -- Error 1606. Could not access network location \\TOMVEE-W7PC\Users\W8RemoteUserDocs\\eQUEST 3-65 Projects\.

MSI (c) (38:64) [13:13:34:989]: Note: 1: 1314 2: \\TOMVEE-W7PC\Users\W8RemoteUserDocs\\eQUEST 3-65 Projects\ 
MSI (c) (38:64) [13:13:34:989]: Note: 1: 1606 2: \\TOMVEE-W7PC\Users\W8RemoteUserDocs\\eQUEST 3-65 Projects\ 
MSI (c) (38:64) [13:13:34:989]: Note: 1: 2262 2: Error 3: -2147287038 
MSI (c) (38:BC) [13:13:34:991]: Note: 1: 2262 2: Error 3: -2147287038 
DEBUG: Error 2835:  The control ErrorIcon was not found on dialog ErrorDialog
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2835. The arguments are: ErrorIcon, ErrorDialog, 
Error 1606. Could not access network location \\TOMVEE-W7PC\Users\W8RemoteUserDocs\\eQUEST 3-65 Projects\.
MSI (c) (38:64) [13:13:39:006]: Note: 1: 2262 2: Error 3: -2147287038 
MSI (c) (38:64) [13:13:39:006]: Product: eQUEST 3-65 -- Error 1606. Could not access network location \\TOMVEE-W7PC\Users\W8RemoteUserDocs\\eQUEST 3-65 Projects\.

MSI (c) (38:64) [13:13:39:007]: Note: 1: 1606 2: \\TOMVEE-W7PC\Users\W8RemoteUserDocs\\eQUEST 3-65 Projects\ 
MSI (c) (38:64) [13:13:39:007]: Note: 1: 2262 2: Error 3: -2147287038 
MSI (c) (38:BC) [13:13:39:009]: Note: 1: 2262 2: Error 3: -2147287038 

我不认为丢失的错误图标是相关的,但也许?

【问题讨论】:

  • 当您尝试直接导航到日志中输出的网络位置时会发生什么?
  • 这是按用户安装还是按机器安装? (如果是每台机器安装,安装程序将请求提升权限。)

标签: windows visual-studio-2010 networking installation directory-structure


【解决方案1】:

无论是为我还是为所有用户安装都会出现此问题。

我做了一个小应用程序来测试权限并在不足时更新它们,但这仍然没有解决问题。

但是,在手动测试的过程中,我发现目录路径中间的一个额外的“\”导致了问题,例如“\TOMVEE-W7PC\Users\W8RemoteUserDocs\eQUEST 3-65 Projects”。出现这个额外的斜线是因为在设置项目属性中用于文件夹默认位置的 [PersonalFolder] 已经生成了一个“\”,然后我还在属性值中添加了一个斜线。这个额外的斜杠在本地安装时没有引起问题,但在网络位置安装时确实引起了问题,可能是因为“\”在网络目录中具有其他含义。

所以问题是错误地构建了目录路径,而不是权限。只是在其他人遇到同样问题的情况下发布这个答案。

感谢响应者, 汤姆

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-23
    • 1970-01-01
    • 2014-07-23
    • 1970-01-01
    相关资源
    最近更新 更多