ravibpatel / autoupdater.net Goto Github PK
View Code? Open in Web Editor NEWAutoUpdater.NET is a class library that allows .NET developers to easily add auto update functionality to their classic desktop application projects.
License: MIT License
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
Would it be possible to extend the appcast xml to support a section like appSettings?
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".
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 ?
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
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 ?
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.
I can't find the information about which version of .NET Framework can use with the auto updater. Can you tell me about this ,please?
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?
Ensure the integrity of the xml file by signing the xml
Users can skip an update when the skip button is hidden by closing the window with the X control box.
I have fixed this in my fork and will push a pr shortly.
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)
************** 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.
`
For example, if the user first pressed to skip, and then still changed his mind and clicked again in the menu to call the update window, how to make it appear?
Hi,
i think that could be great to implement a way for check for the updates every (n) seconds(or minutes) and not only when the app start.
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.
Once download complete , autoupdater not close the running programm first. the update failed
The autoupdater just restat running programm, and it still old version , not update to latest version.
so why not close running program, then update, then start new program.
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
When file downloaded it have name 736uxFAZ-OE2KC1qAjgYqnDKmSkHnnnDvneBtZXw-sz5qFRYJSlxvTwsZliYO9TgA3WHH9s1JsE0Mkm7UN7SKA==
instead of Setup_client_otb_1.2.88.0.msi. So it cannot be installed.
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.
AutoUpdater.NET.pfx files is missing from ZipExtractor project. Should that file be there? or an other .pfx files is needed to be created?
Windows10 do not display update button.
Do you have any suggestion on how I can start use this feature?
The integrity of the downloaded update should be checked using a hash.
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.
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.
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
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?
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?
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)
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.
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
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.
@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!!!
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
Hi @ravibpatel, is there a way to manage exception when windows UAC prompts for elevated privileges but user cancels, say no password entered?
Thanks.
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,
I would like to contribute in :
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?
Can we specify the start directory path for extracting the saved directory path in my zip file when AutoUpdater starts extract?
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?
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>
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.
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!?
is it possible to update an windows service?
Add to the method DownloadUpdate(string[] args) to start updated application with arguments.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.