10.12.2012 Views

Download PDF - IBM Redbooks

Download PDF - IBM Redbooks

Download PDF - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

name and object name. Title can be any string; action code can be FAIL,<br />

REPLACE or UPDATE. For example<br />

; This is a sample control file for Desktop Icon Shuffler<br />

;<br />

; Lines starting with a semicolon are comment lines<br />

;<br />

[system]<br />

; This section can be either empty or all commecnt lines<br />

;<br />

[create]<br />

; Object creation<br />

; Object Class, , "Title", <br />

;<br />

; The following command replaces the existing folder<br />

WPFOLDER, , "Sample folder", REPLACE, <br />

;<br />

; The following row will create a folder named "Sample folder" and will fail<br />

; if the object with this name already exists<br />

WPFOLDER, , "Sample folder", FAIL, <br />

;<br />

; The following command updates the existing object or creates a new object<br />

; if the object does not exist<br />

WPFOLDER, , "Sample folder", UPDATE, <br />

;<br />

; The following command will create a new program item to the Install/Remove folder<br />

WPProgram, , "My program", REPLACE, ,<br />

EXENAME=C:\EXE\MYPROG.EXE;ICONFILE=C:\EXE\MYPROG.ICO<br />

The delete section structure is very simple. The only thing that is required is<br />

the object name to be deleted. Here is a sample section:<br />

[delete]<br />

; Delete the folder that was added in the create section<br />

<br />

The update section is used to update object properties. The syntax is one of<br />

the following<br />

• keyword=value<br />

• FOLDER keyword=value<br />

• SETUPSTRING keyword=value<br />

Multiple keywords can be defined by separating those by semicolon (;). The<br />

sample update section can appear as follows:<br />

[update]<br />

; The following line sets the Sample folder default view to tree view<br />

FOLDER DEFAULTVIEW = TREE<br />

;<br />

; The following line changes the program title for Sample program<br />

Title = New program<br />

The move section syntax is , . The object<br />

is not moved, if it already exist in the destination object. Here is an example:<br />

[move]<br />

: The following lines move object to the desktop<br />

Utilities to Ease Remote Installation 123

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!