1

我可以使用 NSIS 脚本在远程机器上启动服务吗?我知道我们可以使用:

sc \\machine start servicename

通过 DOS 提示符。但是我们可以在 NSIS 中做同样的事情吗?可以使用 SimpleSC 吗?

4

1 回答 1

1

你可以使用exec.

ExecWait 'net start $servicename'

编辑:哦,你的意思是在远程机器上启动服务......好吧:

ExecWait 'sc \\machine start servicename'
于 2010-02-19T10:09:16.503 回答