!addplugindir Instdrv/NSIS/Plugins
; Definitions for Java 1.6 Detection
!define JRE_VERSION "1.6"
+!define JRE_ALTERNATE "1.7"
!define JRE_URL "http://javadl.sun.com/webapps/download/AutoDL?BundleId=52247&/jre-6u27-windows-i586-p.exe"
!define PRODUCT_NAME "Altus Metrum Windows Software"
"CurrentVersion"
StrCmp $2 ${JRE_VERSION} done
+ StrCmp $2 ${JRE_ALTERNATE} done
+
Call GetJRE
done:
SetOutPath $INSTDIR
File "altosui-fat.jar"
+ File "AltosLib.jar"
File "cmudict04.jar"
File "cmulex.jar"
File "cmu_time_awb.jar"
Delete "$INSTDIR\*.*"
RMDir "$INSTDIR"
+ ; Remove .inf file
+ Delete "$WINDIR\Inf\telemetrum.inf"
+
; Remove devices
InstDrv::InitDriverSetup /NOUNLOAD {4D36E96D-E325-11CE-BFC1-08002BE10318} AltusMetrumSerial
InstDrv::DeleteOemInfFiles /NOUNLOAD
; Remove shortcuts, if any
Delete "$SMPROGRAMS\AltusMetrum.lnk"
Delete "$DESKTOP\AltusMetrum.lnk"
+
SectionEnd