From 2a308e1a05451b190ccc7abfdbe2873e42c77675 Mon Sep 17 00:00:00 2001 From: luca Date: Tue, 13 Jan 2009 11:47:33 +0000 Subject: [PATCH] Patch level :10.0 CD 210 Files correlati : Ricompilazione Demo : [ ] Commento :ulteriori modifiche per il cd multiproduttore git-svn-id: svn://10.65.10.50/trunk@18019 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- ba/ba1700.cpp | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/ba/ba1700.cpp b/ba/ba1700.cpp index 6d52e67db..25b64213e 100755 --- a/ba/ba1700.cpp +++ b/ba/ba1700.cpp @@ -1152,9 +1152,8 @@ bool TInstaller_mask::install(const TString& module, int patchlevel) if (ok) { { + update_install_ini(); //aggiorna diskpath e webpath TInstall_ini ini; - ini.set("DiskPath", get(F_PATH)); - ini.set("WebPath", get(F_WEB)); ini.set("Data", TDate(TODAY), module); ini.update_prices(ininame); } @@ -1301,6 +1300,7 @@ bool TInstaller_mask::web_handler(TMask_field& fld, KEY key) // Aggiorna l'install.ini con eventuali modifiche dell'utente. // Decisivo in caso di cambio path d'installazione +// Serve a setup void TInstaller_mask::update_install_ini() const { TInstall_ini ini; @@ -1582,6 +1582,19 @@ TInstaller_mask::TInstaller_mask() TFilename path = ini.get("DiskPath"); TFilename webpath = ini.get("WebPath"); + //se il webpath è vuoto o di test, propone quello in oem.ini; non ammette che possa essere proposto un path.. + //..di tipo test per impedire all'utonto di aggiornarsi da test prima di essere passato da release + if (webpath.empty() || webpath.find("test")) + { + TConfig oemini(CONFIG_OEM, "MAIN"); + const int oem = oemini.get_int("OEM", NULL, -1, -1); + if (oem >= 0) + { + TString8 para; para << "OEM_" << oem; + webpath = oemini.get("Web", para); + } + } + set(F_PATH, path); set(F_WEB, webpath); //..fine costruzione maschera di installazione