Hi,
Unfortunately the User Guide does not contain sample code for Delphi. However, it can be easily implemented. Here what the application should do:
1) create a "Check for updates" button or menu item
- when this button or menu item is used, you can call "updater.exe" with the "/checknow" parameter (it will immediately check for updates)
2) create a "Configure updates" button or menu item
- when this button or menu item is used, you can call "updater.exe" with the "/configure [HWND]" parameters; the "[HWND]" parameter is optional and it represents the parent of the Updater configuration dialog (for example it can be the main Window of your application)
3) after the application is launched, use a timer to determine when a specified period of time passes (for example 5 seconds); after this period, you can launch the updater with the "/silent" parameter (this way the silent check for updates is delayed so it doesn't start immediately after the application is started)
Your application can use one of the above methods or all of them. You can read more about the Updater parameters
here. Presumably "updater.exe" will be installed next to the main EXE of your application, so there shouldn't be a problem calling it from your code.
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging