From d134b6800709ca1c62fa69f3954c72019b0b2d9e Mon Sep 17 00:00:00 2001 From: Dinesh Kumar Venkatasamy Date: Fri, 25 Jan 2019 15:16:53 +0530 Subject: [PATCH] - Fixed autoupdater download issue --- SoftwareInstaller/MainWindow.Designer.cs | 1 - SoftwareInstaller/MainWindow.cs | 27 ++++++++++++-------- SoftwareInstaller/Properties/AssemblyInfo.cs | 4 +-- SoftwareInstaller/VersionInfo.xml | 2 +- 4 files changed, 19 insertions(+), 15 deletions(-) diff --git a/SoftwareInstaller/MainWindow.Designer.cs b/SoftwareInstaller/MainWindow.Designer.cs index 31f0894..09f94bf 100644 --- a/SoftwareInstaller/MainWindow.Designer.cs +++ b/SoftwareInstaller/MainWindow.Designer.cs @@ -131,7 +131,6 @@ private void InitializeComponent() this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5); this.Name = "MainTab"; this.Text = "SoftwareInstaller"; - this.Load += new System.EventHandler(this.MainTab_Load); this.ResumeLayout(false); } diff --git a/SoftwareInstaller/MainWindow.cs b/SoftwareInstaller/MainWindow.cs index ce28326..2da2b8d 100644 --- a/SoftwareInstaller/MainWindow.cs +++ b/SoftwareInstaller/MainWindow.cs @@ -29,6 +29,21 @@ public partial class MainTab : Form public MainTab() { InitializeComponent(); + Load += new EventHandler(MainTab_Load); + } + + // Autoupdater configuration & initialization + private void MainTab_Load(object sender, EventArgs e) + { + //string versionInfoLink = "https://cdn.jsdelivr.net/gh/dineshKumar777/SilentSoftwareInstaller@latest/SoftwareInstaller/VersionInfo.xml"; + string versionInfoLink = "https://raw.githack.com/dineshKumar777/SilentSoftwareInstaller/master/SoftwareInstaller/VersionInfo.xml"; + + AutoUpdater.ShowSkipButton = false; + AutoUpdater.ShowRemindLaterButton = false; + AutoUpdater.OpenDownloadPage = false; + AutoUpdater.DownloadPath = Environment.CurrentDirectory; + + AutoUpdater.Start(versionInfoLink); } @@ -326,17 +341,7 @@ public bool CheckInstallationState(string registryAppNames, RegistryView regBit) } - // Autoupdater configuration & initialization - private void MainTab_Load(object sender, EventArgs e) - { - //string versionInfoLink = "https://cdn.jsdelivr.net/gh/dineshKumar777/SilentSoftwareInstaller@latest/SoftwareInstaller/VersionInfo.xml"; - string versionInfoLink = "https://raw.githack.com/dineshKumar777/SilentSoftwareInstaller/master/SoftwareInstaller/VersionInfo.xml"; + - AutoUpdater.ShowSkipButton = false; - AutoUpdater.ShowRemindLaterButton = false; - AutoUpdater.OpenDownloadPage = true; - - AutoUpdater.Start(versionInfoLink); - } } } \ No newline at end of file diff --git a/SoftwareInstaller/Properties/AssemblyInfo.cs b/SoftwareInstaller/Properties/AssemblyInfo.cs index 7f25108..c2e247f 100644 --- a/SoftwareInstaller/Properties/AssemblyInfo.cs +++ b/SoftwareInstaller/Properties/AssemblyInfo.cs @@ -32,5 +32,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.5")] -[assembly: AssemblyFileVersion("1.0.5")] +[assembly: AssemblyVersion("1.0.6")] +[assembly: AssemblyFileVersion("1.0.6")] diff --git a/SoftwareInstaller/VersionInfo.xml b/SoftwareInstaller/VersionInfo.xml index 4ed6820..1a9626c 100644 --- a/SoftwareInstaller/VersionInfo.xml +++ b/SoftwareInstaller/VersionInfo.xml @@ -1,6 +1,6 @@  + ]>