mirror of
https://github.com/koodo-reader/koodo-reader.git
synced 2026-06-18 04:40:11 -04:00
16 lines
547 B
NSIS
16 lines
547 B
NSIS
!macro customInit
|
|
!macroend
|
|
|
|
!macro customInstall
|
|
; Kill running Koodo Reader process before installation to prevent file locking
|
|
nsExec::ExecToLog 'taskkill /f /im "Koodo Reader.exe"'
|
|
; Wait for the OS to release file handles after process termination
|
|
Sleep 3000
|
|
!macroend
|
|
|
|
!macro customUnInstall
|
|
MessageBox MB_YESNO "Do you want to delete all your data including books, notes, highlights, bookmarks, configurations?" /SD IDNO IDNO SkipRemoval
|
|
SetShellVarContext current
|
|
RMDir /r "$APPDATA\koodo-reader"
|
|
SkipRemoval:
|
|
!macroend |