Patch level :

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :


git-svn-id: svn://10.65.10.50/trunk@15951 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2008-01-03 11:21:17 +00:00
parent f721c1e01a
commit 63230f9d1b
3 changed files with 26 additions and 10 deletions

View File

@ -235,11 +235,14 @@ bool CampoSetup::CreateAutostartMode(const LurchMode iSrvAutostartMode, const wx
//1) Eliminatore di precedenti servers installati come servizi
//cerca se non esiste per caso gia' da una precedente installazione..
//..non serve piu' a un cazzo ma si e' tenuto come prova in debug di lettura del registry!
wxString strValue = ReadLocalMachineRegistryKey("SYSTEM\\CurrentControlSet\\Services\\Lurch\\Parameters\\Application");
//elimina un eventuale servizio precedente (senno' col cavolo che lo riesce a modificare!)
//utilizza il programma instsrv.exe dentro la cartella servers installata
wxString strRemove = strSrvPath + "\\instsrv Lurch REMOVE";
const long lRemove = wxExecute(strRemove, wxEXEC_SYNC);
const wxString strValue = ReadLocalMachineRegistryKey("SYSTEM\\CurrentControlSet\\Services\\Lurch\\Parameters\\Application");
if (!strValue.IsEmpty())
{
//elimina un eventuale servizio precedente (senno' col cavolo che lo riesce a modificare!)
//utilizza il programma instsrv.exe dentro la cartella servers installata
wxString strRemove = strSrvPath + "\\instsrv Lurch REMOVE";
const long lRemove = wxExecute(strRemove, wxEXEC_SYNC);
}
//2) Eliminatore di precedenti servers installati come programmi in esecuzione automatica

View File

@ -306,7 +306,7 @@ unsigned short ServerLogin(int& year, wxString& strSrvName)
} //if(strSrvName.Is...
if (!strSrvName.IsEmpty())
serno = InquireServer(strSrvName, year, true);
serno = InquireServer(strSrvName, year, false);
return serno;
}

View File

@ -464,12 +464,12 @@ protected:
virtual bool ForwardValidate();
virtual bool TransferDataToWindow();
int DongleTest();
wxString DecodeString(const wxString& data);
int VersionYear();
void BuildKey(char* key);
public:
int DongleTest();
CampoWizardPage4(wxWizard* parent);
};
@ -1562,14 +1562,26 @@ void CampoWizard::SetDestinationPath(const wxString& path)
//..che sta in _strDestinationPath
if (_strDestinationPath.IsEmpty())
{
//installazione
if (GetInstDemoVersion())
wxWizardPageSimple::Chain(m_pPage[2], m_pPage[8]); //installazione DEMO
else
wxWizardPageSimple::Chain(m_pPage[3], m_pPage[4]); //installazione nuova normale
{
wxWizardPageSimple::Chain(m_pPage[2], m_pPage[3]); //installazione nuova normale
wxWizardPageSimple::Chain(m_pPage[3], m_pPage[4]);
}
}
else
{
wxWizardPageSimple::Chain(m_pPage[3], m_pPage[8]); //aggiornamento
//aggiornamento
CampoWizardPage4* page4 = (CampoWizardPage4*)m_pPage[3];
if (page4->DongleTest() != 0)
wxWizardPageSimple::Chain(m_pPage[2], m_pPage[8]); // chiave trovata
else
{
wxWizardPageSimple::Chain(m_pPage[2], m_pPage[3]); // chiave NON trovata
wxWizardPageSimple::Chain(m_pPage[3], m_pPage[8]);
}
}
}
@ -1593,7 +1605,7 @@ void CampoWizard::SetInstallationType(const InstallationType nType)
wxWizardPageSimple::Chain(m_pPage[7], m_pPage[8]); //dal client alla pagina riassuntiva
break;
case it_upgrade: //aggiornamento installazione precedente
wxWizardPageSimple::Chain(m_pPage[3], m_pPage[8]); //manda l'utente alla pagina riassuntiva
//wxWizardPageSimple::Chain(m_pPage[3], m_pPage[8]); //manda l'utente alla pagina riassuntiva
break;
default: //standard
//if demo
@ -1745,6 +1757,7 @@ CampoWizard::CampoWizard(wxWindow* pParent)
_bInstDemoVersion = false; //installa versione demo
_bInstUseAuth = false; //installa/usa server authoriz
_bInstUseDict = false; //installa/usa server diction
_iSrvAutostartMode = lm_none;//autostart dei servers
_bDesktopShortcut = false; //creazione link sul desktop
wxBitmap bitmap;