Patch level :4.0 setup
Files correlati : Ricompilazione Demo : [ ] Commento :finito trasferimento datidemo git-svn-id: svn://10.65.10.50/trunk@15593 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f563d16aa1
commit
b59d5f3593
@ -1022,7 +1022,7 @@ CampoWizardPage6::CampoWizardPage6(wxWizard* parent) : CampoWizardPage(parent)
|
||||
strBody += wxT("Il percorso di default (consigliato) e' <i>C:\\Campo</i> </p>");
|
||||
strBody += wxT("<p>Digitare nel campo <b>'Cartella Dati'</b> il percorso completo della cartella dove si desidera installare l'area dati. ");
|
||||
strBody += wxT("Il percorso di default (consigliato) e' <i>C:\\Campo\\dati</i> </p>");
|
||||
strBody += wxT("<p><b>Dati dimostrativi:</b> area dati precompilata per esemplificare il funzionamento del software. ");
|
||||
strBody += wxT("<p><b>Dati dimostrativi:</b> area dati precompilata per installazioni di tipo dimostrativo del funzionamento del software. ");
|
||||
strBody += wxT("Di norma <b>NON</b> vanno caricati nel caso di una normale installazione!</p>");
|
||||
SetHTMLText(strTitle, strBody);
|
||||
|
||||
@ -2358,7 +2358,9 @@ void CampoSetup::OnTimer(wxTimerEvent& WXUNUSED(e))
|
||||
//files dei dati standard! solo in caso di nuova installazione!!
|
||||
if (asFilesList[i].Lower().Find("\\dati\\") > 0)
|
||||
{
|
||||
if (bNewInstallation) //i DATI NON VANNO MAI installati in caso di aggiornamento!!!
|
||||
//i DATI NON VANNO MAI installati in caso di aggiornamento!!!
|
||||
//e nemmeno in caso si scelga di installare i dati demo (senno' sporca la dir dati e i datidemo non si installano)
|
||||
if (bNewInstallation && !bInstallDemoData)
|
||||
{
|
||||
strFileCurr = strDataPath;
|
||||
strFileCurr += asFilesList[i].Mid(nPathLenght + 5);
|
||||
@ -2426,7 +2428,7 @@ void CampoSetup::OnTimer(wxTimerEvent& WXUNUSED(e))
|
||||
strSourcePath.AppendDir("..");
|
||||
strSourcePath.AppendDir("datidemo");
|
||||
strSourcePath.MakeAbsolute();
|
||||
|
||||
//conta i files da copiare e si lancia nell'operazione di copiatura...
|
||||
const size_t uFilesToCopy = wxDir::GetAllFiles(strSourcePath.GetPath(), &asDataList);
|
||||
wxString strFileCurr;
|
||||
const size_t nPathLenght = strSourcePath.GetPath().Len();
|
||||
@ -2437,14 +2439,14 @@ void CampoSetup::OnTimer(wxTimerEvent& WXUNUSED(e))
|
||||
break;
|
||||
|
||||
asDataList[i].Lower();
|
||||
strFileCurr = strDataPath + "/";
|
||||
strFileCurr += asDataList[i].Mid(nPathLenght + 9);
|
||||
|
||||
strFileCurr = strDataPath;
|
||||
strFileCurr += asDataList[i].Mid(nPathLenght);
|
||||
|
||||
if (!strFileCurr.IsEmpty())
|
||||
{
|
||||
strFileCurr.MakeLower();
|
||||
const wxFileName strFileName(strFileCurr);
|
||||
//eventuali sottodirectory le crea (solo se hanno un nome)
|
||||
|
||||
const wxString strDir = strFileName.GetPath();
|
||||
if (!strDir.IsEmpty() && !wxDirExists(strDir))
|
||||
wxMkdir(strDir);
|
||||
|
Loading…
x
Reference in New Issue
Block a user