我有这个项目的结构(例子):
Installer\Dependencies\Myservice.exe
Installer\Dependencies\dependenci.dll
Installer\Dependencies\js\file.js
Installer\Dependencies\resources\folder\file.js
在这些文件夹的每一个中,我对服务的依赖安装都很好。
如果依赖,如何使用simpleSC安装服务?
我知道声明:
SimpleSC::InstallService [name_of_service] [display_name] [service_type][start_type] [binary_path] [dependencies] [account] [password]
我已经试过了,但是没有用:
SimpleSC::InstallService "LprService" "LprService" "272" "2" "$INSTDIR\GeneteLPRService.exe" "Dependencies" "" ""
P.s。:使用InstallUtil.exe,它的工作原理
SimpleSC依赖项是在服务启动之前必须启动的其他服务的列表。
The Wiki page有一个例子:
; Depends on "Windows Time Service" (w32time) and "WWW Publishing Service" (w3svc):
SimpleSC::InstallService "MyService" "My Display Name" "16" "2" "$InstDir\MyService.exe" "w32time/w3svc" "" ""
Pop $0
如果您没有任何服务依赖项,那么您可以像其他未使用的参数一样使用空字符串。
您可以使用File
或File /r
正常安装服务所需的文件。