From e4345d194980513c05d02df4bb2c76cedc4393cd Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Wed, 11 Jan 2017 15:12:18 +0100 Subject: [PATCH] don't provide empty installation path --- Installation/Windows/Templates/NSIS.template.in | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Installation/Windows/Templates/NSIS.template.in b/Installation/Windows/Templates/NSIS.template.in index 935eb77983..b4158b2dd6 100755 --- a/Installation/Windows/Templates/NSIS.template.in +++ b/Installation/Windows/Templates/NSIS.template.in @@ -1363,7 +1363,8 @@ SectionEnd ; "Program Files" for AllUsers, "My Documents" for JustMe... var allPathOpts - +var CMDINSTDIR + Function .onInit ${GetParameters} $R0 ClearErrors @@ -1373,9 +1374,9 @@ Function .onInit ${GetParameters} $R0 ClearErrors - ${GetOptions} $R0 "/INSTDIR=" $INSTDIR - IfErrors 0 +2 - StrCpy $INSTDIR "" + ${GetOptions} $R0 "/INSTDIR=" $CMDINSTDIR + IfErrors +2 0 + StrCpy $INSTDIR "$CMDINSTDIR" ${GetParameters} $R0 ${GetOptions} $R0 "/DESKTOPICON=" $INSTALL_DESKTOP