Fix NSSM path

This commit is contained in:
2025-01-22 11:01:56 +01:00
parent c4c5f2841c
commit 84ed566c55
2 changed files with 22 additions and 1 deletions

View File

@@ -22,6 +22,23 @@ Open a `cmd.exe` shell, `cd` into the script directory (where you extracted the
The script will install *Git* and *Go* (if not yet installed) with *Winget*, clone the *Beszel* repository and build a Windows 64 bit `agent.exe` binary. The script will install *Git* and *Go* (if not yet installed) with *Winget*, clone the *Beszel* repository and build a Windows 64 bit `agent.exe` binary.
```
C:\Users\User\Downloads\install-beszel-service>build_agent.cmd
This script downloads the Beszel repository and builds the Beszel agent for Windows (64 Bit only).
If not yet installed, Git and Go will be installed via Winget.
Winget executable found
Installing Go with Winget
Installing Git with Winget
Refreshing environment variables from registry for cmd.exe. Please wait...Finished..
Cloning Beszel repository
Building agent
Build successful
Beszel agent.exe was built and copied, you can proceed with 'install-beszel-service.cmd'.
```
## (2) Installing the service ## (2) Installing the service
### Prerequisites ### Prerequisites
@@ -54,6 +71,10 @@ The provided `agent.exe` was compiled on January, 17th 2025 by me and should be
For more details, see [*Using Beszel to monitor Windows*](https://blog.ktz.me/using-beszel-to-monitor-windows/) by Alex Kretschmar. For more details, see [*Using Beszel to monitor Windows*](https://blog.ktz.me/using-beszel-to-monitor-windows/) by Alex Kretschmar.
## (3) Updating the service ## (3) Updating the service
### Prerequisites ### Prerequisites

View File

@@ -34,7 +34,7 @@ curl.exe --output "%TEMP%\nssm-2.24.zip" --url https://nssm.cc/ci/nssm-2.24-101-
echo Extracting ZIP file echo Extracting ZIP file
tar.exe -xf %TEMP%\nssm-2.24.zip >nul 2>&1 tar.exe -xf %TEMP%\nssm-2.24.zip >nul 2>&1
echo Copying nssm.exe to %DESTINATIONDIR% echo Copying nssm.exe to %DESTINATIONDIR%
copy .\nssm-2.24\win64\nssm.exe "%DESTINATIONDIR%\" >nul 2>&1 copy .\nssm-2.24-101-g897c7ad\win64\nssm.exe "%DESTINATIONDIR%\" >nul 2>&1
set NSSMEXE="%DESTINATIONDIR%\nssm.exe" set NSSMEXE="%DESTINATIONDIR%\nssm.exe"
echo Deleting temporary files and directories echo Deleting temporary files and directories
del "%TEMP%\nssm-2.24.zip" >nul 2>&1 del "%TEMP%\nssm-2.24.zip" >nul 2>&1