Using The Auto UpdaterThis tutorial will guide you step by step in creating and maintaining an install package that uses the Advanced Updater. We will create an install package for the "story.txt" file that we used in the Simple Installation tutorial.
Creating the original install package.Create a professional project. Now create the install package following the same steps as described in the Simple Installation tutorial, but don't build the package yet. After adding the files to the package it is time to add the auto-update functionality.
Select the "Enable Advanced Updater" checkbox. Now, you will have to reserve on your site a location for the updates configuration file. You will create this file when the first update will be released. For now, you just have to input the location. Let's suppose you have chosen this location: http://www.myupdateslocation.com/download/StoryUpdates.txt Enter it in the "Updates URL" field.
In order to be able to launch the Advanced Updater, create a desktop shortcut that will point to the updater.exe file in the package.
Managing the first patch.Modify the story.txt file by changing a few words. Let's say that these are some spelling mistakes you have fixed. Suppose that it's new size is 1234. You want to release a patch to fix this problem.
For a detailed description on how to create this patch see the Patch Authoring tutorial. Upload it to the designated URL location. After creating the patch is time to create the StoryUpdates.aiu file on the server so the updater will know that new updates are available. Create a new Updates Configuration Project and add the first update as shown in the updates tutorial. Build the project and place the resulted file it on the URL location you specified earlier.
Managing the second patch.Modify the story.txt file by adding a new paragraph. It's new size is 2345.
You need to release a new patch. Create it following the same steps as before. Upload the patch. The updates configuration file must be edited too and add the data about this new release. Modify the updates project as shown in the updates tutorial.
Managing a major upgrade.At this time let's say you want to add a couple of more files to the package. A major upgrade and a version change is needed.
Create two more text files in the same way you did with "story.txt". Name them "contents.txt" and "aboutme.txt". Modify the previous created package. Add the rest of the files and change it's version to 2.0. Answer "Yes" when asked whether to generate a new product code. Again, upload the MSI file. Modify the updates project to include information of this major update. Please see the updates tutorial for reference.
The EndThis concludes our tutorial. If you find this tutorial too complicated or your project doesn't work as expected, you can try our step by step instructions.
| |
|
| Privacy Policy | Windows Installer | Search Engine Ranking | Link Analyzer | ||
| © 2002 - 2008 Caphyon Ltd. Trademarks belong to their respective owners. All rights reserved. | ||