Inno安装程序:安装服务在Windows XP上不起作用
问题描述:
我相信我在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的某些原因。
我做错了什么?
答
如果您已经在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。
我不能使用启动类型的需求,因为它需要用户手动启动服务。我编辑了我的问题,所以请看看。 – yuval
我在这里提出我的问题http://*.com/questions/35828041/how-to-install-a-service-with-the-delayed-auto-startup-type-in-winodws-xp – yuval