I had some experience working with problems of .Net applications from the Share network, although I am sure that there are solutions. (I just didnโt need to look for these solutions.) Basically, these were problems with permissions, and it seemed to me that I would need to change the security policy to make it work, and this seemed to be a hack, so I just learned how to better evaluate the requirements and avoid this.
However, when I read the question, I wonder if .net is the right tool for the job? It seems to me that this is more of a problem that is easier to handle in a batch file script.
I hate writing scripts and batch files because it's just not that much fun and I would rather use .Net for almost everyone, but there is such a thing as the right tool for the job. (I try to avoid .net becoming my hammer, because not all problems are nails.)
Added based on additional information.
Does it matter. Then the script would still be feasible, but if it were me, I would make the client application just because it was simpler, but I would go around not wanting to install it for several clients like this.
Hack warning - this works, but I will probably be beaten to offer such a hack.
Since .Net client applications usually do not require installers and can be copied using xcopy deployment, I did this in your situation:
- Burn application as a console application
- Put all the files necessary for working in a network share in a folder.
- Write a batch file that
- creates a folder on the client PC (overwriting any existing content)
- copies the contents of the folder on the server to the client PC.
- runs an executable file.
This makes installation and updating the easiest way. Eaiser than ClickOnce (which is good, but would be too large for such an application)
Example batch file:
C:\ cd \ md MyApp copy \\SomeServer\SomeShare\*.* myapp cd myapp call myApp.exe
David source share