Rule Data Binding - Novell ADMINSTUDIO 9.5 User Manual

Hide thumbs Also See for ADMINSTUDIO 9.5:
Table of Contents

Advertisement

The Create element has the following Child Elements:
Table 9-24 • Create Element / Child Elements
Element Name
File
Registry
Shortcut

Rule Data Binding

In Rule data binding, you have a binding source and a binding target. The binding source is the item that you put
an ID on. For example, if you set the ID of a File element to F1, you can then use that File element as a binding
source. The binding target is the item that references the source.
Binding Source
Only a Registry entry or a File can be a binding source. The only attributes on a File element that you can bind to
are
filename
Binding Source for a File
The following is an example of a binding source for a file:
<File id="F1" ... />
{Bind:F1 filename} = Notepad.exe
{Bind:F1 folder}
{Bind:F1 fullpath} = C:\Windows\Notepad.exe
For example, if you have the File attribute and it finds the file
would return
filename
Binding Source for a Registry Entry
The following is an example of a binding source for a registry entry:
<Registry id="R1" ... />
{Bind:R1 hive}
{Bind:R1 key}
{Bind:R1 valueName} = TEMP
{Bind:R1 valueType} = REG_SZ
{Bind:R1 valueData} = %USERPROFILE%\LocalSettings\Temp
For example, suppose you have the Registry attribute and it finds the following registry entry:
AdminStudio 9.5 User Guide
Description
The File element is used when searching for files. Only directories can be created. For
more information, see
The Registry element is used when searching for registry entries. It minimally requires the
hive and key attributes. For more information, see
The Shortcut element is used to create shortcuts. It minimally requires the name and
target attributes. For more information, see
,
, and
.
folder
fullpath
= C:\Windows
. The Bind command for
Notepad.exe
= HKEY_CURRENT_USER
= Environment
ADS-0950-UG00
Chapter 9: Converting Windows Installer Packages to Virtual Applications
Testing Windows Installer Packages for Virtualization Compatibility
File
Element.
C:\Windows\Notepad.exe
folder
Registry
Element.
Shortcut
Element.
, the Bind command for
would return
C:\Windows
.
683

Advertisement

Table of Contents
loading

Table of Contents