UpdateYou can include a simple update program into your setup. This program can check for updates of your application. This update program downloads the config file from your web-server and compares the current user's version and the latest version that is defined in the config file. If you want to use the update feature you must specify Version parameter on Project - Product Details and all parameters on this page. Also, your Install Script must contains Create Uninstall & Update Exe command which creates the update executable file. Include Updater Check this box to include a updater program in your installation. Checked => The updater is included.
Path A directory where the update executable file will be created. APPLICATION DATA PATH - Program subfolder in Application Data folder. CUSTOM PATH - The path must be defined in the filename control. INSTALL PATH - Default installation path. SYSTEM PATH - Windows system directory. TEMPORARY PATH - Windows temporary directory. WINDOWS PATH - Windows directory.
Update Executable File The update executable file name.
#setuppath#\tools\myupdate.exe (if CUSTOM PATH)
Config File on Web-serverThis file is created automatically when you create the setup. You can find this file in the same directory as Output Folder for your setup file. Config file is a simple .ini file and you can create and modify it yourself. Config File URL Specify the full web-path to your config file on your web-site. Don't specify the name of the config file.
http://www.mydomain.com/downloads/
Config Filename Specify the name of the config file.
myapp_update.ini
New version URL Specify the URL of homepage or download page where the user will be redirected when you agree to look at the new version. This parameter is stored in the config file.
How to use Update feature1. Specify all parameters here and create your setup. 2. Find the config file in Output Folder and upload it on the web-site. The config file must be stored as Config File URL/Config Filename. 3. You can create 'Check for Update' menu item in your application and execute update.exe when the user click it. 4. You can use a command line parameter -s. If you run update.exe -s then it shows a message box only if there is a new version. Use it if you run update.exe automatically. Format of Config FileThe update config file is a simple ini file. You can create and edit it yourself. It can be uploaded on your web-server any time. [main]
version=x.x.x
url=http://www.mydomain.com/
version The latest version of your application.
url The web-page which is opened when the newer version is available and the user agrees to visit the homepage of the program.
|