View Single Post
Old 17th January 2020, 03:55   #1
chimeplus
Junior Member
 
Join Date: Jan 2020
Posts: 1
Nsis jre download fail

IS recent Java have updated make all the JRE runtime enviroment download fail ?
how to resolve this?

!define JRE_VERSION "1.6"
!define JRE_URL "http://javadl.sun.com/webapps/download/AutoDL?BundleId=58134"
Function GetJRE
MessageBox MB_YESNO|MB_ICONQUESTION $(JavaInstall) IDNO done
StrCpy $2 "$TEMP\Java Runtime Environment.exe"
nsisdl::download /TIMEOUT=30000 ${JRE_URL} $2
Pop $R0
StrCmp $R0 "success" +3
MessageBox MB_OK "Error: $R0"
Quit
ExecWait "$2"
Delete "$2"
done:
FunctionEnd

was no long success and timeout even the URL was ok~

anyone have solution for this ?
chimeplus is offline   Reply With Quote