mirror of
https://github.com/safing/portmaster
synced 2025-09-15 01:09:41 +00:00
[WIP] Fix edge upgrade edge cases
This commit is contained in:
parent
89b533f949
commit
1b6ee722f3
6 changed files with 124 additions and 29 deletions
|
@ -1,13 +1,34 @@
|
|||
!define NSIS_HOOK_POSTINSTALL "NSIS_HOOK_POSTINSTALL_"
|
||||
!macro NSIS_HOOK_PREINSTALL
|
||||
; Current working directory is <project-dir>\target\release\nsis\x64
|
||||
|
||||
SetOutPath "$INSTDIR"
|
||||
|
||||
File "..\..\..\..\binaries\bin-index.json"
|
||||
File "..\..\..\..\binaries\portmaster-core.exe"
|
||||
File "..\..\..\..\binaries\portmaster-kext.sys"
|
||||
File "..\..\..\..\binaries\portmaster.zip"
|
||||
File "..\..\..\..\binaries\assets.zip"
|
||||
|
||||
SetOutPath "$COMMONPROGRAMDATA\Portmaster\intel"
|
||||
|
||||
File "..\..\..\..\binaries\intel-index.json"
|
||||
File "..\..\..\..\binaries\base.dsdl"
|
||||
File "..\..\..\..\binaries\geoipv4.mmdb"
|
||||
File "..\..\..\..\binaries\geoipv6.mmdb"
|
||||
File "..\..\..\..\binaries\index.dsd"
|
||||
File "..\..\..\..\binaries\intermediate.dsdl"
|
||||
File "..\..\..\..\binaries\urgent.dsdl"
|
||||
|
||||
; restire previous state
|
||||
SetOutPath "$INSTDIR"
|
||||
|
||||
!macro NSIS_HOOK_POSTINSTALL_
|
||||
ExecWait '"$INSTDIR\portmaster-start.exe" install core-service --data="$INSTDIR\data"'
|
||||
!macroend
|
||||
|
||||
!macro NSIS_HOOK_POSTINSTALL
|
||||
ExecWait 'sc.exe create PortmasterCore binPath= "$INSTDIR\portmaster-core.exe" --data="$COMMONPROGRAMDATA\Portmaster\data"'
|
||||
!macroend
|
||||
|
||||
!define NSIS_HOOK_PREUNINSTALL "NSIS_HOOK_PREUNINSTALL_"
|
||||
|
||||
!macro NSIS_HOOK_PREUNINSTALL_
|
||||
!macro NSIS_HOOK_PREUNINSTALL
|
||||
ExecWait 'sc.exe stop PortmasterCore'
|
||||
ExecWait 'sc.exe delete PortmasterCore'
|
||||
!macroend
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue