nitrolex commited on
Commit
1aa6886
·
verified ·
1 Parent(s): ff9dc92

Create Install_Services/NSSM-NO-ADMIN.bat

Browse files
Files changed (1) hide show
  1. Install_Services/NSSM-NO-ADMIN.bat +18 -0
Install_Services/NSSM-NO-ADMIN.bat ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @echo off
2
+
3
+ REM Specify the path to NSSM executable (Download from https://nssm.cc/download or https://github.com/kirillkovalenko/nssm )
4
+ set NSSM_PATH="C:\path\to\nssm.exe"
5
+
6
+ REM Specify the name of the service (replace "MyService" with your desired service name)
7
+ set SERVICE_NAME=MyService
8
+
9
+ REM Specify the path to the executable for the service
10
+ set SERVICE_EXECUTABLE="C:\path\to\your\service.exe"
11
+
12
+ REM Install the service using NSSM
13
+ %NSSM_PATH% install %SERVICE_NAME% %SERVICE_EXECUTABLE%
14
+
15
+ REM Start the installed service
16
+ net start %SERVICE_NAME%
17
+
18
+ echo Service "%SERVICE_NAME%" installed and started.