Changeset 500 for AE/Installer/trunk/source/aeinstallerapp.cpp
- Timestamp:
- Mar 15, 2010, 12:31:14 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/Installer/trunk/source/aeinstallerapp.cpp
r487 r500 19 19 ////@end includes 20 20 21 extern int updateStatus; 22 extern bool installerJustUpdated; 21 23 Install_info_cfg currentAE, updateAE; 22 24 MainWindow* TheWindow; … … 111 113 } 112 114 113 bool installerJustUpdated = false; 114 int updateStatus = GetUpdateStatus(¤tAE, &updateAE, &installerJustUpdated); 115 if (updateStatus) // otherwise there's no update 115 if (updateStatus) // updateStatus was set when MainWindow::CreateControls() was called during initialization of the window 116 116 { 117 117 string updateMsg = "An update for the Anniversary Edition is available.\n"; // for some reason we can't set the initial value while using the '+' operator... 118 118 updateMsg = updateMsg + "Do you wish to update to Edition version " + updateAE.AEVersion + "?\n" + 119 "(Current version is " + currentAE.AEVersion + ")\n"; // ...so tack the rest on in a second command119 "(Current version is " + currentAE.AEVersion + ")\n"; // ...so we tack the rest on in a second command 120 120 wxMessageDialog* updateNotification; 121 121 … … 153 153 "you will be prompted to begin the installation."; 154 154 updateNotification = new wxMessageDialog(TheWindow, updateMsg.c_str(), "AE Installer Alert", wxYES_NO | wxICON_EXCLAMATION, wxDefaultPosition); 155 updateNotification->ShowModal();156 155 if (updateNotification->ShowModal() == wxID_YES) 157 156 { … … 166 165 case UPDATE_INST_REPL_ERR: // the Installer replacement failed, user has to do it :-( 167 166 updateMsg = "The Installer replacement process failed for some reason.\n"; 168 updateMsg = updateMsg + "Please quit, go into the folder Edition/Updates/" + strEUFN + "/install/ and drag the Installer to Edition/install/, " + 169 "replacing the current Installer application, then launch the new version."; 170 updateNotification = new wxMessageDialog(TheWindow, updateMsg.c_str(), "AE Installer Alert", wxOK | wxICON_EXCLAMATION, wxDefaultPosition); 171 updateNotification->ShowModal(); 172 TheWindow->Close(); 167 updateMsg = updateMsg + "In order for the update to continue, go into the folder Edition/updates/" + strEUFN + "/install/ and " + 168 "drag the Installer to Edition/install/, replacing the current Installer application, then launch the " + 169 "new version. Click Yes to quit."; 170 updateNotification = new wxMessageDialog(TheWindow, updateMsg.c_str(), "AE Installer Alert", wxYES_NO | wxICON_EXCLAMATION, wxDefaultPosition); 171 if (updateNotification->ShowModal() == wxID_YES) 172 TheWindow->Close(); 173 173 return true; 174 174 }
Note:
See TracChangeset
for help on using the changeset viewer.