Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 15th May 2012, 22:01   #1
baldman
Junior Member
 
Join Date: May 2012
Posts: 1
JRE installation

I have inherited a project that uses NSIS to install a JRE depending on the OS bit version. The install fails with a "file not found" error. The section of code that does the install follows:

code:

DetailPrint "About to execute Java Runtime Installer...Please Wait as this will take a few minutes."
SetDetailsPrint LISTONLY
StrCpy $JRE_INSTALLER_FILE_NAME "$TEMP\jre-install.exe"
${IF} ${RunningX64}
File /oname=$JRE_INSTALLER_FILE_NAME resources\binaries\jre-6u29-windows-x64.exe
${else}
File /oname=$JRE_INSTALLER_FILE_NAME resources\binaries\jre-6u29-windows-i586.exe
${endif}
nsExec::ExecToStack '"$JRE_INSTALLER_FILE_NAME" /s /v /qn REBOOT=Supress AgreeToLicense=YES'
Pop $0
Pop $0
DetailPrint "$0"
SetDetailsPrint NONE
Delete "$JRE_INSTALLER_FILE_NAME"
SetDetailsPrint BOTH



When I run this with no installed jre, I get the following output:
code:
About to execute Java Runtime Installer...Please Wait as this will take a few minutes.
Extract: C:\Users\ABC-DE~1\AppData\Local\Temp\jre-install.exe... 100%
Error opening file C:\Users\ABC-DEFGH-IJK\AppData\LocalLow\Sun\Java\jre1.6.0_29\Java3BillDevices.jpg
Error: 2


However, if I copy that same jre install executable into that directory and run it, it runs fine. Any ideas? I’m at a loss
baldman is offline   Reply With Quote
Old 16th May 2012, 05:11   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,849
A 5 second google search for 'jre error 2 Java3BillDevices.jpg' gave this:
http://support.labtechsoftware.com/h...ic.php?t=16339
MSG is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump