Skip to content

Commit

Permalink
Adding snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
otociulis committed Nov 21, 2024
1 parent d5915de commit 3d44277
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions scripts/installer.nsh
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,7 @@ ${UnStrStr}
SetErrorLevel 2
Quit
${endif}
!macroend

!macro customUnInstallCheck
!insertmacro customUnInstallCheckCommon
!macroend

!macro customUnInstallCheckCurrentUser
!insertmacro customUnInstallCheckCommon
!macroend

Section "WriteUninstaller"
WriteUninstaller $INSTDIR\uninstaller.exe
SectionEnd

Section Uninstall
ClearErrors
FileOpen $0 "$APPDATA\ComfyUI\extra_models_config.yaml" r
var /global line
Expand All @@ -49,4 +35,12 @@ Section Uninstall

FileClose $0
Delete "$APPDATA\ComfyUI\extra_models_config.yaml"
SectionEnd
!macroend

!macro customUnInstallCheck
!insertmacro customUnInstallCheckCommon
!macroend

!macro customUnInstallCheckCurrentUser
!insertmacro customUnInstallCheckCommon
!macroend

0 comments on commit 3d44277

Please sign in to comment.