USoft Delivery Manager provides help and examples for 2 typical strategies of using registry data.
Strategy 1 - Computer-specific sections
You can describe computer-specific information by mentioning computernames. For example, you can distribute flatfiles to different locations on different machines by providing sections of registry data such as:
<Registry>
<Computers>
<Computer name="PROD_BS01">
<Locations>
<Flatfiles>C:\USoft\91\app</Flatfiles>
<Logs>C:\Users\Default\AppData\Local\Temp\Logs</Logs>
...
</Computer>
<Computer name="PROD_BS02">
<Locations>
<Flatfiles>C:\USD91\APP</Flatfiles>
<Logs>C:\Users\Default\AppData\Local\Temp\Logs</Logs>
...
</Computer>
...
Deploy scripts can tap into this registry data and distribute a set of flatfiles to the correct location on each machine by heeding only the registry section that corresponds to the computername of the computer where the deploy script executes.
Strategy 2 - Computer settings
You can express computer-specific information as name-value pairs, where the name is a placeholder in this format:
${MyPlaceholder}
For example:
<Registry>
<Computers>
<Computer name="PROD_BS01">
<Settings>
<Setting name="${ADMIN_USER}" value="ADMIN_1">
...
</Computer>
<Computer name="PROD_BS02">
<Settings>
<Setting name="${ADMIN_USER}" value="ADMINISTRATOR">
...
</Computer>
...
You can then position these same placeholders in specific places in your deliverables: in upgrade scripts, deliverable data, Service Framework config files, and Web Designer published files. For each occurrence of a placeholder, deploy scripts can read the corresponding computer-specific value from the registry and replace the placeholder by the value just before deploying the deliverable on the target computer.
|