From 6598cfe7ec87b36197809eb745417e46e05e57d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 28 Jan 2019 09:05:48 +0100 Subject: [PATCH] Tidy NSIS install log --- pkg/macros.nsh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/macros.nsh b/pkg/macros.nsh index 63094957..5e524e35 100644 --- a/pkg/macros.nsh +++ b/pkg/macros.nsh @@ -14,10 +14,11 @@ ; Translations !macro LOCALIZATION LANG CODE Section "${LANG}" - CreateDirectory "$INSTDIR\translations" + IfFileExists "$INSTDIR\translations" +2 0 + CreateDirectory "$INSTDIR\translations" File /oname=translations\gpxsee_${CODE}.qm translations\gpxsee_${CODE}.qm !if /FileExists translations\qt_${CODE}.qm File /oname=translations\qt_${CODE}.qm translations\qt_${CODE}.qm !endif SectionEnd -!macroend +!macroend \ No newline at end of file