Merge pull request #3715 from RisingFog/rmdir_installer

Update Installer to delete old Install directory
This commit is contained in:
Pierre Bourdon 2016-03-10 15:50:22 +01:00
commit 2ce7439c59

View File

@ -121,6 +121,9 @@ Section "Base" SEC01
; TODO: Make a nice subsection-ized display
SetOutPath "$INSTDIR"
SetOverwrite ifnewer
; Delete old install directory if it exists
IfFileExists "$INSTDIR\*.*" 0 +2
RMDir /r "$INSTDIR"
File "${BASE_DIR}\Dolphin.exe"
File "${BASE_DIR}\license.txt"
File "${BASE_DIR}\*.dll"