How to resolve “'installutil' is not recognized as an internal or external command, operable program or batch file.”?

后端 未结 12 1777
情话喂你
情话喂你 2020-12-07 08:41

Just tried to run an application via the following:

\"enter

I have browsed to

12条回答
  •  不思量自难忘°
    2020-12-07 09:35

    Found a solution on bytes.com

    The code to install a service:

    @ECHO Installing Service...
    @SET PATH=%PATH%;C:\Windows\Microsoft.NET\Framework\v4.0.30319\
    @InstallUtil  C:\Unlock_4_Service\bin\Debug\Unlock_4_Service.exe
    @ECHO Install Done.
    @pause
    

    @InstallUtil <.exe file path of your windows service>

    Code to uninstall the service

    @ECHO Installing Service...
    @SET PATH=%PATH%;C:\Windows\Microsoft.NET\Framework\v4.0.30319\
    @InstallUtil /u C:\Unlock_4_Service\bin\Debug\Unlock_4_Service.exe
    @ECHO Uninstall Done.
    @pause
    

    @InstallUtil /u <.exe file path of your windows service >

    Save the 2 files as service_install.bat and service_uninstall.bat

    Run the files as administrator, every time you have to install or uninstall the service. enter image description here

提交回复
热议问题