From 42da81f1bba484d8794a3a9b0d7cf81fdf61fd87 Mon Sep 17 00:00:00 2001 From: servertood Date: Sun, 28 Sep 2008 04:53:08 +0000 Subject: [PATCH] launch java download link when NSIS cant find Java --- extra/jheidi/etc/nsis/jheidi.nsi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/extra/jheidi/etc/nsis/jheidi.nsi b/extra/jheidi/etc/nsis/jheidi.nsi index 6cee91bb..d5924de4 100644 --- a/extra/jheidi/etc/nsis/jheidi.nsi +++ b/extra/jheidi/etc/nsis/jheidi.nsi @@ -25,9 +25,10 @@ Section "" ClearErrors Exec $0 - IfErrors 0 +2 - messageBox MB_OK "The Java Runtime Environment has not been installed. Please visit javasoft.com and download the latest version." - + IfErrors 0 +3 + messageBox MB_OK "The Java Runtime Environment has not been installed. Please visit javasoft.com and download the latest version." + Exec "rundll32 url.dll,FileProtocolHandler http://www.java.com/en/download/index.jsp" + SectionEnd Function GetJRE