Zbiór zmian 610

Pokaż
Ignoruj:
Data:
2009-04-24 12:21:37 (17 years ago)
Autor:
marek
Opis:

re #165

Lokalizacja:
trunk/BazaReklam
Pliki:
2 zmodyfikowane

Legenda:

Bez zmian
Dodane
Usunięte
  • trunk/BazaReklam/FormBadVer.cs

    r599 r610  
    1212    public partial class FormBadVer : Form 
    1313    { 
    14         readonly string _updaterUrl = ConfigurationHelper.GetSettingByKey("Application.Update.Exe") ?? "http://www.infocity.pl/baza_reklam/update/updater.exe"; 
     14        readonly string _updaterUrl = ConfigurationHelper.GetSettingByKey("Application.Update.Exe") ?? "http://www.infocity.pl/baza_reklam/update/BazaReklam.Updater.exe"; 
    1515        readonly string _zipUrl = ConfigurationHelper.GetSettingByKey("Application.Update.Zip") ?? "http://www.infocity.pl/baza_reklam/update/BazaReklam.zip"; 
    1616 
     
    2828        { 
    2929            button1.Enabled = false; 
    30             Cursor = Cursors.WaitCursor; 
    31             button1.Cursor = Cursors.WaitCursor; 
    32             webClient.DownloadFileAsync(new Uri(_updaterUrl), Environment.CurrentDirectory + "\\Updater.exe"); 
    33             return; 
     30             
     31            string updater = Environment.CurrentDirectory + "\\BazaReklam.Updater.exe"; 
    3432 
    35             //TODO: Uncomment after every user will get updated version of the Updater 
    36             //string updater = Environment.CurrentDirectory + "\\Updater.exe"; 
    37  
    38             //if (System.IO.File.Exists(updater)) 
    39             //    StartUpdater(); 
    40             //else 
    41             //    webClient.DownloadFileAsync(new Uri(_updaterUrl), Environment.CurrentDirectory + "\\Updater.exe"); 
     33            if (System.IO.File.Exists(updater)) 
     34                StartUpdater(); 
     35            else 
     36                webClient.DownloadFileAsync(new Uri(_updaterUrl), Environment.CurrentDirectory + "\\BazaReklam.Updater.exe"); 
    4237        } 
    4338 
     
    5853        private void StartUpdater() 
    5954        { 
    60             string updater = Environment.CurrentDirectory + "\\Updater.exe"; 
     55            string updater = Environment.CurrentDirectory + "\\BazaReklam.Updater.exe"; 
    6156            Cursor = Cursors.Default; 
    6257            button1.Cursor = Cursors.Default; 
  • trunk/BazaReklam/app.config

    r607 r610  
    88  <connectionStrings> 
    99    <clear /> 
    10     <add name="BAZA_REKLAM_TEST" connectionString="Data Source=sql.ct.com.pl;Initial Catalog=BAZA_REKLAM_TEST;Persist Security Info=True" 
    11       providerName="System.Data.SqlClient" /> 
    1210    <add name="BAZA_REKLAM" connectionString="Data Source=sql.ct.com.pl;Initial Catalog=BAZA_REKLAM;Persist Security Info=True" 
    1311      providerName="System.Data.SqlClient" /> 
     
    3836    <add key="Application.Pdf.Date" value="http://truck.pl/ogloszenia/_getFile.asp?pdfdate,{0},," /> 
    3937 
    40     <add key="Application.Update.Exe" value="http://www.infocity.pl/baza_reklam/update/updater.exe" /> 
     38    <add key="Application.Update.Exe" value="http://www.infocity.pl/baza_reklam/update/BazaReklam.Updater.exe" /> 
    4139    <add key="Application.Update.Zip" value="http://www.infocity.pl/baza_reklam/update/BazaReklam.zip" /> 
    4240  </appSettings>