该程序基于WinGup开发,在WinGup基础上增加了如下功能:
- 配置文件中,增加了程序显示名称的配置,用于在界面中显示;
- 为升级配置增加了运行升级程序的参数,可以直接下载升级包安装程序,并传递运行参数以静默安装;
- 为升级配置增加了升级包的说明,在升级提示对话框中显示;
- 微调了升级提示、下载进度等对话框布局
- 为升级程序添加了默认图标
WinGup is a Generic Updater running under Windows environment. The aim of WinGup is to provide a ready to use and configurable updater which downloads a update package then installs it. By using cURL library and TinyXml module, WinGup is capable to deal with http protocol and process XML data.
Originally WinGup was made for the need of Notepad++ (a generic source code editor under MS Windows). During its conception, the idea came up in my mind: if it can fit Notepad++, it can fit for any Windows program. So here it is, with LGPL license to have no (almost not) restriction for integration in any project.
WinGup can be launched by your program or manually. It reads from a xml configuration file for getting the current version of your program and url where WinGup gets update information, checks the url (with given current version) to get the update package location, downloads the update package, then run the update package (it should be a msi or an exe) in question.
Being LGPLed, WinGup can be integrated in both commercial (or close source) and open source project. So if you run a commercial or open a source project under MS Windows and you release your program at regular intervals, then you may need WinGup to notice your users the new update.
A url to provide the update information to your WinGup and an another url location to store your update package, that's it!
All you have to do is point WinGup to your url update page (by modifying gup.xml), then work on your pointed url update page (see getDownLoadUrl.php comes with the release) to make sure it responds to your WinGup with the correct xml data.
- Open
vcproj\GUP.vcxproj
- Build WinGup like a normal Visual Studio project with VS2013 or newer
Don HO don.h@free.fr