GithubHelp home page GithubHelp logo

ravibpatel / autoupdater.net Goto Github PK

View Code? Open in Web Editor NEW
3.0K 102.0 765.0 1.15 MB

AutoUpdater.NET is a class library that allows .NET developers to easily add auto update functionality to their classic desktop application projects.

License: MIT License

C# 98.45% Batchfile 1.55%
autoupdate desktop-application nuget c-sharp

autoupdater.net's People

Contributors

adhamawadhi avatar aeon512 avatar aslobodyanuk avatar bacca87 avatar cadesalaberry avatar chcwh avatar christophhornung avatar davidartifacts avatar dguder avatar fafa3711 avatar foxtes avatar fruchtzwerg94 avatar ghost1face avatar hellokitty avatar integral-llc avatar ishmaeel avatar josegomez avatar justbeingjustin avatar khengkiatsu avatar lemaik avatar lzong-tw avatar nikname avatar oleg-varlamov avatar paulluscastro avatar ptdev avatar ravibpatel avatar studentcyril avatar suraf avatar talagozis avatar tip2tail avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

autoupdater.net's Issues

New Configuration to block message when there is no Update

I included the AutoUpdater.Start() in my Window_Load Event. So it runs if the application starts.
But its not cool to get the Message "No Update there" everytime because the program starts.

Would be nice to have a Configuration like AutoUpdater.MessageForNoUpdate = false; which is true for default.

To prevent getting MessageBox of "No Update there, you have the newest version".

Zip file is not extracted

After finished download the zip file, it just opens the zip file without extracting.
I am using AutoUpdater from Nuget for a WPF application. Am I missing something ?

Replace XML with an Interface to get needed info

Using XML is good, but what if I have already a REST service that gives me JSON instead, even in a different format. Why not use an interface to be implemented by the application developer to query his server in the way he wants? That would create more flexibility.
In my case, I have control over the WinForms app, but not on the REST service, and there is no way the service to be changed. As such I cannot use the library.
Any ideas?
Thx

Application ZipExtractor.exe update without Admin privileges

When i'm trying to update App on another computer, we need to put administrator credentials on update process when ZipExtractor.exe wants to run, everything else works great, but those blocks our solution

any suggestions how to get around it ?

Force an update?

Is there a way to force updates on the application? As in, remove the remind me later button and make it so they cannot use the program unless they update. At this point if I happen to accidentally click remind me later or skip there is no way to get the update until I send a newer version out.

Auto-Updater Does Not OverWrite File

From within Visual Studio I ran the command Install-Package Autoupdater.NET.Official and have added a reference to AutoUpdate.Net.dll

When I run my win form by using the command AutoUpdater.Start("http://testhelptest/AutoUpdater.xml"); i get a pop-up display informing me there is a new version. I click Update and the new version begins to download, is succesfully downloaded and the current version closes.

However, this new version never updates the current version. I remain on the old version - the over write never occurs.

What is going on with this?

Acess denied to Temp.

Hello. This is error I encounter. Tried to launch application as admin. Nothing changed.

`See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.UnauthorizedAccessException: Access to the path 'C:\Users\Emiel\AppData\Local\Temp\ZipExtractor.exe' is denied.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.File.InternalWriteAllBytes(String path, Byte[] bytes, Boolean checkHost)
at System.IO.File.WriteAllBytes(String path, Byte[] bytes)
at AutoUpdaterDotNET.DownloadUpdateDialog.OnDownloadComplete(Object sender, AsyncCompletedEventArgs e) in C:\Users\Ravi Patel\Documents\AutoUpdater.NET\AutoUpdater.NET\DownloadUpdateDialog.cs:line 65
at System.Net.WebClient.OnDownloadFileCompleted(AsyncCompletedEventArgs e)
at System.Net.WebClient.DownloadFileOperationCompleted(Object arg)

************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2110.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll

BF2AutoUpdater
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Emiel/Documents/Visual%20Studio%202017/Projects/BF2AutoUpdater/BF2AutoUpdater/bin/Release/BF2AutoUpdater.exe

PresentationFramework
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2102.0
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll

WindowsBase
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2102.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll

System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2102.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll

System
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2110.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

PresentationCore
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2102.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll

System.Xaml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2102.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll

System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2102.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

AutoUpdater.NET
Assembly Version: 1.4.3.0
Win32 Version: 1.4.3.0
CodeBase: file:///C:/Users/Emiel/Documents/Visual%20Studio%202017/Projects/BF2AutoUpdater/BF2AutoUpdater/bin/Release/AutoUpdater.NET.DLL

PresentationFramework.Aero2
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero2/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero2.dll

System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2110.0 built by: NET47REL1LAST
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

UIAutomationTypes
Assembly Version: 4.0.0.0
Win32 Version: 4.7.2046.0 built by: NET47REL1
CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

`

