Changeset 611 for AE/installer2/src
- Timestamp:
- Jan 14, 2013, 7:51:25 PM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r608 r611 52 52 import net.oni2.aeinstaller.backend.oni.InstallProgressListener; 53 53 import net.oni2.aeinstaller.backend.oni.Installer; 54 import net.oni2.aeinstaller.backend.oni.OniSplit; 54 55 import net.oni2.aeinstaller.gui.about.AboutDialog; 55 56 import net.oni2.aeinstaller.gui.downloadwindow.Downloader; … … 349 350 } 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 351 380 @DoInBackground(progressMessage = "mandatoryFiles.title", cancelable = false, indeterminateProgress = false) 352 381 private void checkMandatoryFiles(final BackgroundEvent evt) { -
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.properties
r608 r611 58 58 mandatoryFiles.title=Checking for mandatory files 59 59 mandatoryToolsInstall.title=Installing mandatory tools 60 61 dotNetMissing.title=.NET is not installed 62 dotNetMissing.text=.NET, which is required to use this tool, is not installed on this machine.<br>Please download and install it:<br>%1 63 -
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.yml
r608 r611 6 6 locationRelativeTo: null 7 7 defaultCloseOperation: doNothingOnClose 8 onWindowOpened: [ execDepotUpdate,checkMandatoryFiles,initialize,checkUpdates,focus]8 onWindowOpened: [checkDotNet,execDepotUpdate,checkMandatoryFiles,initialize,checkUpdates,focus] 9 9 onWindowClosing: [saveLocalData,exit] 10 10 iconImage: img.ae
Note:
See TracChangeset
for help on using the changeset viewer.