~eythian/emusicj/trunk

« back to all changes in this revision

Viewing changes to emusicj.nsi

  • Committer: Robin Sheat
  • Date: 2014-04-19 09:34:08 UTC
  • Revision ID: robin@kallisti.net.nz-20140419093408-wikkty3ou739kxg9
Update the java version handling to understand new java

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
; Java Stuff
54
54
!define JRE_VERSION "1.5"
55
55
!define JRE_VERSION2 "1.6"
56
 
!define JRE_URL "http://dlc.sun.com/jdk/jre-1_5_0_01-windows-i586-p.exe"
 
56
!define JRE_VERSION3 "1.7"
 
57
!define JRE_VERSION4 "1.8"
 
58
!define JRE_VERSION5 "1.9"
 
59
!define JRE_URL "http://javadl.sun.com/webapps/download/AutoDL?BundleId=86895&/jre-7u55-windows-i586.exe"
57
60
 
58
61
;--------------------------------
59
62
; The stuff to install
209
212
;--------------------------------
210
213
; Functions
211
214
Function GetJRE
212
 
        MessageBox MB_OK "The eMusic/J Download Manager uses Java 1.5, it will now \
 
215
        MessageBox MB_OK "The eMusic/J Download Manager requires Java 1.5 or above, it will now \
213
216
                         be downloaded and installed"
214
217
 
215
218
        StrCpy $2 "$TEMP\Java Runtime Environment.exe"
228
231
             "CurrentVersion"
229
232
  StrCmp $2 ${JRE_VERSION} done
230
233
  StrCmp $2 ${JRE_VERSION2} done
 
234
  StrCmp $2 ${JRE_VERSION3} done
 
235
  StrCmp $2 ${JRE_VERSION4} done
 
236
  StrCmp $2 ${JRE_VERSION5} done
231
237
  
232
238
  Call GetJRE
233
239