Files
bambuddy/installers/windows/service/uninstall-service.bat
T
maziggy f4dfe03a87 feat(windows-installer): native .exe installer pipeline
Brings the Windows installer work from dev to main without merging
  the rest of the 0.2.5b1 release content. Squashes 12 commits from
  dev (8711c54e..7bb11df2) into a single net-effect commit on main.

  Includes:
  - installers/windows/ — Inno Setup .iss script, build.py, vendored
    NSSM 2.24, bambuddy.ico (multi-resolution app icon), service
    install/uninstall .bat files, build pipeline README
  - backend/app/services/network_utils.py — Windows psutil branch so
    the VP bind-IP dropdown enumerates interfaces; Linux/macOS path
    unchanged
  - .github/workflows/windows-installer.yml — reconciles main's
    kludge-pushed copy with dev's accumulated changes (NSSM
    vendoring, version-from-tag, unversioned alias step, etc.)

  CHANGELOG and README entries for the Windows installer stay on
  dev — they reference unreleased 0.2.5b1 release notes that aren't
  on main yet.
2026-06-10 14:11:02 +02:00

23 lines
619 B
Batchfile

@echo off
REM Stop and deregister the Bambuddy Windows service.
REM
REM Called from Inno Setup's [UninstallRun] section. Argument:
REM %1 = install dir (e.g. C:\Program Files\Bambuddy)
setlocal
set "INSTALL_DIR=%~1"
set "NSSM=%INSTALL_DIR%\bin\nssm.exe"
REM Stop is best-effort — if the service is already stopped, NSSM
REM returns non-zero and we want to proceed to the remove step.
"%NSSM%" stop Bambuddy 2>nul
REM Remove the service registration. confirm flag skips the
REM interactive prompt.
"%NSSM%" remove Bambuddy confirm 2>nul
echo [uninstall-service] Bambuddy service deregistered
endlocal
exit /b 0