2016-01-04 65 views
1

我使用installutil選項手動安裝了該服務。但它沒有顯示在服務列表中。我跑的命令在下面,我以管理員身份運行它。Installutil成功完成,但服務未顯示在服務上

cd C:\Windows\Microsoft.NET\Framework\v4.0.30319 
installutil.exe "C:\Program Files (x86)\CRM\CRM Server Components\Workflow Service-TEST2\CRM.Studio.WorkflowService.exe" 

回答

0

再次檢查您的命令如下。您實際上卸載了組件並未安裝。指定-u卸載程序集。

installutil.exe -u "C:\Program Files... 

從文檔引用:

如果/指定u或/卸載開關,它卸載 組件,否則它安裝它們。

你不應該指定-u選項,您的命令應該只是

installutil.exe "C:\Program Files....." 

想了解更多,在V​​isual Studio命令提示符下鍵入installutil.exe /?它會告訴你可用的選項。

+0

對不起拉胡爾。我將下面的命令放在 – Suga24

+0

cd C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 installutil.exe「C:\ Program Files(x86)\ CRM \ CRM服務器組件\工作流服務-TEST2 \ CRM.Studio .WorkflowService.exe「 – Suga24

+0

那麼會發生什麼,它是否說成功/啓用日誌記錄並查看是否有任何錯誤。 – Rahul

0

另一種選擇是使用SC命令。

SC命令與Windows服務控制器和安裝的服務進行通信。與其create命令選項一起使用時,可以使用它創建Windows服務。

1 & 2瞭解更多信息

sc [<ServerName>] create [<ServiceName>] [type= {own | share | kernel | filesys | rec | interact type= {own | share}}] [start= {boot | system | auto | demand | disabled}] [error= {normal | severe | critical | ignore}] [binpath= <BinaryPathName>] [group= <LoadOrderGroup>] [tag= {yes | no}] [depend= <dependencies>] [obj= {<AccountName> | <ObjectName>}] [displayname= <DisplayName>] [password= <Password>] 

對於你的問題,它應該是類似於以下

sc create "CRM.Studio.WorkflowService.exe" binpath= "C:\Program Files (x86)\CRM\CRM Server Components\Workflow Service-TEST2\CRM.Studio.WorkflowService.exe" displayname= "CRM.Studio.WorkflowService.exe" 

注:請謹記 '=' 號,而之間的空隙使用SC命令。

相關問題