Deploy: RIOJoy payload folder + pre-uninstall cleanup

Rename the package payload folder to RIOJoy (was riojoy) so it extracts
to C:\games\RIOJoy, and add a pre-uninstall path the console can run
before deleting the folder.

- pre-uninstall.bat (inside RIOJoy\): self-elevating entry point that
  runs uninstall-rio.ps1.
- uninstall-rio.ps1: stops the tray app, removes the HKLM Run entry,
  uninstalls ViGEmBus (-KeepDriver to skip), and clears per-user config
  for every profile (-KeepConfig to skip). Idempotent and non-fatal.
- build-package.ps1 bundles both; README documents the uninstall flow.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Cyd
2026-06-30 10:31:08 -05:00
co-authored by Claude Opus 4.8
parent d17fd018eb
commit 67b56559f7
5 changed files with 175 additions and 15 deletions
+3 -3
View File
@@ -1,8 +1,8 @@
@echo off
rem ===========================================================================
rem RIOJoy cockpit post-install entry point (run by TeslaConsole).
rem Sits beside the 'riojoy' payload folder; elevates, then runs
rem riojoy\install-rio.ps1.
rem Sits beside the 'RIOJoy' payload folder; elevates, then runs
rem RIOJoy\install-rio.ps1.
rem ===========================================================================
setlocal
title RIOJoy post-install
@@ -17,7 +17,7 @@ if %errorlevel% neq 0 (
cd /d "%~dp0"
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0riojoy\install-rio.ps1"
powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0RIOJoy\install-rio.ps1"
set RC=%errorlevel%
echo.