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_INSTFILES
|
||||||
!insertmacro MUI_PAGE_FINISH
|
!insertmacro MUI_PAGE_FINISH
|
||||||
|
|
||||||
|
!insertmacro MUI_UNPAGE_WELCOME
|
||||||
|
!insertmacro MUI_UNPAGE_CONFIRM
|
||||||
|
!insertmacro MUI_UNPAGE_INSTFILES
|
||||||
|
!insertmacro MUI_UNPAGE_FINISH
|
||||||
|
|
||||||
; Languages --------------------------------
|
; Languages --------------------------------
|
||||||
|
|
||||||
!insertmacro MUI_LANGUAGE "English"
|
!insertmacro MUI_LANGUAGE "English"
|
||||||
|
@ -81,12 +86,18 @@ Section
|
||||||
FILE /r "..\..\build\windows\runner\Release\"
|
FILE /r "..\..\build\windows\runner\Release\"
|
||||||
#FILESLISTEND
|
#FILESLISTEND
|
||||||
|
|
||||||
|
CreateDirectory "$SMPROGRAMS\Cwtch"
|
||||||
|
|
||||||
# create a shortcut in the start menu programs directory
|
# create a shortcut in the start menu programs directory
|
||||||
CreateDirectory "$SMPROGRAMS\Cwtch"
|
|
||||||
CreateShortcut "$SMPROGRAMS\Cwtch\Cwtch.lnk" "$INSTDIR\cwtch.exe" "" "$INSTDIR\cwtch.ico"
|
CreateShortcut "$SMPROGRAMS\Cwtch\Cwtch.lnk" "$INSTDIR\cwtch.exe" "" "$INSTDIR\cwtch.ico"
|
||||||
|
|
||||||
;Store installation folder
|
;Store installation folder
|
||||||
WriteRegStr HKCU "Software\Cwtch" "installLocation" $INSTDIR
|
WriteRegStr HKCU "Software\Cwtch" "installLocation" $INSTDIR
|
||||||
|
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
Section "Uninstall"
|
||||||
|
RMDir "$INSTDIR" /r /REBOOTOK
|
||||||
|
|
||||||
|
DeleteRegKey /ifempty HKCU "Software\Cwtch\installLocation"
|
||||||
|
SectionEnd
|
Loading…
Reference in New Issue