I've compiled NSIS with commands
and when I runned compiled version of the NSIS with script
scons SKIPUTILS="NSIS Menu"
scons PREFIX="C:\temp\NSIS" install
It's fails with error
Section "Download Updater"
CreateDirectory $INSTDIR
StrCpy $2 "$INSTDIR\currentLauncherURL.dat"
NSISdl::download http://files.lifesim******builds/stable/Windows_x32/currentLauncherURL.txt $2
Pop $0
StrCmp $0 success success
SetDetailsView show
DetailPrint "download failed: $0"
MessageBox MB_OK "Download failed: $0"
Abort
success:
FileOpen $4 $2 r
FileRead $4 $5 ; we read until the end of line (including carriage return and new line) and save it to $1
FileClose $4 ; and close the file
StrCpy $2 "$INSTDIR\LifeSimLauncher.exe"
NSISdl::download $5 $2
Pop $0
StrCmp $0 success success2
SetDetailsView show
DetailPrint "download failed: $0"
MessageBox MB_OK "Download failed: $0"
Abort
success2:
; Exec '"$2"'
Quit
SectionEnd
---------------------------
LifeSim - Life Simulator Game Setup
---------------------------
Download failed: connecting to host
---------------------------
ОК
---------------------------
But this script works correctly with precompiled version, that I downloaded from NSIS sf website.
I tried source from https://sourceforge.net/p/nsis/code/...S/tags/v30rc2/ and from https://sourceforge.net/p/nsis/code/...ee/NSIS/trunk/ .
Why it doesn't work in version, that compiled from sources?
Thank you!