• No results found

Application definition file structure September 25,

In document Profile Management 2103 (Page 122-128)

This article describes the XML structure of Profile Management application definition files. This struc- ture applies to both application profiler and cross-platform settings.

Architecture Chart

• XML Declaration and Encoding Attribute

The XML declaration must specify the attribute, <?xml version=”1.0”>. Encoding=”UTF-8” is a recommended attribute.

• GroupDefinitions

A container of collections of groups. It acts as the root element of the XML document. Its at- tributes include version and GUID. They are mandatory attributes.

• Group

Defines settings of a subapplication. Its attributes are name and GUID. They are mandatory attributes.

• Object

Defines one setting of a subapplication. Its attributes are name and GUID. They are mandatory attributes.

• Platform

Platform provides different definitions in different operating systems. It can use an optional at- tribute OSVersionNumber to specify the operating system. When there is no attribute, all plat- forms accept the inner definition of the setting. Platform must contain one of the following elements: RegKey, RegValue, File, Folder, and Wallpaper.

• RegKey

Defines a setting as a key in the registry. It must contain the Key element. It includes two op- tional subelements, Recurse and Merge. Recurse and Merge define the performance when Pro- file Management roams the key. Another optional subelement is ExcludeValues. ExcludeValues defines the registry values that can be excluded.

• RegValue

Defines a setting as a value in the registry. It must contain Key to specify the path of its parent key.

• Folder

Defines a setting as a folder. It must contain Path to specify the path of the folder. It has optional subelements,RecurseandMerge. Recurse and Merge define the performance when Profile Management roams the folder. Another optional subelement isExcludeFiles, which defines the files that can be excluded.

• File

Defines a setting as a file. It must contain Path to specify the path of its parent folder, and

FileNameto specify the name of a file. • Wallpaper

Defines all wallpaper settings. No attributes or subelements are required. Profile Management roams these settings automatically.

• Key

Specifies the path of the registry key or the path of the parent registry key. Key is the subelement of RegKey and RegValue.

• ValueName

Specifies the name of the registry value. It is a subelement of RegValue. • Path

Specifies the path of the folder or the path of the parent folder. It is a subelement of Folder and File. Profile Management variables can be adopted.

• FileName

Specifies the name of a file. It is s subelement of File. • Recurse

Optional subelement of RegKey and Folder. If this element exists, Profile Management roams the key and the folder recursively.

• Merge

Optional subelement of RegKey and Folder. If this element exists, Profile Management merges (but does not substitute) the key and the folder.

• ExcludeValues

Optional subelement of RegKey. Specifies the values that can be excluded when roaming the key.

• ExcludeFiles

Optional subelement of Folder. Specifies the files that can be excluded when roaming the folder. • Exclude

Subelement of ExcludeValues and ExcludeFiles. Specifies the excluded items of files or registry values.

Note

Make sure that your document contains a correct syntax format. Profile Management checks these files by using the CPSValidationSchema.xsd validation file when these files load. You can find the validation file under the installation path of Profile Management. Profile Management ignores incorrect files and record error messages in the log.

Sample

1 <?xml version=”1.0” encoding=”UTF-8”?> 2

3 <!-- Copyright 2011 Citrix Systems, Inc. All Rights Reserved. --> 4

5 <GroupDefinitions GUID=”748E63D3-426E-4796-9C32-420B25DB2D9F” Version=” 4.0.0.0”>

6

7 <!-- Application Settings --> 8

9 <Group GUID=”0FCCCF29-0A0E-482d-A77E-3F39A8A854A6” Name=”Application Settings”>

10

11 <!-- Registry Key Setting Example --> 12

13 <Object GUID=”637EC13C-2D47-4142-A8EB-3CEA6D53522A” Name=”Software\ Application\certain key”> 14 15 <Platform> 16 17 <RegKey> 18

19 <Key>Software\Microsoft\Office\certain key</Key> 20 21 <Merge/> 22 23 <Recurse/> 24 25 <ExcludeValues> 26

27 <Exclude>excluded value 1</Exclude> 28

29 <Exclude>excluded value 2</Exclude> 30

31 <Exclude>excluded value 3</Exclude> 32 33 </ExcludeValues> 34 35 </RegKey> 36 37 </Platform> 38 39 </Object> 40

41 <!-- Registry Value Setting Example --> 42

43 <Object GUID=”3C896310-10C4-4e5f-90C7-A79F4E653F81” Name=”Software\ Application\certain value”>

44

46

47 <Object GUID=”7F8615D0-5E63-4bd0-982D-B7740559C6F9” Name=”! CTX_ROAMINGAPPDATA!\Application\setting folder”> 48 49 <Platform> 50 51 <Folder> 52

53 <!-- We can use Citrix variable if necessary -->

54

55 <Path>!CTX_ROAMINGAPPDATA!\Application\setting folder</Path> 56 57 <Merge/> 58 59 <Recurse/> 60 61 <ExcludeFiles> 62

63 <Exclude>excluded file 1</Exclude> 64

65 <Exclude>excluded file 2</Exclude> 66

67 <Exclude>excluded file 3</Exclude> 68 69 </ExcludeFiles> 70 71 </Folder> 72 73 </Platform> 74 75 </Object> 76

77 <!-- File Setting Example --> 78

79 <Object GUID=”7F8615D0-5E63-4bd0-982D-B7740559C6F9” Name=”! CTX_ROAMINGAPPDATA!\Application\file.txt”> 80 81 <Platform> 82 83 <File> 84

85 <!-- We can use Citrix variable if necessary -->

86

87 <Path>!CTX_ROAMINGAPPDATA!\Application</Path> 88

89 <FileName>file.txt</FileName> 90 91 </File> 92 93 </Platform> 94 95 </Object> 96

97 <!-- Setting based on different OS --> 98

99 <Object GUID=”1B43DE3F-EC9C-463c-AC19-CD01D00219B6” Name=”! CTX_ROAMINGAPPDATA!\Application\%osname%\folder”>

100

101 <!-- Assuming that the folder locates differently when in different

platforms --> 102 103 <Platform OSVersionNumber=”6.1”> 104 105 <!-- Win7 --> 106 107 <Folder> 108

109 <Path>!CTX_ROAMINGAPPDATA!\Application\Win7\folder</Path> 110 111 <Recurse/> 112 113 </Folder> 114 115 </Platform> 116 117 <Platform OSVersionNumber=”10.0”> 118 119 <!-- Win10 --> 120 121 <Folder> 122

123 <Path>!CTX_ROAMINGAPPDATA!\Application\Win10\folder</Path> 124 125 <Recurse/> 126 127 </Folder> 128 129 </Platform> 130 131 </Object>

132

133 </Group> 134

135 </GroupDefinitions>

Cross-platform settings - Case study

In document Profile Management 2103 (Page 122-128)