.NET安装项目 - 安装到共享网络驱动器

时间:2011-06-10 08:57:44

标签: c# visual-studio installer network-programming setup-project

我有一个简单的Windows窗体应用程序。我为此创建了一个安装程序。我正在使用Custom Action类(它是一个带有自定义操作类的单独项目,并在安装项目中添加为主输出),以对Commit执行某些操作。

如果将安装程序安装到本地C:驱动器,安装程序可以正常工作。但是当我尝试将其安装到映射到我的计算机的网络驱动器时它失败了。这是我得到的

Error 1001. Error occurred while initializing the installation:
System.IO.FileNotFound Exception: could not load file or assembly file:///T:\TestFolder\Test.dll or one of it's dependencies.
The system cannot find the file specified. 

有什么想法吗?

谢谢

1 个答案:

答案 0 :(得分:0)

目前尚不清楚谁试图访问Test.dll。

但是在使用映射驱动器时,最好使用UNC路径约定。

http://support.microsoft.com/kb/307420/en-us描述了这样一个问题。