forked from cwtch.im/cwtch-ui
first pass at uninstaller
This commit is contained in:
parent
1d884cab9d
commit
eb38f48c67
|
@ -65,6 +65,11 @@ ShowInstDetails show
|
|||
!insertmacro MUI_PAGE_INSTFILES
|
||||
!insertmacro MUI_PAGE_FINISH
|
||||
|
||||
!insertmacro MUI_UNPAGE_WELCOME
|
||||
!insertmacro MUI_UNPAGE_CONFIRM
|
||||
!insertmacro MUI_UNPAGE_INSTFILES
|
||||
!insertmacro MUI_UNPAGE_FINISH
|
||||
|
||||
; Languages --------------------------------
|
||||
|
||||
!insertmacro MUI_LANGUAGE "English"
|
||||
|
@ -81,12 +86,18 @@ Section
|
|||
FILE /r "..\..\build\windows\runner\Release\"
|
||||
#FILESLISTEND
|
||||
|
||||
CreateDirectory "$SMPROGRAMS\Cwtch"
|
||||
|
||||
# create a shortcut in the start menu programs directory
|
||||
CreateDirectory "$SMPROGRAMS\Cwtch"
|
||||
CreateShortcut "$SMPROGRAMS\Cwtch\Cwtch.lnk" "$INSTDIR\cwtch.exe" "" "$INSTDIR\cwtch.ico"
|
||||
|
||||
;Store installation folder
|
||||
WriteRegStr HKCU "Software\Cwtch" "installLocation" $INSTDIR
|
||||
|
||||
SectionEnd
|
||||
|
||||
Section "Uninstall"
|
||||
RMDir "$INSTDIR" /r /REBOOTOK
|
||||
|
||||
DeleteRegKey /ifempty HKCU "Software\Cwtch\installLocation"
|
||||
SectionEnd
|
Loading…
Reference in New Issue