mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 16:40:24 +08:00 
			
		
		
		
	Supports both CMD and PowerShell (#9344)
sc is aliased to Set-Content in PowerShell and these commands will not work without the `.exe` extension.
This commit is contained in:
		
				
					committed by
					
						
						techknowlogick
					
				
			
			
				
	
			
			
			
						parent
						
							6442e003c5
						
					
				
				
					commit
					39db99a595
				
			@@ -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
 | 
			
		||||
```
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user