From e97c047ea3aec6bdb78b78146e4c9c7bda4c67aa Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Thu, 1 Jan 2015 22:32:45 +0100 Subject: [PATCH] Some installer fixes. --- etc/NSIS/setup.nsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/etc/NSIS/setup.nsi b/etc/NSIS/setup.nsi index a5061359..5b28feff 100644 --- a/etc/NSIS/setup.nsi +++ b/etc/NSIS/setup.nsi @@ -462,6 +462,7 @@ Section "!Install Files" Delete "$INSTDIR\Settings.cfg" Delete "$INSTDIR\Translate.html" Delete "$INSTDIR\Uninstall.exe" + RMDir /r "$INSTDIR\img" !insertmacro GetExecutableName $R0 @@ -475,8 +476,10 @@ Section "!Install Files" ${EndIf} File /a `/oname=$R0` `${LAMEXP_SOURCE_PATH}\LameXP.exe` - File /a `${LAMEXP_SOURCE_PATH}\*.txt` - File /a `${LAMEXP_SOURCE_PATH}\*.html` + + File /a /r `${LAMEXP_SOURCE_PATH}\*.txt` + File /a /r `${LAMEXP_SOURCE_PATH}\*.html` + File /a /r `${LAMEXP_SOURCE_PATH}\*.png` SectionEnd Section "-Write Uinstaller" @@ -615,6 +618,7 @@ Section "Uninstall" Delete /REBOOTOK "$INSTDIR\Translate.html" Delete /REBOOTOK "$INSTDIR\Uninstall.exe" + RMDir /r "$INSTDIR\img" RMDir "$INSTDIR" ; --------------