Skip to content

Commit 5b23851

Browse files
author
IJustItay
committed
Add in-app updater backups and installer guard
1 parent 9a9b90d commit 5b23851

File tree

9 files changed

+751
-26
lines changed

9 files changed

+751
-26
lines changed

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ The packaged Windows build requests administrator permission because Equalizer A
4747

4848
Choose one Windows build:
4949

50-
- [Portable app](https://github.com/IJustItay/Neon-Equalizer/releases/latest/download/Neon-Equalizer-2.0.7-Portable.exe) - run without installing.
51-
- [Installer](https://github.com/IJustItay/Neon-Equalizer/releases/latest/download/Neon-Equalizer-2.0.7-Setup.exe) - guided installation with shortcuts.
50+
- [Portable app](https://github.com/IJustItay/Neon-Equalizer/releases/latest/download/Neon-Equalizer-2.0.9-Portable.exe) - run without installing.
51+
- [Installer](https://github.com/IJustItay/Neon-Equalizer/releases/latest/download/Neon-Equalizer-2.0.9-Setup.exe) - guided installation with shortcuts.
5252

5353
Checksums are available in [SHA256SUMS.txt](https://github.com/IJustItay/Neon-Equalizer/releases/latest/download/SHA256SUMS.txt).
5454

@@ -107,7 +107,13 @@ Create the portable Windows executable:
107107
npm run dist
108108
```
109109

110-
The outputs are written to `release/Neon-Equalizer-2.0.7-Portable.exe` and `release/Neon-Equalizer-2.0.7-Setup.exe`.
110+
The outputs are written to `release/Neon-Equalizer-2.0.9-Portable.exe` and `release/Neon-Equalizer-2.0.9-Setup.exe`.
111+
112+
Upload `release/latest.yml` and `release/Neon-Equalizer-2.0.9-Setup.exe.blockmap` with the installer release assets so installed copies can download and install updates inside the app.
113+
114+
## User Data Backups
115+
116+
Use About -> User Data -> Save Backup to export presets, device profiles, snapshots, A/B slots, local settings, and app storage to a `.zip` file. Use Restore Backup to merge a saved backup back into the app data folder; Neon Equalizer creates a safety backup first and restarts after restore.
111117

112118
## Repository Design
113119

build/installer.nsh

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
!macro customInit
2+
checkNeonEqualizerRunning:
3+
nsExec::ExecToStack `"$SYSDIR\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -Command "if (Get-Process -Name 'Neon Equalizer' -ErrorAction SilentlyContinue) { exit 1 } exit 0"`
4+
Pop $0
5+
Pop $1
6+
StrCmp $0 "1" neonEqualizerRunning neonEqualizerClosed
7+
8+
neonEqualizerRunning:
9+
MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "Neon Equalizer is still running. Close it from the window or tray, then click Retry to continue installing." IDRETRY checkNeonEqualizerRunning IDCANCEL neonEqualizerAbort
10+
11+
neonEqualizerAbort:
12+
Abort
13+
14+
neonEqualizerClosed:
15+
!macroend
16+
17+
!macro customUnInit
18+
checkNeonEqualizerRunningUninstall:
19+
nsExec::ExecToStack `"$SYSDIR\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -ExecutionPolicy Bypass -Command "if (Get-Process -Name 'Neon Equalizer' -ErrorAction SilentlyContinue) { exit 1 } exit 0"`
20+
Pop $0
21+
Pop $1
22+
StrCmp $0 "1" neonEqualizerRunningUninstall neonEqualizerClosedUninstall
23+
24+
neonEqualizerRunningUninstall:
25+
MessageBox MB_RETRYCANCEL|MB_ICONEXCLAMATION "Neon Equalizer is still running. Close it from the window or tray, then click Retry to continue uninstalling." IDRETRY checkNeonEqualizerRunningUninstall IDCANCEL neonEqualizerAbortUninstall
26+
27+
neonEqualizerAbortUninstall:
28+
Abort
29+
30+
neonEqualizerClosedUninstall:
31+
!macroend

0 commit comments

Comments
 (0)