Running Installutil to install a windows service on a shared folder



I am trying to install a windows service from a shared folder like this:

installutil "\\\\Path1\Path2\MyService.exe"

And having this error:

Exception occurred while initializing the installation:
System.IO.FileLoadException: Could not load file or assembly 'file://\\\Path1\Path2\MyService.exe' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515).

There is no log at installutil log file and when i try to install service from a local path it installs successfully.

So i wonder is it possible to install a windows service on a pc from a shared path?

Thanks for your help.

asked on Stack Overflow Feb 4, 2013 by antistar • edited Mar 7, 2014 by Orhan Obut

1 Answer


Have you tried adding

   <loadFromRemoteSources enabled="true" />

in the installutil.config where the installutil.exe is at?

You can also try rightclicking the dlls and service exe -> properties -> unblock.

answered on Stack Overflow Sep 16, 2013 by drake7707

User contributions licensed under CC BY-SA 3.0