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