Viewing Issue Advanced Details

ID 0002590 Category [DMDirc] Installer, uninstaller and launchers Severity minor
Reproducibility always Date Submitted 2009-06-01 20:29 Last Update 2010-07-11 21:11
Reporter MD87 Assigned To Zipplet View Status public
Priority normal Status assigned Resolution open
Platform Fixed in Version Target Version 0.6.5
Product Version Product Build
Summary 0002590: Installer reports java is incompatible when it's actually not installed
Description
Installer reports java is incompatible when it's actually not installed
Needs unit test no
Upstream Bug URL

Relationships

Notes

(0008944)
Dataforce (administrator)
2010-01-14 19:07
edited on: 2010-01-14 19:10

This makes no sense to me :/

After experimenting I have come up with:

Code that works:
    returncode := inttostr({$IFDEF FORCEJREDOWNLOAD}1{$ELSE}ExecAndWait(javaCommand+' -version'){$ENDIF});
    showmessage('The return code was: '+returncode, 'DMDirc Setup');
    if (returncode <> '0') then begin

Code that doesn't work:
    returncode := inttostr({$IFDEF FORCEJREDOWNLOAD}1{$ELSE}ExecAndWait(javaCommand+' -version'){$ENDIF});
    if (returncode <> '0') then begin


yay for shit languages.

(0008945)
Dataforce (administrator)
2010-01-14 19:10

In the working code the return code appears to be "4379332"

Add Note

Note

Issue History

Date Modified Username Field Change
2009-06-01 20:29 MD87 New Issue
2009-06-01 20:29 MD87 Status new => assigned
2009-06-01 20:29 MD87 Assigned To => Zipplet
2009-06-15 18:58 MD87 Needs unit test => no
2009-06-15 18:58 MD87 Category *Unsorted => Installer, uninstaller and launchers
2009-06-15 18:58 MD87 Target Version 0.6.3m1 => 0.6.3m2
2009-11-08 12:44 Greboid Target Version 0.6.3m2 => 0.6.3m3
2010-01-14 19:07 Dataforce Note Added: 0008944
2010-01-14 19:10 Dataforce Note Added: 0008945
2010-01-14 19:10 Dataforce Note Edited: 0008944
2010-03-06 21:34 Greboid Target Version 0.6.3 => 0.6.4
2010-07-11 21:11 MD87 Target Version 0.6.4 => 0.6.5