feat: add windows uninstall script

This commit is contained in:
huzibaca 2024-10-22 04:46:08 +08:00
parent 3e94adb4b1
commit afde7e4a44
No known key found for this signature in database
GPG Key ID: D4364EE4851DC302
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
!define NSIS_HOOK_PREUNINSTALL "NSIS_HOOK_PREUNINSTALL_"
!macro NSIS_HOOK_PREUNINSTALL_
ExecWait '"$INSTDIR\uninstall-service.exe"'
!macroend

View File

@ -16,7 +16,8 @@
"installerIcon": "icons/icon.ico", "installerIcon": "icons/icon.ico",
"languages": ["SimpChinese", "English"], "languages": ["SimpChinese", "English"],
"installMode": "perMachine", "installMode": "perMachine",
"template": "./template/installer.nsi" "template": "./template/installer.nsi",
"installerHooks": "../packages/windows/nsis_hooks.sh"
} }
} }
}, },