This project has moved and is read-only. For the latest updates, please go here.

Feature Suggestion - Installer Parameters

Dec 3, 2014 at 8:01 AM
Edited Dec 4, 2014 at 5:11 PM
First off, I love this library! It's fast, and generally works without a hitch.

I really feel this library would be even better if you could define parameters within the appcast.xml for the installer that is being downloaded. The primary reason being that logic such as "/SILENT" (E.G. Inno Installers) could be added to the xml. Causing the program to automatically and silently update, leaving the user to only click "Update" before their newly updated program is ready for use.

I successfully implemented this myself a while ago, by creating a new entry in the appcast parser logic like so.

XmlNode appCastInstallParameters = item.SelectSingleNode("parameters");
InstallParameters = appCastInstallParameters != null ? appCastInstallParameters.InnerText : "";

Please do note, that I believe that this should be implemented separate for both 32 and 64 downloads. I.E. InstallParameters64, in case special or tweaked parameters are needed for the 64bit version of the installer.

Anyways, I hope you like this suggestion and I would really love to see it officially patched in. :)

Edit: I went ahead and put this together; outlining all the changes I made for this feature, and updated it to work with the newer url64 settings.
Jan 14, 2015 at 5:15 AM
You are right. I will implement this feature in next release.
Jan 29, 2015 at 7:48 AM
I have concern about this functionality. Most of the users who will use parameters gonna use it for silent installation but when AutoUpdater.NET finishes downloading update it executes the installer and closes itself. So there is no way for user to see the progress of installation.