Skip to content

Commit

Permalink
- Fixed autoupdater download issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Dinesh Kumar Venkatasamy committed Jan 25, 2019
1 parent d9e6497 commit d134b68
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 15 deletions.
1 change: 0 additions & 1 deletion SoftwareInstaller/MainWindow.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 16 additions & 11 deletions SoftwareInstaller/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}


Expand Down Expand Up @@ -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);
}
}
}
4 changes: 2 additions & 2 deletions SoftwareInstaller/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
2 changes: 1 addition & 1 deletion SoftwareInstaller/VersionInfo.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE item [
<!ENTITY version_num "1.0.5">
<!ENTITY version_num "1.0.6">
<!-- .... -->
]>

Expand Down

0 comments on commit d134b68

Please sign in to comment.