Pass Parameter from old version to new version

I saved my connectionString to a MySQL Database in app.config.
Settings.Default.Upgrade() only upgrades the UserSettings but not the connectionString.

So I think giving the connectionString as Parameter when Update from old to new version would be fine.
But as I can see, there is noo function to pass Parameters to new version.

I guess it will be a good improvement.

Only show the update form when the tool form loads

hey is there a way t o load autoupdater from Form_Load without the regular form from the c# project?

i mean when i start my priojekt the regular form comes and the autoupdater form is behind them you know?

sry for my bad english

Wrong filename when downloaded.

Scaling problems

On hi dpi displays it exists problems with scaling Autoupdater windows. They are very small because use old Winforms technology. It is better to change winforms to WPF windows.

Console Debug to find errors

I've followed the class documentation and even some guides found on the web. However, when loading my c# wpf app, there is no update dialog. I want to know if there is a method to print on console, any errors. Thanks.

Language Files

Hello,
I was wondering if you guys can put all of the language folders under one folder. Also Is there a way to exclude any other language other than English so no other language folder shows up.
Thanks.

Code Error?

Hello.

I have an Error in AutoUpdater.cs.

if (runWorkerCompletedEventArgs.Result is DateTime remindLaterTime) { SetTimer(remindLaterTime); } else

