Changeset 594 for AE/installer2/doc


Ignore:
Timestamp:
Jan 1, 2013, 8:27:17 PM (12 years ago)
Author:
alloc
Message:

AEI2: .NET detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • AE/installer2/doc/AEI1-stuff_onisplit-commands.txt

    r593 r594  
     1filter mod-types from combobox with no nodes
     2
    13save current installed config
    24
     
    3335
    3436check .net>2.0:
    35 bool CheckForRequiredSoftware(void)
    36 {
    37 #ifdef WIN32
    38         // test for .NET 2.0 or higher
    39         HKEY hKey;
    40         if (!RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SOFTWARE\\Microsoft\\.NETFramework\\policy\\v2.0", 0L, KEY_READ , &hKey) == ERROR_SUCCESS)
    41         {
    42                 string dotnetMsg = "You don't have .NET 2.0 installed! .NET is a framework required by the Edition.\n";
    43                 dotnetMsg = dotnetMsg + "You can download it from:\n" +
    44                                                                 "http://gumby.oni2.net/dotnet\n" +
    45                                                                 "Please install .NET 2.0, then open this Installer again.\n\n" +
    46                                                                 "Would you like to open the download webpage?";
    47                 wxMessageDialog* DotNetDialogOfDeath = new wxMessageDialog(TheWindow, dotnetMsg.c_str(), "AE Installer Alert",
    48                                                                                                                                  wxYES_NO | wxICON_EXCLAMATION  , wxDefaultPosition);
    49                 if (DotNetDialogOfDeath->ShowModal() == wxID_YES)
     37win: http://msdn.microsoft.com/en-us/kb/kbarticle.aspx?id=318785
     38HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\NDP\v2.0.50727: dword "Install" = 1
    5039                        system("start http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5");
    51                 RegCloseKey(hKey);
    52                 return false;
    53         }
    54 #else // on Mac...
    55         // test for the third-party "mono" framework, because without it, we are up a creek
    56         FILE *fWhichMono = NULL;
    57         char chrWhichMono[32];
     40
     41mac:
    5842        fWhichMono = popen("which mono", "r");
    5943        fgets(chrWhichMono, sizeof(chrWhichMono), fWhichMono);
     
    6347       
    6448        if (loc == string::npos) // this means that "which mono" did not return a path leading to the mono binary -- abort! abort! abort!
    65         {
    66                 string monoMsg = "You don't have 'mono' installed! 'mono' is a command-line tool required by the Edition.\n";
    67                 monoMsg = monoMsg + "You can download it from: http://www.go-mono.com/mono-downloads/download.html (OS X 10.4+)\n" +
    68                                                         "or http://edt.oni2.net/AE/MonoFramework10.3.dmg (OS X 10.3)\n\n" +
    69                                                         "Please install 'mono', then open this Installer again.";
    70                 wxMessageDialog* MonoDialogOfDeath = new wxMessageDialog(TheWindow, monoMsg.c_str(), "AE Installer Alert", wxOK | wxICON_EXCLAMATION, wxDefaultPosition);
    71                 MonoDialogOfDeath->ShowModal();
    72                 return false; // it's quittin' time, Joe
    73         }
    74 #endif
    75         return true;
    76 }
    7749
    7850
Note: See TracChangeset for help on using the changeset viewer.