About the WDM Scripting Language
The WDM scripting language was designed to allow you to create your own software packages. A software package consist of a script (.rsp) file and any required application or image files. You can create a software package, then register and distribute it to one or more devices using WDM. Distributing software packages to one or more devices on the network saves time but requires caution and planning. It is very important that you test your software package on a separate test device to ensure validity and reliability.WDM Package Structure A WDM Package structure consists of two components:
Caution: It is imperative that all software packages be thoroughly tested before mass distribution occurs. This is the responsibility of the WDM administrator with package distribution permissions.
In order for a Package to function properly, these two components must adhere to the following structural rules:
- The Package script (.rsp) file (ImgXL24.rsp)
- The Package folder that contains the required application or image files (ImgXL24)
Optional Arguments and HKEY_CURRENT_USER Four commands have optional arguments related to operations on the HKEY_CURRENT_USER registry branch. The WDM service HKEY_CURRENT_USER registry branch is not related to any user's HKEY_CURRENT_USER branch, so changes made directly to HKEY_CURRENT_USER typically do not have the desired effect. When called with their optional UserName arguments these four commands translate all references to HKEY_CURRENT_USER to HKEY_USERS\<username's SID>.
- The Package script file must have an .rsp extension. You can create and edit an .rsp file using ScriptBuilder.
- The Package folder must have the same name as the Package script file.
- The Number= parameter in the [Version] section of the Package script file should match the value reported by the device to the Client Manager. This becomes extremely important when using the Default Device Configuration feature.
- All the files referenced by the Package script file must be within the Package folder or a sub-folder within.
- All command arguments should be enclosed in double-quotes and are separated by spaces ONLY.
- All registry paths are delimited with backslashes (`\') and are within quotes.
- Do not use abbreviations for the root registry keys (e.g. use HKEY_LOCAL_MACHINE, not HKLM).
- All filenames are delimited with backslashes (`\') and are within quotes.
- Neither path names nor registry branches should ever end with a backslash.
- In general, a script is aborted if a command fails. If you do not want the script to abort if a command fails, then appended the command with and asterisk (*). (Note not all commands support this).
- <REGROOT> (e.g. <regroot>\sourcefile.txt) points to the root directory of the registered package (e.g. c:\inetpub\ftproot\rapport\<packagename>).
Note: <regroot> is a pointer that tells the WDM Service to look in a specific location on the WDM server (not the device) for Package application files. <regroot> finds the WDM Master Repository and identifies the folder contained within that is holding the needed Package files.
Note: These commands will fail if the given user is not logged-on at the time of distribution.