Visual Studio makes a Error. Required ) or {

Please Help for the Problem.

Thanks

Not working with TLS 1.2 Download Source .Net 4.0

Hello,

your Package seems currently not be able to connect to a HTTPS TLS 1.2 Source when used in .Net Framework 4.0.

I had to include the following lines of code to make it work:

   public const SslProtocols _Tls12 = (SslProtocols)0x00000C00;
    public const SecurityProtocolType Tls12 = (SecurityProtocolType)_Tls12;

ServicePointManager.SecurityProtocol = Tls12;

I don't think i can place this code outside of DLL into my main Application, can I?

Update form syntax error

Hey, i have visual studio 2015, on UpdateForm.cs, line 43 you have this:

        public sealed override string Text
        {
            get => base.Text; 
            set => base.Text = value; 
        }

and my vs get an syntax error i change for this:

        public sealed override string Text
        {
            get { return base.Text; }
            set { base.Text = value; }
        }

Is my VS out of date?

VB - Autoupdate.start does nothing in current nuget

So I guess I'm being really dumb here but I've installed the nuget for 1.4.3 and created a new form in my application which has a label and button. The form has an "Imports AutoUpdaterDotNET" statement at the top and then this code

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click AutoUpdater.OpenDownloadPage = True AutoUpdater.Start("https://codctk.000webhostapp.com/downloads/codctksetup/autoupdate.xml") End Sub

When you click that button nothing happens. What am I doing wrong here?

For reference this is my autoupdate.xml

<?xml version="1.0" encoding="utf-8" ?> <item> <version>1.0.6475.10400</version> <url>https://codctk.000webhostapp.com/downloads/codctksetup/codctksetup.zip</url> <changelog></changelog> <mandatory>True</mandatory> </item>

(crappy code tags are crappy)

Downloads but doesn't install

Hi Guys,

I have an issue where it detects the new update, downloads and closes the main app/program but after the download the old app just reopens again. The new version never gets installed.

Silent update

Is it possible to perform a silent update, without the need for user interaction?

Typically that is feasible using a batch file with the following command:

msiexec /i file.msi /q

Many thanks

UseLatestIE exception when used from unmanaged process

I am using AutoUpdater.NET from a Microsoft Excel add-in and the UseLatestIE function is throwing an exception because Assembly.GetEntryAssembly() is returning NULL. This behaviour is described on MSDN: https://msdn.microsoft.com/en-us/library/system.reflection.assembly.getentryassembly

P.S. overriding this registry key by default might not be a good idea; it could interfere with applications that are already setting this to force a specific version.

can you add a exit delegate?

@ravibpatel thank you for a good updater.

because when my program using the function , it's crash. i don't know why.
so i changed your program for my logic exit.
i add a delegate function to resolve my problem.

private static void Exit()
{
if (ExitEvent != null)
{
ExitEvent();
}
else{.........................................}
}

thanks!!!

Issue with virtual directory

Hello!
I would like to start by thanking you for such a great piece to update software
I am more a website guy, but my boss asked me for a software...so i did a software
I have created a virtual directory on one of our server and put the xml needed for AutoUpdater.NET

<?xml version="1.0" encoding="UTF-8"?>
<item>
    <version>2.0.0.0</version>
    <url>http://localhost:8080/setup.exe</url>
    <mandatory>true</mandatory>
</item>

and in my Window_Loaded event i put :
AutoUpdater.Start("http://catalogue.groupeep.com:8080/version.xml");
my software is a WPF working in MVVM
(catalogue.groupeep.com is a redirection of a private site on our servers)

All work good until i try to update my soft.
When i open my soft, the popup telling me to update do show up.
When i click Update, nothing happen. Well something happen but the popup freeze at some point.
I tried to replace the setup.exe with the .msi that my installer give me.
I have created the installer with this:
https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.MicrosoftVisualStudio2015InstallerProjects

can you help me?
did i missed something?
Thank you for your time

UAC exception management

Hi @ravibpatel, is there a way to manage exception when windows UAC prompts for elevated privileges but user cancels, say no password entered?

Thanks.

Download crashes,

Hi Ravi, after correctly configuring according to your documentation, when user clicks to update my app, The download progress bar appears to be downloading but at 75% it crashes the app.

What can be done or how can I fix what is wrondone in my code.
I've already set method ReportErrors as true. .NET framework ver 4.5.2.

Thanks,

Allow dynamic version numbers - Feature request

I'm working on an application that uses a technique to auto increment the version number every time it gets built. This does mean the version number is little random but it is consistently increasing from 1.0.0.0. It also means that I have no idea what it will be before it is built.

Currently AutoUpdater.NET, if I have understood the guide correctly, only supports hard coded version numbers in it's config xml. Would it be possible to allow for a variable like $(AssemblyVersion) which grabs the version number from the compiler at build time?

Caching problem

I just saw a strange bug, in particular when I do this:

 AutoUpdater.Start("some url");

the application doesn't detect the update version, yesterday all was working good. So I just tried to add:

 AutoUpdater.Start("some url?" + Guid.NewGuid());

and the update is now available again, so I guess this is a cache issue, not?

Downloading Multiple files

Would be nice to download mutliple files (a new .dll or something).

For example

<url>mainapp.exe</url>
<url>newdll.dll</url>

or
<url>mainapp.exe;newdll.dll</url>

After download finished Application will close and nothing happens

As the title says. The Message "oh theres a new update" is working and by clicking "Update" it will download the Update. After the Update is finished, the Application will close itself and thats it. In the folder where I started the Application, there is still the old Application. AutoUpdater.NET doesn't replace the old app with the new downloaded. And it also doesn't restart it after downloading.

I also tried to start my app with Admin Rights but got the same issue.

Check update on Startup

Hi,
i try to use this updater on startup.
But it doesn't work. The parent applicatio is starting and the downloadwindow ist closing.
Am i able to use this updater on startup of my application!?

Start arguments

Add to the method DownloadUpdate(string[] args) to start updated application with arguments.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.