mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-19 22:04:01 -06:00
27 lines
582 B
C++
27 lines
582 B
C++
#include <Updater/Updater.h>
|
|
|
|
GUI_APP_MAIN
|
|
{
|
|
Updater updater;
|
|
updater
|
|
.SetMaxVersion(1.60)
|
|
.SetWebRoot("www.timberstruct.com/webupdater/updatertest")
|
|
.UpdateManual()
|
|
.SetCathegory("Office")
|
|
.SetComment("A sample test program")
|
|
.SetExtensions(Vector<String>() << "*.xxx" << "*.yyy")
|
|
.SetIcon(updater.DefaultIcon());
|
|
|
|
// 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.00");
|
|
|
|
}
|
|
|