Advanced Updater - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

cdavis9999
Posts: 2
Joined: Fri Mar 13, 2009 3:38 pm

Advanced Updater

I have successfully made this work for my application by using the Windows scheduled event. All is good no issues.
I would also like to integrate this into my code so that there is a Check for Updates button.

Does anyone have examples of how to do this in Delphi. The examples provided are dificult to understand when Pascal is your usual language

Thanks for help in advance
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Advanced Updater

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
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”