2016-03-06 167 views
0

我相信我在Windows XP計算機中創建服務時出錯,因爲安裝完成後,我看不到任何我的服務安裝。
這是我創造我的安裝服務:Inno安裝程序:安裝服務在Windows XP上不起作用

Filename: {sys}\sc.exe; Check: (IsAdminLoggedOn or IsPowerUserLoggedOn); Parameters: "create Example start= delayed-auto binPath= ""{app}\Example.exe"""; Flags: runhidden 

這條線工作在所有的Windows之外的Windows XP的某些原因。
我做錯了什麼?

回答

1

如果您已經在Windows XP的命令行想你的命令,你會清楚地看到失敗的原因:

C:\>C:\WINDOWS\system32\sc.exe create Example start= delayed-auto binPath="C:\WINDOWS\system32\notepad.exe" 
invalid start= field 
... 

start=參數無效。您必須使用有效的值之一:僅

start= <boot|system|auto|demand|disabled> 

delayed-auto因爲Windows Vista中支持和更新。您必須在Windows XP上使用不同的啓動選項。

如果要在Windows Vista和更新版本上使用delayed-auto,並在Windows XP上使用另一個選項,請參見How to install a service with the delayed-auto startup type in Windows XP

+0

我不能使用啓動類型的需求,因爲它需要用戶手動啓動服務。我編輯了我的問題,所以請看看。 – yuval

+0

我在這裏提出我的問題http://stackoverflow.com/questions/35828041/how-to-install-a-service-with-the-delayed-auto-startup-type-in​​-winodws-xp – yuval