1 |
+ |
filter mod-types from combobox with no nodes |
2 |
+ |
|
3 |
|
save current installed config |
4 |
|
|
5 |
|
install |
34 |
|
|
35 |
|
|
36 |
|
check .net>2.0: |
37 |
< |
bool CheckForRequiredSoftware(void) |
38 |
< |
{ |
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) |
37 |
> |
win: http://msdn.microsoft.com/en-us/kb/kbarticle.aspx?id=318785 |
38 |
> |
HKEY_LOCAL_MACHINE\Software\Microsoft\NET Framework Setup\NDP\v2.0.50727: dword "Install" = 1 |
39 |
|
system("start http://www.microsoft.com/downloads/details.aspx?familyid=0856eacb-4362-4b0d-8edd-aab15c5e04f5"); |
40 |
< |
RegCloseKey(hKey); |
41 |
< |
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 |
> |
|
41 |
> |
mac: |
42 |
|
fWhichMono = popen("which mono", "r"); |
43 |
|
fgets(chrWhichMono, sizeof(chrWhichMono), fWhichMono); |
44 |
|
pclose(fWhichMono); |
46 |
|
string::size_type loc = strWhichMono.find("mono", 0); |
47 |
|
|
48 |
|
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 |
– |
} |
49 |
|
|
50 |
|
|
51 |
|
|