diff --git a/ba/ba1700.cpp b/ba/ba1700.cpp index 25b64213e..0386f611a 100755 --- a/ba/ba1700.cpp +++ b/ba/ba1700.cpp @@ -1450,7 +1450,22 @@ void TInstaller_mask::install_selection() local_file.add(*row); remote_file = http_path; remote_file.add(*row); - file_copied = http_get(http_server, remote_file, local_file); //occhio alle maiuscole!!!! + //via web NON deve copiare oem.ini perchè NON deve poter cambiare il reseller (solo via disco sarà.. + //..possibile) + const bool is_oem_ini = xvt_str_compare_ignoring_case(remote_file.name(), "oem.ini") == 0; + if (is_oem_ini) + { + const int old_oem = xvt_sys_get_profile_int(local_file, "MAIN", "OEM", -1); + file_copied = http_get(http_server, remote_file, local_file); //occhio alle maiuscole!!!! + const int new_oem = xvt_sys_get_profile_int(local_file, "MAIN", "OEM", -1); + if (new_oem != old_oem) + { + TString4 str_oem; str_oem << ' ' << old_oem; + xvt_sys_set_profile_string(local_file, "MAIN", "OEM", str_oem); + } + } + else + file_copied = http_get(http_server, remote_file, local_file); //occhio alle maiuscole!!!! } } update_install_ini(); //aggiorna l'install.ini