~eythian/emusicj/trunk

« back to all changes in this revision

Viewing changes to reggaecountry.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
188
191
;--------------------------------
189
192
; Functions
190
193
Function GetJRE
191
 
        MessageBox MB_OK "The Reggae Country Download Manager uses Java 1.5, it will now \
 
194
        MessageBox MB_OK "The Reggae Country Download Manager requires Java 1.5 or above, it will now \
192
195
                         be downloaded and installed"
193
196
 
194
197
        StrCpy $2 "$TEMP\Java Runtime Environment.exe"
207
210
             "CurrentVersion"
208
211
  StrCmp $2 ${JRE_VERSION} done
209
212
  StrCmp $2 ${JRE_VERSION2} done
 
213
  StrCmp $2 ${JRE_VERSION3} done
 
214
  StrCmp $2 ${JRE_VERSION4} done
 
215
  StrCmp $2 ${JRE_VERSION5} done
210
216
  
211
217
  Call GetJRE
212
218