Patch level :10.0 setup

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
Sistemato problea di ordine di aggiornamento delle patch del modulo SR (andava a caso anzichè partire dal pacco e salire verso la patch più alta)


git-svn-id: svn://10.65.10.50/trunk@20322 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2010-04-12 09:29:43 +00:00
parent 193e2e33db
commit 57c6ef1c34
3 changed files with 29 additions and 7 deletions

View File

@ -443,6 +443,11 @@ bool CampoSetup::CreateAutostartMode(const LurchMode iSrvAutostartMode, const wx
case lm_autostart: case lm_autostart:
{ {
CreateIcon(CSIDL_COMMON_STARTUP, strExe, "lurch"); CreateIcon(CSIDL_COMMON_STARTUP, strExe, "lurch");
const long lExec = wxExecute(strExe.GetFullPath(), wxEXEC_ASYNC);
if (lExec > 0)
MessageBox("Gestore delle autorizzazioni avviato");
else
ErrorBox("Impossibile avviare il gestore delle autorizzazioni");
} }
break; break;
default: default:
@ -461,9 +466,9 @@ static int PatchCompare(const wxString& first, const wxString& second)
const wxFileName fn2(second); const wxFileName fn2(second);
const wxString strName1 = fn1.GetName().Lower(); const wxString strName1 = fn1.GetName().Lower();
const wxString strName2 = fn2.GetName().Lower(); const wxString strName2 = fn2.GetName().Lower();
if (strName1 == "syinst1") if (strName1.Mid(2, 4) == "inst")
return -1; return -1;
if (strName2 == "syinst1") if (strName2.Mid(2, 4) == "inst")
return 1; return 1;
return strName1.CompareTo(strName2); return strName1.CompareTo(strName2);
@ -886,7 +891,11 @@ void CampoSetup::DiskUpdate()
strRemotePath = iniLocalInstall.Get("DiskPath"); strRemotePath = iniLocalInstall.Get("DiskPath");
} }
//aggiornamento dei moduli SY ed SR da disco
//il modulo SY va aggiornato comunque
DiskUpdateModule(strLocalPath, strRemotePath, "sy"); DiskUpdateModule(strLocalPath, strRemotePath, "sy");
//il modulo SR va aggiornato solo se usato (si sta aggiornando il cpu con il gestore delle chiavi)
if (m_bLurchWasRunning)
DiskUpdateModule(strLocalPath, strRemotePath, "sr"); DiskUpdateModule(strLocalPath, strRemotePath, "sr");
wxSetWorkingDirectory(strLocalPath); wxSetWorkingDirectory(strLocalPath);
@ -914,7 +923,10 @@ void CampoSetup::InternetUpdate()
} }
//aggiornamento dei moduli SY e SR via web //aggiornamento dei moduli SY e SR via web
//il modulo SY va aggiornato comunque
InternetUpdateModule(strLocalPath, strRemotePath, "sy"); InternetUpdateModule(strLocalPath, strRemotePath, "sy");
//il modulo SR va aggiornato solo se usato (si sta aggiornando il cpu con il gestore delle chiavi)
if (m_bLurchWasRunning)
InternetUpdateModule(strLocalPath, strRemotePath, "sr"); InternetUpdateModule(strLocalPath, strRemotePath, "sr");
//lanciare ba1.exe -6 in uscita //lanciare ba1.exe -6 in uscita
@ -1250,8 +1262,11 @@ void CampoSetup::NormalSetup()
CampoIniOem.Set("OEM", nOldOem); CampoIniOem.Set("OEM", nOldOem);
//..Fine dell'aggiornamento della cartella setup //..Fine dell'aggiornamento della cartella setup
UnzipModule(strPrgLocPath, strPrgCDPath, "sy"); //scmpoattamento dei moduli e delle patch che eventualmente trova su CD per quanto riguarda i moduli SY..
UnzipModule(strPrgLocPath, strPrgCDPath, "sr"); UnzipModule(strPrgLocPath, strPrgCDPath, wxString("sy"));
//..ed SR ma solo se richiesto in fase di installazione
if (bInstallLurch)
UnzipModule(strPrgLocPath, strPrgCDPath, wxString("sr"));
} }

View File

@ -330,6 +330,12 @@ bool ErrorBox(const wxString str)
return false; return false;
} }
bool MessageBox(const wxString str)
{
wxMessageBox(str, APPNAME, wxOK | wxICON_INFORMATION);
return false;
}
bool WarningBox(const wxString str) bool WarningBox(const wxString str)
{ {
wxMessageBox(str, APPNAME, wxOK | wxICON_EXCLAMATION); wxMessageBox(str, APPNAME, wxOK | wxICON_EXCLAMATION);

View File

@ -67,6 +67,7 @@ public:
//metodi generici //metodi generici
//finestre messaggio,errore,ecc... //finestre messaggio,errore,ecc...
bool ErrorBox(const wxString str); bool ErrorBox(const wxString str);
bool MessageBox(const wxString str);
bool WarningBox(const wxString str); bool WarningBox(const wxString str);
bool YesNoBox(const wxString str); bool YesNoBox(const wxString str);