Skip to content

Commit

Permalink
Merge pull request #37 from eco/patch-5
Browse files Browse the repository at this point in the history
Only delete the installation folder if it is empty
  • Loading branch information
MartinNowak committed Jan 9, 2014
2 parents e5879ec + 8de2bc0 commit 570d35c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions windows/dinstaller.nsi
Expand Up @@ -3,7 +3,7 @@
;--------------------------------------------------------

; Version
;!define Version2 "2.063" ; <--- UPDATE
;!define Version2 "2.064.2" ; <--- UPDATE
!define Version2ReleaseYear "2013" ; S3 file hosting includes the year in the URL so update this as needed
!define Version1 "1.076"
!define Version1ReleaseYear "2013" ; S3 file hosting includes the year in the URL so update this as needed
Expand Down Expand Up @@ -475,6 +475,13 @@ Section "Uninstall"
; Remove the uninstaller
Delete $INSTDIR\uninstall.exe

Delete $INSTDIR\dmcvars.bat
Delete $INSTDIR\dmd1vars.bat
Delete $INSTDIR\dmd2vars.bat
Delete $INSTDIR\dmd2vars32.bat
Delete $INSTDIR\dmd2vars64.bat
Delete $INSTDIR\README.txt

; Remove shortcuts
Delete "$SMPROGRAMS\D\D1 HTML Documentation.lnk"
Delete "$SMPROGRAMS\D\D2 HTML Documentation.lnk"
Expand All @@ -485,7 +492,7 @@ Section "Uninstall"
RMDir /r /REBOOTOK "$INSTDIR\dm"
RMDir /r /REBOOTOK "$INSTDIR\dmd"
RMDir /r /REBOOTOK "$INSTDIR\dmd2"
RMDir /r /REBOOTOK "$INSTDIR"
RMDir /REBOOTOK "$INSTDIR"
RMDir /r /REBOOTOK "$SMPROGRAMS\D"

SectionEnd
Expand Down

0 comments on commit 570d35c

Please sign in to comment.