Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
installer downloads Java to shared documents and creates a shortcut on the desktop in case user is no admin
lotusf30f976f2dcc
diff --git a/yacy.nsi b/yacy.nsiindex 272c717df..30b648959 100755--- a/yacy.nsi+++ b/yacy.nsi@@ -121,15 +121,28 @@ Section "Uninstall"SectionEndFunction GetJRE-; based on http://nsis.sourceforge.net/Simple_Java_Runtime_Download_Script- MessageBox MB_OK "YaCy uses Java ${JRE_VERSION6}. It will now be downloaded and installed."-- StrCpy $2 "$TEMP\Java Runtime Environment.exe"+; based on http://nsis.sourceforge.net/Simple_Java_Runtime_Download_Script+ MessageBox MB_OK "YaCy uses Java ${JRE_VERSION6}. \+ It will now be downloaded and installed."++ userInfo::getAccountType+ Pop $0+ StrCmp $0 "Admin" +3+ MessageBox MB_ICONEXCLAMATION "You need to install Java on Administrator privileges. \+ It will now be downloaded to the shared documents folder. \+ YaCy won't run without Java."++ SetShellVarContext all+ StrCpy $2 "$DOCUMENTS\Java Runtime Environment (install for YaCy).exe"+ SetShellVarContext currentnsisdl::download /TIMEOUT=30000 ${JRE_URL} $2Pop $R0 ;Get the return valueStrCmp $R0 "success" +3MessageBox MB_OK "Download failed: $R0"Return+ StrCmp $0 "Admin" +4+ CreateShortCut "$DESKTOP\Install Java for YaCy.lnk" "$2"+ Return ; don't delete if not adminExecWait $2Delete $2FunctionEnd