2014-10-08 129 views
0

我創建了一個窗口服務。它基本上犯規anything.The目的只是爲了建設。之後。我已經推出開發者命令提示符下VS2013的項目註冊和輸入此命令我不能安裝Windows服務

C:\Users\xxx\Documents\visual studio 2013\Projects\WindowsService3\WindowsService3\bin\Debug WindowsService3.exe 

我得到這個消息

Exception occurred while initializing the installation: 
System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Use 
rs\xxx\Documents\visual' or one of its dependencies. Sytem coudnt find specified.......... 

然後我試圖SC.EXE並沒有什麼變化。而這是消息

SC]的CreateService失敗 - 487:like here

我在做什麼錯

回答

1

嘗試C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe /LogToConsole=true "Full path to exe goes there"