Search code examples
nsis

How to freeze a service for sometime in nsis?


My requirement is to freeze a servise group for around a minute(60 secs). How can I do that in nsis? I guess it would be something like this: hagrp -value Service Frozen...


Solution

  • You can execute applications with Exec/ExecWait:

    Exec '"$instdir\myapp.exe" /param1 "par am2" /param3'
    

    If you want to execute a console application without showing the console window then you have to use one of he exec plugins: nsExec, ExecDos or ExecCmd.

    Edit:

    There are several plugins and scripts to choose from if you want to manipulate a Windows service...