Patch level :
Files correlati : Ricompilazione Demo : [ ] Commento : git-svn-id: svn://10.65.10.50/trunk@17035 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
de194a2350
commit
c6b4b0bc78
@ -472,8 +472,11 @@ bool CampoSetup::UnzipModule(const wxString& strPrgLocPath, const wxString& strS
|
||||
|
||||
bool ok = false;
|
||||
wxArrayString asFilesList;
|
||||
size_t uFilesToCopy;
|
||||
//..contando anche quanti sono e memorizzandoli in un array asFileList
|
||||
const size_t uFilesToCopy = wxDir::GetAllFiles(strSrc, &asFilesList, strModule+"*.zip");
|
||||
if(wxDir::Exists(strSrc))
|
||||
{
|
||||
uFilesToCopy = wxDir::GetAllFiles(strSrc, &asFilesList, strModule+"*.zip");
|
||||
if (uFilesToCopy > 0)
|
||||
{
|
||||
//ordina le patch per numero crescente ma mette davanti a tutte il pacco (sysinst1)
|
||||
@ -497,6 +500,7 @@ bool CampoSetup::UnzipModule(const wxString& strPrgLocPath, const wxString& strS
|
||||
//potrebbe sembrare assurdo un for, ma e' per futuri sottomoduli con numero > 1
|
||||
UpdateInstallIni(strWrk, strPrgLocPath + "/install.ini", strModule);
|
||||
}
|
||||
}
|
||||
|
||||
//Adesso puo' far ripartire il server di chiavi
|
||||
if (bLurch)
|
||||
@ -540,6 +544,8 @@ bool CampoSetup::CopyFilesAndDirs(const wxString& FilesListI, wxString strFileCu
|
||||
//metodo per copiare una directory e tutti i files che contiene
|
||||
void CampoSetup::CopyDir(const wxString& strSourceDir, const wxString& strDestDir) const
|
||||
{
|
||||
if (wxDir::Exists(strSourceDir))
|
||||
{
|
||||
if (!wxDir::Exists(strDestDir))
|
||||
wxMkdir(strDestDir);
|
||||
wxArrayString asFilesList;
|
||||
@ -550,6 +556,7 @@ void CampoSetup::CopyDir(const wxString& strSourceDir, const wxString& strDestDi
|
||||
wxString strFileDest = strDestDir + asFilesList[i].Mid(uFrom);
|
||||
CopiaFile(asFilesList[i], strFileDest);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//metodo per accoppare tutti i files di una directory
|
||||
@ -733,9 +740,12 @@ bool CampoSetup::InternetUpdateModule(const wxString& strLocalPath, const wxStri
|
||||
//Svuota,elimina e ricrea una directory temporanea di appoggio ove mettere i files delle patch da scompattare
|
||||
//E' necessaria questa operazione per non trovarsi ancora files di vecchie patch parcheggiati nella dir!
|
||||
const wxString strTempDir = wxFileName::GetTempDir() + "/setup/";
|
||||
if (wxDir::Exists(strTempDir))
|
||||
{
|
||||
EmptyOutDir(strTempDir); //deve svuotare la directory dai files per poterla eliminare!!!
|
||||
if (::wxRmdir(strTempDir)) //elimina la dir adesso vuota
|
||||
::wxMkDir(strTempDir); //la ricrea
|
||||
::wxRmdir(strTempDir); //elimina la dir adesso vuota
|
||||
}
|
||||
::wxMkDir(strTempDir); //la ricrea con i permessi dell'utente windows corrente!!
|
||||
|
||||
const wxString strTempFile = strTempDir + "httpdir.txt";
|
||||
if (HTTPGet(strTempFile, strWebPath))
|
||||
@ -875,6 +885,8 @@ void CampoSetup::NormalSetup()
|
||||
wxArrayString asDemoList;
|
||||
const wxString strSrc = GetSourceDir("campodemo");
|
||||
|
||||
if (wxDir::Exists(strSrc))
|
||||
{
|
||||
const size_t uFilesToCopy = wxDir::GetAllFiles(strSrc, &asDemoList);
|
||||
wxString strFileCurr;
|
||||
const size_t nPathLenght = strSrc.Len();
|
||||
@ -906,7 +918,7 @@ void CampoSetup::NormalSetup()
|
||||
//lanciare ba0.exe in uscita
|
||||
wxSetWorkingDirectory(strPrgLocPath);
|
||||
wxExecute("ba0");
|
||||
|
||||
}
|
||||
}
|
||||
else //tutti i casi normali (std,server,client,aggiornamento)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user