Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以使用 NSIS 脚本在远程机器上启动服务吗?我知道我们可以使用:
sc \\machine start servicename
通过 DOS 提示符。但是我们可以在 NSIS 中做同样的事情吗?可以使用 SimpleSC 吗?
你可以使用exec.
exec
ExecWait 'net start $servicename'
编辑:哦,你的意思是在远程机器上启动服务......好吧:
ExecWait 'sc \\machine start servicename'