另一種選擇是使用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命令。
對不起拉胡爾。我將下面的命令放在 – Suga24
cd C:\ Windows \ Microsoft.NET \ Framework \ v4.0.30319 installutil.exe「C:\ Program Files(x86)\ CRM \ CRM服務器組件\工作流服務-TEST2 \ CRM.Studio .WorkflowService.exe「 – Suga24
那麼會發生什麼,它是否說成功/啓用日誌記錄並查看是否有任何錯誤。 – Rahul