There are two methods how to use it:

1) Call program with params:

UniversalUpdater.exe 1.25.3333 http://mojestranka.cz/aplikace_info.php?id=1f5r8d s

's' means that if new version isn't found or error occur no dialog will be shown (silent mode - fxp while starting app)

You can also use `xml` param if script is returning XML.

Here is example, how can it be called from your app:

 

public static void CheckForUpdates(bool Silent = true)
{
        if (File.Exists("UniversalUpdater.exe"))
        {
                Version InstalledVersion = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version;
                System.Diagnostics.Process uu = new System.Diagnostics.Process();
                uu.StartInfo.FileName = "UniversalUpdater.exe";
                uu.StartInfo.Arguments = " " + InstalledVersion + " http://devbook.cz/scripts/programs_version.php?uniqid=505b0c67d08e0" + (Silent ? " s" : "");
                uu.Start();
        }
}

 

2) Create `uu.ini` file:

 

1.25.3333
http://mywebsite.net/appinfo.php?id=1f5r8d
You can also specify if file on server is returning xml by adding "xml" keyword on another line

3) Create `uu.xml` file:

<?xml version="1.0" ?>

<UniversalUpdater>

 <InstalledVersion>1.20.2555</InstalledVersion> <AppUpdateUrl>http://devbook.cz/scripts/programs_version.php?uniqid=505b0c67d08e0</AppUpdateUrl>

<IsXML>false</IsXML> <!-- is file in AppUpdateUrl in xml format? -->

</UniversalUpdater>

Here is example how can look actual info script on your website: http://devbook.cz/scripts/programs_version.php?uniqid=505b0c67d08e0 or http://www.sczdavos.eu/script/GetFileInfo/isim-messenger

Last edited Aug 18, 2013 at 4:47 PM by sczdavos, version 7

Comments

No comments yet.