| 51 |
|
import net.oni2.aeinstaller.backend.mods.download.ModDownloaderListener; |
| 52 |
|
import net.oni2.aeinstaller.backend.oni.InstallProgressListener; |
| 53 |
|
import net.oni2.aeinstaller.backend.oni.Installer; |
| 54 |
+ |
import net.oni2.aeinstaller.backend.oni.OniSplit; |
| 55 |
|
import net.oni2.aeinstaller.gui.about.AboutDialog; |
| 56 |
|
import net.oni2.aeinstaller.gui.downloadwindow.Downloader; |
| 57 |
|
import net.oni2.aeinstaller.gui.modtable.DownloadSizeListener; |
| 349 |
|
model.revertSelection(); |
| 350 |
|
} |
| 351 |
|
|
| 352 |
+ |
@SuppressWarnings("unused") |
| 353 |
+ |
private void checkDotNet() { |
| 354 |
+ |
if (!OniSplit.isDotNETInstalled()) { |
| 355 |
+ |
HTMLLinkLabel hll = new HTMLLinkLabel(); |
| 356 |
+ |
String dlUrl = ""; |
| 357 |
+ |
switch (Settings.getPlatform()) { |
| 358 |
+ |
case WIN: |
| 359 |
+ |
switch (Settings.getArchitecture()) { |
| 360 |
+ |
case X86: |
| 361 |
+ |
dlUrl = "http://download.microsoft.com/download/c/6/e/c6e88215-0178-4c6c-b5f3-158ff77b1f38/NetFx20SP2_x86.exe"; |
| 362 |
+ |
break; |
| 363 |
+ |
case AMD64: |
| 364 |
+ |
dlUrl = "http://download.microsoft.com/download/c/6/e/c6e88215-0178-4c6c-b5f3-158ff77b1f38/NetFx20SP2_x64.exe"; |
| 365 |
+ |
break; |
| 366 |
+ |
} |
| 367 |
+ |
break; |
| 368 |
+ |
default: |
| 369 |
+ |
dlUrl = "http://www.go-mono.com/mono-downloads/download.html"; |
| 370 |
+ |
} |
| 371 |
+ |
hll.setText(bundle.getString("dotNetMissing.text").replaceAll("%1", |
| 372 |
+ |
String.format("<a href=\"%s\">%s</a>", dlUrl, dlUrl))); |
| 373 |
+ |
JOptionPane.showMessageDialog(this, hll, |
| 374 |
+ |
bundle.getString("dotNetMissing.title"), |
| 375 |
+ |
JOptionPane.ERROR_MESSAGE); |
| 376 |
+ |
exit(); |
| 377 |
+ |
} |
| 378 |
+ |
} |
| 379 |
+ |
|
| 380 |
|
@DoInBackground(progressMessage = "mandatoryFiles.title", cancelable = false, indeterminateProgress = false) |
| 381 |
|
private void checkMandatoryFiles(final BackgroundEvent evt) { |
| 382 |
|
TreeSet<Mod> mand = new TreeSet<Mod>(); |