Promotion update
Create online installer to allow users to install updates to the promotion of the product.
To promote the update, you need to perform the following steps:
Will be updated copy content to package folder.
Increase to be updated component in the file package.xml
Value of the element. Use repogen tool to re-create the content has to be updated online repository and generate Updates.xml file in the root directory of the storage library.
The repository uploaded to the Web server.
Create an installation program uses binarycreator tool.
Configuration Update
The installer will download Updates.xml at startup file and get the file version number and version number of the installed base of comparison. If the larger the file to the online version, the installer will show the components list of available updates.
Add a component in package.xml file
Create the repository again
The easiest way to provide updates are re-created repository, and upload them to the Web server. For more information, see Creating a repository section.
Some updates repository
The following cases, the full update the entire store may not be the best choice:
> The repository is very large, it takes a long time to upload.
> You want to change the delivery component.
Note : repogen each time is called re-created more than 7zip archives. 7zip file storing the time stamp contained (in this process, the file may be copied or moved), and therefore each archive SHA values are changed. Archive SHA whether the sum of all the values used to verify the download has been tampered with, and thus need SHA 7zip match up. Since the sum of the values stored in the SHA Updates.xml file, so you will have to upload the entire repository. Repogen by using the --update to avoid this option.
Create a partial update
When re-creating an online repository, use the --update parameter. It is conventional to store as input parameters change only the specified additional components. Global configuration change is only those components and SHA values.
Upload partial update
The following items will be uploaded to the Web server:
> Component directory (usually similar com.vendor.product.updatedpart).
> Global Updates.xml stored in the root directory of the online repository.
Note : uploads order is important. If you update the repository in real-time on the server, first update component, then update Updates.xml. The package name contains the version number, so users before uploading completely new package, will receive the old package.
Change repository
For the current update repository with links to other repositories, edit Updates.xml file in the current repository. You can add, replace or delete the repository.
<RepositoryUpdate>
<Repository action="..." OPTIONS />
<Repository action="..." OPTIONS />
</RepositoryUpdate>
Add Repository
To update the repository, use the following options
<Repository action="add" url="http://www.example.com/repository" name="user" password="password" displayname="Example Repository" />
url element as an absolute URL to parse Updates.xml file. If the url itself is relative, it will be resolved on the basis of absolute URL of the current document.
displayname for naming repository maintenance tools in the "Settings" page.
Name and password (optional) in a protected repository specify authentication credentials.
Delete repository
To delete a library, use the following options
<Repository action="remove" url="http://www.example.com/repository" />
url URL must exactly match the repository to be deleted.
Replace the repository
To add a repository replaced with another, use the following options
<Repository action="replace" oldUrl="http://www.example.com/repository" newUrl="http://www.example.com/newrepository" name="user" password="password" displayname="New Example Repository" />
oldUrl must match exactly to be replaced repository URL.
newUrl must exactly match the repository URL to be replaced.
Relocation repository
Some project contains multiple repositories. To create a repository set relocatable, you should use relative paths.
Therefore, if the address is http://www.example.com/repositories/generic foundation repository is available, and Updates.xml bin contains the following options
<Repository action="add" url="../module" name="user" password="password" displayname="Module Repository" />
In this way, adding resolve the address of the repository will become http://www.example.com/repositories/module, so that the repository does not contain information about its absolute position.
If you want to change the address, just as it can copy the repository set. It recommended that the old repository retained for a period of time, and replaced with a new address above. You can also update the program to provide a new base address.
You can