Yes, I did compile from sources. foo.exe size is only 1 byte.
I downloaded the sources from
https://github.com/synhershko/NAppUpdate, opened NAppUpdate_Flat.sln with Visual Studio Ultimate 2013, built NAppUpdate.Framework project (release), referenced NAppUpdate.Framework.dll from my project and wrote a new function to check for updates.
public static void CheckForUpdatesCustom()
{
UpdateManager.Instance.UpdateSource = new NAppUpdate.Framework.Sources.SimpleWebSource("https://myPage.......com/myFeed.xml"); // provided is the URL for the updates feed UpdateManager.Instance.ReinstateIfRestarted(); // required to be able to restore state after app restart
UpdateManager.Instance.CheckForUpdates();
if (UpdateManager.Instance.UpdatesAvailable == 0)
{
MessageBox.Show("Your software is up to date");
}
else
{
DialogResult dr = MessageBox.Show(
string.Format("Updates are available to your software ({0} total). Do you want to download and prepare them now? You can always do this at a later time.",
UpdateManager.Instance.UpdatesAvailable),
"Software updates available",
MessageBoxButtons.YesNo);
if (dr == DialogResult.Yes)
{
UpdateManager.Instance.PrepareUpdates();
UpdateManager.Instance.ApplyUpdates(true, true, true);
}
}
}
Thanks for your quick response Itamar.