mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 11:42:21 +08:00
feat: add windows uninstall script
This commit is contained in:
parent
3e94adb4b1
commit
afde7e4a44
5
packages/windows/nsis_hooks.sh
Normal file
5
packages/windows/nsis_hooks.sh
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
!define NSIS_HOOK_PREUNINSTALL "NSIS_HOOK_PREUNINSTALL_"
|
||||||
|
|
||||||
|
!macro NSIS_HOOK_PREUNINSTALL_
|
||||||
|
ExecWait '"$INSTDIR\uninstall-service.exe"'
|
||||||
|
!macroend
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user