Quantcast
Channel: AutoUpdater.NET : Auto update library for VB.NET and C# Developer
Viewing all 342 articles
Browse latest View live

New Post: Stuck at Downloading Update

$
0
0
Only set OpenDownloadPage to true, if you want to open download page in web browser when user presses Update. You can force the user to download the update by handling AutoUpdater.CheckForUpdateEvent and check if IsUpdateAvailable property given by event arguments is true. If it's true then use DownloadUpdate() function to download the update.
private void FormMain_Load(object sender, EventArgs e)
{
    AutoUpdater.CheckForUpdateEvent += AutoUpdaterOnCheckForUpdateEvent;
    AutoUpdater.Start("URL of your XML file.");
}

private void AutoUpdaterOnCheckForUpdateEvent(UpdateInfoEventArgs args)
{
    if (args != null)
    {
        if (args.IsUpdateAvailable)
        {
            AutoUpdater.DownloadUpdate();
        }
    }
    else
    {
        MessageBox.Show(
               @"There is a problem reaching update server please check your internet connection and try again later.",
               @"Update check failed", MessageBoxButtons.OK, MessageBoxIcon.Error);
    }
}

Commented Issue: Referenced assembly 'AutoUpdater.NET' does not have a strong name [1293]

$
0
0
Hello,

as on some other CodePlex project I can see that you do not use strong name. Can you please sign your assembly? Especially for your NuGet distribution.

Thanks a lot,
Jan
Comments: ** Comment from web user: meygrino **

Hello,

is it really fixed? In Version 1.3.1 from NuGet the assembly is still not signed.
Am I missing something?

Regards
Michael

Created Unassigned: Local or Network update.xml is locked until Application shutdown [1747]

$
0
0
The XML document with the update information is locked when Autoupdater is used in a local network.

New Post: overwrite existing file?

New Post: Check registry key?

$
0
0
Hi
what about registry?
 RegistryLocation = !string.IsNullOrEmpty(appCompany)
                ? string.Format(@"Software\{0}\{1}\AutoUpdater", appCompany, AppTitle)
                : string.Format(@"Software\{0}\AutoUpdater", AppTitle);

            RegistryKey updateKey = Registry.CurrentUser.OpenSubKey(RegistryLocation);

            if (updateKey != null)
            {
                object remindLaterTime = updateKey.GetValue("remindlater");

                if (remindLaterTime != null)
                {
                    DateTime remindLater = Convert.ToDateTime(remindLaterTime.ToString(),
                        CultureInfo.CreateSpecificCulture("en-US"));

                    int compareResult = DateTime.Compare(DateTime.Now, remindLater);

                    if (compareResult < 0)
                    {
                        var updateForm = new UpdateForm(true);
                        updateForm.SetTimer(remindLater);
                        return;
                    }
                }
            }
"updatekey" always is null.
how can i update registry for last update?
thanks in advanced
sorry for my bad english

New Post: Check registry key?

$
0
0
UpdateKey is used to store remind later time. So if you don't click on it stays null.

New Post: Check registry key?

$
0
0
Ok
So how to increament "version" of update and existing application?

New Post: Check registry key?

$
0
0
Just update the Assembly Version from Project Properties.

New Post: Translate to spanish

$
0
0
HI Guys, is it there a chance you can send me to dgcapone@gmail.com the spanish version of AutoUpdater.net? Thanks a bunch. Daniel

Created Unassigned: "Unable to cast object of type 'System.Net.FileWebRequest' to type 'System.Net.HttpWebRequest'." [1760]

$
0
0
The above exception is happening every time I go to update. I tracked it down to the DownloadUpdateDialog method GetFileName( ) at line 67. I'm not intimately familiar with web requests but for some reason what is being generated by that line is a FileWebRequest rather than an HttpWebRequest, which is causing the exception. A seemingly simple fix but the FileWebResponse class doesn't have a status property which is what is driving the next bit of logic.

After reading up on the exception a bit I'm guessing it's because of my update XML. From what I read there should be an HTTP at the beginning of my URI or it's considered to be a file path.

