简体   繁体   中英

.NET setup project - Installing to a shared network drive

I have a simple windows form application. I have created an installer for that. I am using Custom Action class (It's a separate project with custom action class and added as primary output in the setup project) to perform some operations on Commit.

Installer works fine if I install it to my local C: drive. But it fails when I try to install it to network drive mapped to my computer. Here is what I get

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. 

Any ideas?

Thanks

It is not clear as to who is trying to access Test.dll.

But when working with mapped drives it is better you use UNC path convention.

http://support.microsoft.com/kb/307420/en-us describes such a problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM