Patch level :10.0 setup

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :gestione path in caso di aggiornamento client con una vecchia 3.2


git-svn-id: svn://10.65.10.50/trunk@17782 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2008-12-03 11:10:55 +00:00
parent 7f8efcfe0a
commit b602d909da

View File

@ -823,9 +823,10 @@ bool CampoSetup::InternetUpdateModule(const wxString& strLocalPath, const wxStri
//--------------------------------------------------------------- //---------------------------------------------------------------
void CampoSetup::ClientUpdate() void CampoSetup::ClientUpdate()
{ {
wxFileName fn(m_strSetupPath, "install.ini"); wxFileName fn(m_strSetupPath);
fn.AppendDir(".."); fn.AppendDir("..");
fn.MakeAbsolute(); fn.MakeAbsolute();
fn.SetFullName("install.ini");
const wxString strLocalPath = fn.GetPath(); const wxString strLocalPath = fn.GetPath();
wxString strRemotePath; wxString strRemotePath;
{ {
@ -844,9 +845,10 @@ void CampoSetup::ClientUpdate()
//----------------------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------------------
void CampoSetup::DiskUpdate() void CampoSetup::DiskUpdate()
{ {
wxFileName fn(m_strSetupPath, "install.ini"); wxFileName fn(m_strSetupPath);
fn.AppendDir(".."); fn.AppendDir("..");
fn.MakeAbsolute(); fn.MakeAbsolute();
fn.SetFullName("install.ini");
const wxString strLocalPath = fn.GetPath(); const wxString strLocalPath = fn.GetPath();
wxString strRemotePath; wxString strRemotePath;
{ {
@ -867,9 +869,10 @@ void CampoSetup::DiskUpdate()
void CampoSetup::InternetUpdate() void CampoSetup::InternetUpdate()
{ {
//install.ini locale dove setup.exe e' in esecuzione //install.ini locale dove setup.exe e' in esecuzione
wxFileName fn(m_strSetupPath, "install.ini"); wxFileName fn(m_strSetupPath);
fn.AppendDir(".."); fn.AppendDir("..");
fn.MakeAbsolute(); fn.MakeAbsolute();
fn.SetFullName("install.ini");
const wxString strLocalPath = fn.GetPath(); const wxString strLocalPath = fn.GetPath();
//quale e' il path web da cui aggiornarmi? //quale e' il path web da cui aggiornarmi?