From 217ade7cd45ce608bbfb1667f6643068f8185298 Mon Sep 17 00:00:00 2001 From: Eric Prestat Date: Thu, 25 Oct 2018 16:57:50 +0100 Subject: [PATCH] Push to 38 characters. --- hspy_bundle/NSIS_installer_script.nsi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hspy_bundle/NSIS_installer_script.nsi b/hspy_bundle/NSIS_installer_script.nsi index 4344e8c..178bb0f 100644 --- a/hspy_bundle/NSIS_installer_script.nsi +++ b/hspy_bundle/NSIS_installer_script.nsi @@ -103,6 +103,7 @@ Page custom InstModeSelectionPage_Create InstModeSelectionPage_Leave ; ------- UAC functions ------------------------------------------------------- Var InstMode ;0=current, 1=portable, 2=all users, +Var InstDirLen Function InstModeChanged ${If} $InstMode = 0 ; Current user @@ -210,9 +211,10 @@ Function InstModeSelectionPage_Leave ${NSD_GetState} $0 $9 ${NSD_GetState} $1 $8 - StrLen $INSTDIRLEN $INSTDIR - ${If} $INSTDIRLEN > 35 ${AndIfNot} ${AtLeastWin8} - MessageBox MB_OK "Installation path should be shorter than 35 characters." + StrLen $InstDirLen "${APP_INSTDIR}" + ${If} $InstDirLen > 38 + ${AndIfNot} ${AtLeastWin8} + MessageBox MB_OK "Installation path should be shorter than 38 characters." ${EndIf} ${If} $8 = 1