Zbiór zmian 610
- Data:
- 2009-04-24 12:21:37 (17 years ago)
- Lokalizacja:
- trunk/BazaReklam
- Pliki:
-
- 2 zmodyfikowane
-
FormBadVer.cs (zmodyfikowane) (3 diffs)
-
app.config (zmodyfikowane) (2 diffs)
Legenda:
- Bez zmian
- Dodane
- Usunięte
-
trunk/BazaReklam/FormBadVer.cs
r599 r610 12 12 public partial class FormBadVer : Form 13 13 { 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"; 15 15 readonly string _zipUrl = ConfigurationHelper.GetSettingByKey("Application.Update.Zip") ?? "http://www.infocity.pl/baza_reklam/update/BazaReklam.zip"; 16 16 … … 28 28 { 29 29 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"; 34 32 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"); 42 37 } 43 38 … … 58 53 private void StartUpdater() 59 54 { 60 string updater = Environment.CurrentDirectory + "\\ Updater.exe";55 string updater = Environment.CurrentDirectory + "\\BazaReklam.Updater.exe"; 61 56 Cursor = Cursors.Default; 62 57 button1.Cursor = Cursors.Default; -
trunk/BazaReklam/app.config
r607 r610 8 8 <connectionStrings> 9 9 <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" />12 10 <add name="BAZA_REKLAM" connectionString="Data Source=sql.ct.com.pl;Initial Catalog=BAZA_REKLAM;Persist Security Info=True" 13 11 providerName="System.Data.SqlClient" /> … … 38 36 <add key="Application.Pdf.Date" value="http://truck.pl/ogloszenia/_getFile.asp?pdfdate,{0},," /> 39 37 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" /> 41 39 <add key="Application.Update.Zip" value="http://www.infocity.pl/baza_reklam/update/BazaReklam.zip" /> 42 40 </appSettings>
