ultimatepp/bazaar/UpdaterTest/UpdaterTest.cpp
micio 1a027114a6 Bazaar/Updatertest : cleaning up tests
git-svn-id: svn://ultimatepp.org/upp/trunk@3039 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2011-01-18 00:15:09 +00:00

28 lines
625 B
C++

#include <Updater/Updater.h>
GUI_APP_MAIN
{
Updater updater;
updater
.SetMaxVersion(1.6)
.SetWebRoot("www.timberstruct.com/webupdater/updatertest")
.UpdateManual()
.SetCathegory("Office")
.SetComment("A sample test program")
.SetExtensions(Vector<String>() << "*.xxx" << "*.yyy")
.SetIcon(updater.DefaultIcon())
.DesktopIcon();
// run updater -- DON'T change this !
if(!updater.Run())
return;
// run the default prompts -- see Updater source code
// if you need some fine-grained control
if(!updater.DefaultPrompts())
return;
PromptOK("App version is 1.0");
}