Patch level :2.1 90

Files correlati     :ba1.exe, sys.z
Ricompilazione Demo : [ ]
Commento            :sistemata doppia conversione archivi in installazione (quando si installava SY) e problema, nella seconda conversione, del golem


git-svn-id: svn://10.65.10.50/trunk@12255 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2004-07-23 13:04:28 +00:00
parent 6a86a4ae1a
commit 43bba26df9
2 changed files with 11 additions and 9 deletions

View File

@ -85,6 +85,7 @@ class TInstaller_mask : public TArray_sheet
{ {
static TInstaller_mask* _curr_mask; static TInstaller_mask* _curr_mask;
bool _installed; // Flag per verificare se almeno un modulo e' stato installato bool _installed; // Flag per verificare se almeno un modulo e' stato installato
bool _sys_installed; //Flag per controllare l'installazione del modulo di sistema SY
enum { NONE = 0, NEW_MENU = 1, NEW_MENUPRG = 2, NEW_INSTALLER = 4, NEW_DLL = 8 }; enum { NONE = 0, NEW_MENU = 1, NEW_MENUPRG = 2, NEW_INSTALLER = 4, NEW_DLL = 8 };
int _reboot_program; int _reboot_program;
@ -126,7 +127,8 @@ protected:
void parse_internet_path(TString& http_server, TFilename& http_path) const; void parse_internet_path(TString& http_server, TFilename& http_path) const;
public: public:
bool installed() { return _installed;} bool installed() const { return _installed;}
bool sys_installed() const { return _sys_installed;}
bool autoload(); bool autoload();
bool install(const TString& module, int patch); bool install(const TString& module, int patch);
bool run_ba0close() const { return _reboot_program >= NEW_MENUPRG; } bool run_ba0close() const { return _reboot_program >= NEW_MENUPRG; }
@ -1114,7 +1116,7 @@ void TInstaller_mask::install_selection()
{ {
TString_array& arr = rows_array(); TString_array& arr = rows_array();
bool sys_installed = false; _sys_installed = false;
FOR_EACH_ARRAY_ROW(arr, r, row) if (checked(r)) FOR_EACH_ARRAY_ROW(arr, r, row) if (checked(r))
{ {
@ -1188,10 +1190,10 @@ void TInstaller_mask::install_selection()
} }
if (ok) if (ok)
{ {
_installed = TRUE; // Setta il flag di almeno un modulo installato _installed = true; // Setta il flag di almeno un modulo installato
if (modulo == "sy") //se ha installato il modulo 'sy' esce if (modulo == "sy") //se ha installato il modulo 'sy' esce
{ {
sys_installed = true; _sys_installed = true;
enable_row(r); //deve abilitare la riga di system senno' non la puo' uncheckare dopo enable_row(r); //deve abilitare la riga di system senno' non la puo' uncheckare dopo
uncheck(-1); //uncheck di tutti i moduli uncheck(-1); //uncheck di tutti i moduli
break; break;
@ -1205,7 +1207,7 @@ void TInstaller_mask::install_selection()
force_update(); //serve per togliere il check al modulo 'sy' quando viene installato force_update(); //serve per togliere il check al modulo 'sy' quando viene installato
if (installed()) if (installed())
{ {
if (sys_installed) if (_sys_installed)
{ {
warning_box("Modulo SY installato: altri moduli presenti dovranno essere installati successivamente"); warning_box("Modulo SY installato: altri moduli presenti dovranno essere installati successivamente");
send_key(K_SPACE, DLG_QUIT); send_key(K_SPACE, DLG_QUIT);
@ -1402,7 +1404,7 @@ bool TInstaller::create()
void TInstaller::main_loop() void TInstaller::main_loop()
{ {
_m->run(); _m->run();
if (_m->installed() && testdatabase()) // Almeno 1 modulo installato ? if (_m->installed() && !_m->sys_installed() && testdatabase()) // Almeno 1 modulo installato ?
{ {
// Lancia conversione: ba1 -0 -C -uADMIN // Lancia conversione: ba1 -0 -C -uADMIN
TExternal_app conversion("ba1 -0 -C"); TExternal_app conversion("ba1 -0 -C");
@ -1436,9 +1438,9 @@ bool TExtendedInstaller::create()
void TExtendedInstaller::main_loop() void TExtendedInstaller::main_loop()
{ {
_m->run(); _m->run();
if (_m->installed() && testdatabase()) // Almeno 1 modulo installato ? if (_m->installed() && !_m->sys_installed() && testdatabase()) // Almeno 1 modulo installato ?
{ {
// Lancia conversione: ba1 -0 -C -uPRASSI // Lancia conversione: ba1 -0 -C -uADMIN
TExternal_app conversion("ba1 -0 -C"); TExternal_app conversion("ba1 -0 -C");
conversion.run(); conversion.run();
} }

View File

@ -6,7 +6,7 @@ Descrizione=BASE
[sy] [sy]
Descrizione = Sistema Descrizione = Sistema
Versione = 20030201 Versione = 20030201
Patch = 26 Patch = 82
[ba] [ba]
Descrizione = Base Descrizione = Base