Using the Script Editor
To edit a package's script commands, select eScript in the Packaging Workbench. Here you can edit, delete and add commands or snippets.
Double-click and existing command or drag a new command from the command window into the eScript.
There are two ways of adding a command to the eScript:
- Double-click the command in the command selection.
- Drag a new command from the Commands to the designated location in the eScript.
- In both cases a command-specific dialog pops up.
Please refer to the Online help for more information on the commands (in the command’s context menu or by pressing F1 in the respective command dialog). - The same generally applies to snippets. You can customize any variable you enter in a snippet if you have the permission. Refer to Using Snippets for more information.
The following options are available for editing a command in the eScript.
- Double-click the command.
- Right-click the command to cut, copy, edit or delete it.
This toolbar is displayed when the eScript window is opened:
Icon definitions:
|
Cut |
Places the selected object onto the clipboard |
|
Copy |
Copies the selected object onto the clipboard |
|
Paste |
Pastes the contents of the clipboard |
|
Command |
Inserts a command (opens the dialog for this command) |
|
Comment Line |
Inserts a comment line |
|
Delete |
Deletes the selected command |
|
Outdent command |
For commands within an IF statement: outdent command by one level. |
|
Indent command |
For commands within an IF statement: indent command by one level. An IF statement applies to all commands that are indented relative to this IF statement. |
|
Enable / Disable command |
Enables or disables the current command. Disabled commands are depicted the same way as comment, in a green, italic font. |
|
User-related command |
Execution under user account; logging in HKEY_CURRENT_USER, i.e. for the user. |
|
Computer-related command |
Execution under user account; logging in HKEY_CURRENT_MACHINE, i.e. for the computer. |
|
Service-executed, Computer-related command |
Execution with DSM Runtime Service; logging in HKEY_LOCAL_MACHINE, i.e. for the computer. |
|
Service-executed, User-related command |
User-related command, execution with DSM Runtime Service. |
![]() |
Deactivates the file redirection on x64 systems |
Disables the x64 file system redirection and executes x86 command in native x64 file system directly. |
|
Continue script |
Continues script execution in spite of errors in the respective command |
|
Prevent uninstallation |
Use the Prevent Uninstallation option to avoid files from being deleted during uninstallation if they are used by several applications on a client. If you add this option to a command, a /P appears after its name. |
|
Help topics |
Opens a list of help topics |
|
Extended Script Editor |
Starts the Extended Script Editor; a text editor that provides syntax highlighting and allows for direct command editing. (see also Using the Extended Script Editor). |
|
Search |
Opens the Search & Replace dialog to edit strings in the extended script editor |