Patch level :10.0 486

Files correlati     :
Ricompilazione Demo : [ ]
Commento            :
 0001487: Installazione patch
Descrizione  i tecnici presenti dal cliente (nella fattispecie Imballaggi Effe Emme e Pharmatex) mi segnalano che installando le patch oltre la 468 dal lato client viene segnalato errore sul modulo delle vendite in quanto manca il file EFTBBNP.
Poichè da lato client non è possibile modificare l'elenco dei moduli da caricare l'utente difficilmente riesce a bypassare questo errore.


git-svn-id: svn://10.65.10.50/trunk@19516 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
luca 2009-10-27 10:50:29 +00:00
parent 66b09a9114
commit d426f08f4a
2 changed files with 13 additions and 8 deletions

View File

@ -1255,18 +1255,23 @@ bool TInstaller_mask::install(const TString& module, int patchlevel)
src = path;
src.add(dst);
const int reboot = needs_reboot(dst);
if ((reboot & NEW_SYS)!=0 && dst.exist())
if ((reboot & NEW_SYS) != 0 && dst.exist())
{
dst.rtrim(1);
dst << '_';
}
//copia il file dalla dir sorgenti
ok = copy_file(src, dst);
if (ok && is_zip_file(src))
aga_unzip(src, dst.path());
if (ok)
{
if (ok && is_zip_file(src))
aga_unzip(src, dst.path());
if (ok && reboot != NONE)
_reboot_program |= reboot;
if (ok && reboot != NONE)
_reboot_program |= reboot;
}
else //se non riesce chiede se proseguire ugualmente
ok = yesno_box(TR("Continuare ugualmente ?"));
cancelled = pi.iscancelled();
}

View File

@ -221,8 +221,8 @@ void TKlarkKent_app::main_loop()
const bool custom_app = rep2app(report_name, appname, desc);
const TString& cust_cmd = cmd2name(appname);
const TString& this_cmd = cmd2name(argv(0), argv(1));
if (custom_app && (cust_cmd != this_cmd))
{
if (custom_app && (cust_cmd != this_cmd)) //il contenuto dell && serve ad evitare spiacevoli infinite esecuzioni..
{ //..e conseguenti forzati spegnimenti del computer
appname << ' ' << report_name;
if (vars.items() > 0)
{