Migliorato supporto per installazione per postazione server.
Ora non propone erroneamente una installazione server su Windows 7/8 git-svn-id: svn://10.65.10.50/branches/R_10_00@22696 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
f9ce0db0d8
commit
f303d5be71
@ -1287,9 +1287,7 @@ void CampoSetup::NormalSetup()
|
|||||||
{
|
{
|
||||||
const LurchMode iSrvAutostartMode = m_pWizard->GetSrvAutostartMode();
|
const LurchMode iSrvAutostartMode = m_pWizard->GetSrvAutostartMode();
|
||||||
if (iSrvAutostartMode != lm_none)
|
if (iSrvAutostartMode != lm_none)
|
||||||
{
|
|
||||||
CreateAutostartMode(iSrvAutostartMode, strPrgLocPath);
|
CreateAutostartMode(iSrvAutostartMode, strPrgLocPath);
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1845,7 +1845,6 @@ OEM=8
|
|||||||
[8266]
|
[8266]
|
||||||
Owner=D.B.Service srl unipersonale
|
Owner=D.B.Service srl unipersonale
|
||||||
OEM=0
|
OEM=0
|
||||||
ps0920 -*=31-12-3000
|
|
||||||
[8274]
|
[8274]
|
||||||
Owner=DOPPIO ZERO S.R.L
|
Owner=DOPPIO ZERO S.R.L
|
||||||
OEM=1
|
OEM=1
|
||||||
@ -1938,6 +1937,7 @@ OEM=1
|
|||||||
[8352]
|
[8352]
|
||||||
ps0398 -0=31-12-3000
|
ps0398 -0=31-12-3000
|
||||||
Owner=Gianni Ferrari
|
Owner=Gianni Ferrari
|
||||||
|
ve2 -7=31-12-3000
|
||||||
po=31-03-2012
|
po=31-03-2012
|
||||||
OEM=0
|
OEM=0
|
||||||
[8355]
|
[8355]
|
||||||
@ -3384,6 +3384,9 @@ OEM=1
|
|||||||
[9009]
|
[9009]
|
||||||
Owner=CO.MA.RI.
|
Owner=CO.MA.RI.
|
||||||
OEM=1
|
OEM=1
|
||||||
|
[9013]
|
||||||
|
Owner=Anival
|
||||||
|
OEM=1
|
||||||
[9014]
|
[9014]
|
||||||
Owner=Transervice Europe
|
Owner=Transervice Europe
|
||||||
OEM=1
|
OEM=1
|
||||||
|
@ -985,7 +985,7 @@ CampoWizardPage5::CampoWizardPage5(wxWizard* parent) : CampoWizardPage(parent)
|
|||||||
strBody += wxT("I client possono essere installati solo dopo l'installazione del server!</p>");
|
strBody += wxT("I client possono essere installati solo dopo l'installazione del server!</p>");
|
||||||
|
|
||||||
//sistema multissesione remoto (win2003srv etc.)
|
//sistema multissesione remoto (win2003srv etc.)
|
||||||
if (nVersion >= W2003)
|
if (nVersion == W2003 || nVersion == W2008)
|
||||||
{
|
{
|
||||||
strBody += wxT("<p></p>");
|
strBody += wxT("<p></p>");
|
||||||
strBody += wxT("<p>E' stata rilevata una versione di Windows che consente sessioni remote (es. Windows 2008 Server)</p>");
|
strBody += wxT("<p>E' stata rilevata una versione di Windows che consente sessioni remote (es. Windows 2008 Server)</p>");
|
||||||
@ -1003,13 +1003,10 @@ CampoWizardPage5::CampoWizardPage5(wxWizard* parent) : CampoWizardPage(parent)
|
|||||||
asInstType.Add("Server");
|
asInstType.Add("Server");
|
||||||
asInstType.Add("Client");
|
asInstType.Add("Client");
|
||||||
|
|
||||||
int nDefault = nVersion < W2003 ? 0 : 1;
|
|
||||||
|
|
||||||
m_pRadioBox = new wxRadioBox(this, 501, "Selezionare il tipo di installazione", wxDefaultPosition,
|
m_pRadioBox = new wxRadioBox(this, 501, "Selezionare il tipo di installazione", wxDefaultPosition,
|
||||||
wxDefaultSize, asInstType, 0, wxRA_SPECIFY_ROWS);
|
wxDefaultSize, asInstType, 0, wxRA_SPECIFY_ROWS);
|
||||||
|
|
||||||
//setta il default a Standard
|
//setta il default a Standard
|
||||||
m_pRadioBox->SetSelection(nDefault);
|
|
||||||
GetSizer()->Add(m_pRadioBox);
|
GetSizer()->Add(m_pRadioBox);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -1127,6 +1124,7 @@ class CampoWizardPage7 : public CampoWizardPage
|
|||||||
protected:
|
protected:
|
||||||
DECLARE_EVENT_TABLE();
|
DECLARE_EVENT_TABLE();
|
||||||
virtual bool ForwardValidate();
|
virtual bool ForwardValidate();
|
||||||
|
virtual bool TransferDataToWindow();
|
||||||
void OnDirPick(wxCommandEvent& e);
|
void OnDirPick(wxCommandEvent& e);
|
||||||
void OnSrvClick(wxCommandEvent& e);
|
void OnSrvClick(wxCommandEvent& e);
|
||||||
|
|
||||||
@ -1157,15 +1155,29 @@ void CampoWizardPage7::OnDirPick(wxCommandEvent& e)
|
|||||||
void CampoWizardPage7::OnSrvClick(wxCommandEvent& e)
|
void CampoWizardPage7::OnSrvClick(wxCommandEvent& e)
|
||||||
{
|
{
|
||||||
//nome del server
|
//nome del server
|
||||||
wxWindow* pWnd = FindWindowById(e.GetId() + 1);
|
wxWindow* pWnd = FindControlById(e.GetId() + 1);
|
||||||
if (pWnd)
|
if (pWnd)
|
||||||
pWnd->Enable(e.IsChecked());
|
pWnd->Enable(e.IsChecked());
|
||||||
//tipo installazione server
|
//tipo installazione server
|
||||||
pWnd = FindWindowById(709);
|
pWnd = FindControlById(709);
|
||||||
if (pWnd)
|
if (pWnd)
|
||||||
pWnd->Enable(GetBool(705) || GetBool(707));
|
pWnd->Enable(GetBool(705) || GetBool(707));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool CampoWizardPage7::TransferDataToWindow()
|
||||||
|
{
|
||||||
|
wxWindow* pServer = FindControlById(705);
|
||||||
|
if (pServer)
|
||||||
|
{
|
||||||
|
const unsigned int dt = GetWizard().GetDongleType();
|
||||||
|
const bool bEnabled = dt == 1 || dt == 2;
|
||||||
|
pServer->Enable(bEnabled);
|
||||||
|
if (!bEnabled)
|
||||||
|
Set(705, false);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
bool CampoWizardPage7::ForwardValidate()
|
bool CampoWizardPage7::ForwardValidate()
|
||||||
{
|
{
|
||||||
//controllo esistenza directory vuota per i programmi in locale
|
//controllo esistenza directory vuota per i programmi in locale
|
||||||
@ -1211,7 +1223,7 @@ bool CampoWizardPage7::ForwardValidate()
|
|||||||
//..e loro modalita' di esecuzione
|
//..e loro modalita' di esecuzione
|
||||||
if (bInstAuth || bInstDict)
|
if (bInstAuth || bInstDict)
|
||||||
{
|
{
|
||||||
int nType = m_pRadioBox->GetSelection() + 1; //+1 perchè 0 corrisponde a lm_none
|
const int nType = m_pRadioBox->GetSelection() + 1; //+1 perchè 0 corrisponde a lm_none
|
||||||
GetWizard().SetSrvAutostartMode((LurchMode)nType);
|
GetWizard().SetSrvAutostartMode((LurchMode)nType);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -1247,7 +1259,7 @@ CampoWizardPage7::CampoWizardPage7(wxWizard* parent) : CampoWizardPage(parent)
|
|||||||
strBody += wxT("<u>Nel menu esecuzione automatica:</u> i programmi di gestione vengono eseguiti automaticamente al primo accesso di un utente al server di PRODUCT; usare questa modalita' solo nell'impossibilita' di utilizzare la precedente</p>");
|
strBody += wxT("<u>Nel menu esecuzione automatica:</u> i programmi di gestione vengono eseguiti automaticamente al primo accesso di un utente al server di PRODUCT; usare questa modalita' solo nell'impossibilita' di utilizzare la precedente</p>");
|
||||||
|
|
||||||
//se si ha un sistema multissesione remota (es. win2003srv ecc.)
|
//se si ha un sistema multissesione remota (es. win2003srv ecc.)
|
||||||
if (nVersion >= W2003)
|
if (nVersion == W2003 || nVersion == W2008)
|
||||||
{
|
{
|
||||||
strTitle = wxT("Installazione di tipo Terminal Server");
|
strTitle = wxT("Installazione di tipo Terminal Server");
|
||||||
strBody += wxT("<p>E' stata rilevata una versione di Windows che consente sessioni remote (es. Windows 2008 Server) ed è quindi possibile una installazione di questo tipo</p>");
|
strBody += wxT("<p>E' stata rilevata una versione di Windows che consente sessioni remote (es. Windows 2008 Server) ed è quindi possibile una installazione di questo tipo</p>");
|
||||||
@ -1297,11 +1309,6 @@ CampoWizardPage7::CampoWizardPage7(wxWizard* parent) : CampoWizardPage(parent)
|
|||||||
//terza riga della griglia
|
//terza riga della griglia
|
||||||
//check installa authoriz
|
//check installa authoriz
|
||||||
wxCheckBox* chAuthoriz = new wxCheckBox(this, 705, wxT("Installa il gestore delle autorizzazioni"));
|
wxCheckBox* chAuthoriz = new wxCheckBox(this, 705, wxT("Installa il gestore delle autorizzazioni"));
|
||||||
//e' obbligatorio installare authoriz in caso di terminal server!
|
|
||||||
if (nVersion >= W2003)
|
|
||||||
chAuthoriz->SetValue(true);
|
|
||||||
else
|
|
||||||
chAuthoriz->SetValue(false);
|
|
||||||
|
|
||||||
gbsSizer->Add(chAuthoriz, wxGBPosition(2, 1));
|
gbsSizer->Add(chAuthoriz, wxGBPosition(2, 1));
|
||||||
//server authoriz
|
//server authoriz
|
||||||
@ -1322,7 +1329,7 @@ CampoWizardPage7::CampoWizardPage7(wxWizard* parent) : CampoWizardPage(parent)
|
|||||||
//quinta riga della griglia
|
//quinta riga della griglia
|
||||||
//radiobutton con i tipi di installazione
|
//radiobutton con i tipi di installazione
|
||||||
wxArrayString asInstType;
|
wxArrayString asInstType;
|
||||||
if (nVersion >= W2003)
|
if (nVersion == W2003 || nVersion == W2008)
|
||||||
{
|
{
|
||||||
asInstType.Add("Come servizi (obbligatorio)");
|
asInstType.Add("Come servizi (obbligatorio)");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user