A Qt C++ project that allows application to download updated installer and install it automatically.
Qt5 - Cross-platform software development for embedded & desktop
These instructions will help you add this plugin to your project.
Things needed for this plugin:
- libeay32.dll or libeay64.dll
- ssleay32.dll or ssleay64.dll
- openssl.exe
You also need to add "network" in your project's .pro
QT += network
Then add the Auto-Updater plugin to your project. Copy the this plugin to your project's destination.
include(<project-destination>/Auto_Updater.pri)
Run QMake and you will now see the Auto-Updater folder included in your project
- setDownloadPath(QString) - Downloaded file will be saved in this path.
- setUpdaterIcon(QPixmap) - Set your application's icon.
- setFileInformation(QString, QString) - Set the Filename and File Extension of the downloaded file respectively.
- setDownloadURL(QString) - Set the download URL of the file.
Auto_Updater autoUpdate = new Auto_Updater();
autoUpdate->setDownloadURL("<download-url>");
autoUpdate->setDownloadPath("<downloaded-file-destination>");
autoUpdate->setFileInformation("<filename>", "<file-extension>");
autoUpdate->show();