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:
parent
193e2e33db
commit
57c6ef1c34
@ -443,6 +443,11 @@ bool CampoSetup::CreateAutostartMode(const LurchMode iSrvAutostartMode, const wx
|
||||
case lm_autostart:
|
||||
{
|
||||
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;
|
||||
default:
|
||||
@ -461,9 +466,9 @@ static int PatchCompare(const wxString& first, const wxString& second)
|
||||
const wxFileName fn2(second);
|
||||
const wxString strName1 = fn1.GetName().Lower();
|
||||
const wxString strName2 = fn2.GetName().Lower();
|
||||
if (strName1 == "syinst1")
|
||||
if (strName1.Mid(2, 4) == "inst")
|
||||
return -1;
|
||||
if (strName2 == "syinst1")
|
||||
if (strName2.Mid(2, 4) == "inst")
|
||||
return 1;
|
||||
|
||||
return strName1.CompareTo(strName2);
|
||||
@ -886,8 +891,12 @@ void CampoSetup::DiskUpdate()
|
||||
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, "sr");
|
||||
//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");
|
||||
|
||||
wxSetWorkingDirectory(strLocalPath);
|
||||
wxExecute("ba1 -6 /uADMIN");
|
||||
@ -914,8 +923,11 @@ void CampoSetup::InternetUpdate()
|
||||
}
|
||||
|
||||
//aggiornamento dei moduli SY e SR via web
|
||||
//il modulo SY va aggiornato comunque
|
||||
InternetUpdateModule(strLocalPath, strRemotePath, "sy");
|
||||
InternetUpdateModule(strLocalPath, strRemotePath, "sr");
|
||||
//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");
|
||||
|
||||
//lanciare ba1.exe -6 in uscita
|
||||
wxSetWorkingDirectory(strLocalPath);
|
||||
@ -1037,7 +1049,7 @@ void CampoSetup::NormalSetup()
|
||||
} else
|
||||
if (strSourceFile.Find("/servers/") > 0) //che fare con i servers? copiare la directory...
|
||||
{
|
||||
if (bInstallLurch && !bInstallDemoVersion) //..ma solo se devi installare i servers
|
||||
if (bInstallLurch && !bInstallDemoVersion) //..ma solo se devi installare i servers
|
||||
{
|
||||
strFileCurr = strPrgLocPath;
|
||||
strFileCurr += "/servers";
|
||||
@ -1250,8 +1262,11 @@ void CampoSetup::NormalSetup()
|
||||
CampoIniOem.Set("OEM", nOldOem);
|
||||
//..Fine dell'aggiornamento della cartella setup
|
||||
|
||||
UnzipModule(strPrgLocPath, strPrgCDPath, "sy");
|
||||
UnzipModule(strPrgLocPath, strPrgCDPath, "sr");
|
||||
//scmpoattamento dei moduli e delle patch che eventualmente trova su CD per quanto riguarda i moduli SY..
|
||||
UnzipModule(strPrgLocPath, strPrgCDPath, wxString("sy"));
|
||||
//..ed SR ma solo se richiesto in fase di installazione
|
||||
if (bInstallLurch)
|
||||
UnzipModule(strPrgLocPath, strPrgCDPath, wxString("sr"));
|
||||
}
|
||||
|
||||
|
||||
|
@ -330,6 +330,12 @@ bool ErrorBox(const wxString str)
|
||||
return false;
|
||||
}
|
||||
|
||||
bool MessageBox(const wxString str)
|
||||
{
|
||||
wxMessageBox(str, APPNAME, wxOK | wxICON_INFORMATION);
|
||||
return false;
|
||||
}
|
||||
|
||||
bool WarningBox(const wxString str)
|
||||
{
|
||||
wxMessageBox(str, APPNAME, wxOK | wxICON_EXCLAMATION);
|
||||
|
@ -67,6 +67,7 @@ public:
|
||||
//metodi generici
|
||||
//finestre messaggio,errore,ecc...
|
||||
bool ErrorBox(const wxString str);
|
||||
bool MessageBox(const wxString str);
|
||||
bool WarningBox(const wxString str);
|
||||
bool YesNoBox(const wxString str);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user