Skip to content

Commit 39db99a

Browse files
iOnline247techknowlogick
authored andcommitted
Supports both CMD and PowerShell (#9344)
sc is aliased to Set-Content in PowerShell and these commands will not work without the `.exe` extension.
1 parent 6442e00 commit 39db99a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/content/doc/installation/windows-service.en-us.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ To register Gitea as a Windows service, open a command prompt (cmd) as an Admini
4040
then run the following command:
4141

4242
```
43-
sc create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\""
43+
sc.exe create gitea start= auto binPath= "\"C:\gitea\gitea.exe\" web --config \"C:\gitea\custom\conf\app.ini\""
4444
```
4545

4646
Do not forget to replace `C:\gitea` with the correct Gitea directory.
@@ -54,5 +54,5 @@ that was configured).
5454
To unregister Gitea as a service, open a command prompt (cmd) as an Administrator and run:
5555

5656
```
57-
sc delete gitea
57+
sc.exe delete gitea
5858
```

0 commit comments

Comments
 (0)