Skip to content

Commit

Permalink
Push to 38 characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpre committed Oct 25, 2018
1 parent 3f9d55b commit 217ade7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions hspy_bundle/NSIS_installer_script.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 217ade7

Please sign in to comment.