<item>
<title>New version 1.5.0.0 is available for XXXXXX</title>
<version>1.5.0.0</version>
<url>\\<<ip address>>\WebData\staging\XXXXXX</url>
</item>

If that's not supported, you might just want to reject the XML entirely with a message that explains why it's being rejected.

New Post: No Display Errors !

$
0
0
Hi !

I Added that line and did Build , but no action and No Error Appears !

I am Using .Net 4 , may be wrong of this ?

New Post: No Display Errors !

$
0
0
I mistaken to input correct Address in , but it will be good to has it some error display as not found , no update , no access and ...

Tnx for your Great Project ..

Commented Unassigned: "Unable to cast object of type 'System.Net.FileWebRequest' to type 'System.Net.HttpWebRequest'." [1760]

$
0
0
The above exception is happening every time I go to update. I tracked it down to the DownloadUpdateDialog method GetFileName( ) at line 67. I'm not intimately familiar with web requests but for some reason what is being generated by that line is a FileWebRequest rather than an HttpWebRequest, which is causing the exception. A seemingly simple fix but the FileWebResponse class doesn't have a status property which is what is driving the next bit of logic.

After reading up on the exception a bit I'm guessing it's because of my update XML. From what I read there should be an HTTP at the beginning of my URI or it's considered to be a file path.

<item>
<title>New version 1.5.0.0 is available for XXXXXX</title>
<version>1.5.0.0</version>
<url>\\<<ip address>>\WebData\staging\XXXXXX</url>
</item>

If that's not supported, you might just want to reject the XML entirely with a message that explains why it's being rejected.
Comments: ** Comment from web user: igolets **

Please try
<url>\\<<ip address>>\WebData\staging\XXXXXX</url>

It works fine for me.

Commented Unassigned: "Unable to cast object of type 'System.Net.FileWebRequest' to type 'System.Net.HttpWebRequest'." [1760]

$
0
0
The above exception is happening every time I go to update. I tracked it down to the DownloadUpdateDialog method GetFileName( ) at line 67. I'm not intimately familiar with web requests but for some reason what is being generated by that line is a FileWebRequest rather than an HttpWebRequest, which is causing the exception. A seemingly simple fix but the FileWebResponse class doesn't have a status property which is what is driving the next bit of logic.

After reading up on the exception a bit I'm guessing it's because of my update XML. From what I read there should be an HTTP at the beginning of my URI or it's considered to be a file path.

<item>
<title>New version 1.5.0.0 is available for XXXXXX</title>
<version>1.5.0.0</version>
<url>\\<<ip address>>\WebData\staging\XXXXXX</url>
</item>

If that's not supported, you might just want to reject the XML entirely with a message that explains why it's being rejected.
Comments: ** Comment from web user: igolets **

Sorry, 2 " \ " chars should be at the beginning: \\\\<<ip address>>

New Post: System can not found the specified ..

$
0
0
Hi ,

After Download the Update .. update file can't copy update file to Program's folder and execute itself at there and show me a message that : could not load file or assembly 'Auto.Update.Net ...
.. The system cannot find the file specified .

Commented Unassigned: Could not load file or assembly 'AutoUpdater.NET [1313]

$
0
0
System.IO.FileNotFoundException: Could not load file or assembly 'AutoUpdater.NET, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. File name: 'AutoUpdater.NET, Version=1.2.0.0, Culture=neutral, PublicKeyToken=null'
Comments: ** Comment from web user: SharpSabre **

for 1.3.1 too ..

New Post: System can not found the specified ..

New Post: System can not found the specified ..

$
0
0
You should create the installer with two files and provide link of the installer in XML file. You can also use ILRepack or ILMerge to merge the assemblies in to one executable file.

New Post: System can not found the specified ..

$
0
0
It's Good Idea ,
but i want do less update for unnecessary files .. so think about to have somebody that have 3 files or more that each file has upper than 50mb :)

Created Unassigned: "Releae Notes" Typo [1764]

$
0
0
There's a pretty glaring typo in the latest version. I tried to fix the typo myself but I had some issues compiling it. It's a tiny issue but it's annoying me to no end. Hopefully it can be fixed quickly.
Viewing all 342 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>