diff --git a/bazaar/UpdaterTest/UpdaterTest.cpp b/bazaar/UpdaterTest/UpdaterTest.cpp index b054653ea..c666b7a85 100644 --- a/bazaar/UpdaterTest/UpdaterTest.cpp +++ b/bazaar/UpdaterTest/UpdaterTest.cpp @@ -1,21 +1,22 @@ #include -double GetMaxVersion(void) -{ - return 1.6; -} - GUI_APP_MAIN { Updater updater; updater - .SetMaxVersion(GetMaxVersion()) + .SetMaxVersion(1.60) .SetWebRoot("www.timberstruct.com/webupdater/updatertest") .UpdateManual(); + // 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"); }