From bb60484bd8e1f9534aedb7bad963bf8167bd32ff Mon Sep 17 00:00:00 2001 From: Matthew Bramer <515152+iOnline247@users.noreply.github.com> Date: Fri, 13 Dec 2019 00:13:38 -0500 Subject: [PATCH] Supports both CMD and PowerShell (#9344) sc is aliased to Set-Content in PowerShell and these commands will not work without the `.exe` extension. --- doc/installation/windows-service.en-us.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/installation/windows-service.en-us.md b/doc/installation/windows-service.en-us.md index 8e3b63a1..9c36786c 100644 --- a/doc/installation/windows-service.en-us.md +++ b/doc/installation/windows-service.en-us.md @@ -40,7 +40,7 @@ To register Gitea as a Windows service, open a command prompt (cmd) as an Admini then run the following command: ``` -sc create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\"" +sc.exe create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\"" ``` Do not forget to replace `C:\gitea` with the correct Gitea directory. @@ -54,5 +54,5 @@ that was configured). To unregister Gitea as a service, open a command prompt (cmd) as an Administrator and run: ``` -sc delete gitea +sc.exe delete gitea ```