Using the Package Editor
Creating distribution packages is performed using the Package Editor wizard.
The Package Editor is supported in the Internet Explorer Web browser only. To use the Package Editor with the Internet Explorer Web browser, you must install an ActiveX control.
Caution: If the Application Control module has been installed and its Easy Lockdown feature applied to an endpoint, a browser on that endpoint will not be able to install a new ActiveX control. Before using Package Editor in this situation, the administrator must create a Trusted Publisher policy that assigns the Ivanti Security certificate to that endpoint. For additional information, refer to Easy Lockdown in Practice and Creating a Trusted Publisher Policy in the Application Control Help.
- Select Review > Other > Packages.
- In the Packages list, click Create.
The Welcome to the Package Editor screen opens. - Click Next.
- Type Package Information in each field.
The following table describes the information you type in each field. - Click Next.
The Select Operating System page opens displays. - In the Operating Systems page, select the target operating systems from the list. These are the platforms running endpoints that are the target for the package deployment.
Since directory structures, executable file types, and available scripting languages vary greatly within operating systems, a package designed for one operating system may fail when applied to another operating system.
- Click Next.
The Add Files page opens. - Add files to the package.
For additional details regarding adding files to a package, refer to Adding Files and Directories to a Package. - Click Next.
The Create Scripts page displays. - If needed, add a script to run on the target endpoint during the deployment process.
For additional details regarding package scripts, refer to Creating Scripts for a Package. - Click Next.
The Enter a License page opens. - In the License Agreement dialog, select the License Agreement check box and enter the appropriate URL in the destination address of the License URL field.
The License Agreement dialog allows you to enter in an optional License URL, which can link to licensing information for the contents of the package. This option is primarily for packages containing items such as operating system service packs, endpoint drivers, and so on. The License URL displays when viewing package information and allows the user to link to the license information. - Click Next.
The Summary page displays. - Click Upload.
- In the Summary page, review the summary of the package to be deployed.
Selecting the Make this package available for rollout check box enables the package to display in the list of available packages. You may clear this option if you are creating a package that will contain additional files or details added at a later date or do not want to deploy the package at this time. - The Upload Status page verifies that the data is unpacking and uploading. Once all files are uploaded, click Next.
The Upload Summary page displays. - Click Finish.
The page refreshes and the Package page opens with the custom package. When you refresh the Packages page, you can view the package by the name you gave it, and view the operating systems that you chose to deploy to during the patch building process.
Field |
Description |
---|---|
Name |
A name or title for the package. Ivanti recommends using short and descriptive names. Duplicate package names are permitted, and package names can be edited after initial creation. |
Description |
A description of package details. Ivanti recommends adding information as the package is modified, providing necessary information as needed. |
Information URL |
Link(s) to additional information about the content and usage of the package. The information URL is displayed when viewing package information. |
Deployment options for manual installations of a patch can be included in the Description field. For more information about using deployment options, refer to Including Deployment Options in a Package.
Including Deployment Options in a Package
Package flags control the behavior of a distribution package when it is deployed.
The following flags indicate a manual installation of the patch is required. To use this option, type (manual install) in the Description field.
A number of additional deployment options are available by including them in with the flags delimiter. To add these, enter (PLFlags: <Your Flags>) to the Description field.
Package Flag Descriptions
Package flags allow you to attach behavior to package deployments. The following table defines flag behavior and their descriptions:
Description (flag behavior) |
Display Flag |
Select Flag |
---|---|---|
Perform an uninstall; can be used with -mu or -q. |
-yd |
-y |
Force other applications to close at shutdown. |
-fd |
-f |
Do not back up files for uninstall. |
-nd |
-n |
Do not restart the computer when the installation is done. |
-zd |
-z |
Use quiet mode, no user interaction is required. |
-qd |
-q |
Use unattended setup mode. |
-dmu |
-mu |
Install in multi-user mode1 |
N/A |
-su |
Restart service after installation1 |
N/A |
-restart |
Do not restart service after installation1 |
N/A |
-norestart |
Reconfigure after installation1 |
N/A |
-reconfig |
Do not reconfigure after installation1 |
N/A |
-noreconfig |
Download packages to the default package cache directory for the Linux distro, but don't install them2 Packages are downloaded to the following locations:
|
N/A |
-CACHEPACKAGES |
Install packages cached in the tmp folder2 |
N/A |
-INSTALLFROMCACHE |
Tip: If you are patching Linux and Unix endpoints that receive content directly from vendor repositories, deployments may exceed your scheduled window because the patch content must first be downloaded, a process that may be excessively long. To reduce the likelihood of deployments that exceed maintenance schedules:
|
||
Ignores discrepancies between libraries available in different architectures2 |
N/A |
-YUM_PROTECTED_MULTILIB |
Skips packages with broken dependencies when updating the endpoint2 |
N/A |
-YUM_SKIP_BROKEN |
Performs a trial run of the deployment with no package changes made.3 |
N/A |
-TRIAL_RUN |
This package is chainable and will run Qchain.exe (Windows) or (UNIX/Linux). |
-dc |
-c |
Suppress the final chained reboot. |
-dc |
-sc |
Repair permissions. |
-dr |
-r |
Deploy only. |
-PLD1 |
-PLDO |
No Pop-up |
-PLN1 |
-PLNP |
Debug |
-PLDG |
-PLDEBUG |
Suppress Repair |
-dsr |
-sr |
Force the script to reboot when the installation is done. |
-1d |
-1 |
Reboot is required. |
N/A |
-2 |
Reboot may occur. |
N/A |
-3 |
Reboot is required, and may occur. |
N/A |
-4 |
|
Adding Files and Directories to a Package
Files and directories can be added to the package by right-clicking the Package Content window, and selecting one of the following options:
Once a macro, directory, or folder has been created, a new directory can be added to it. A file system window is opened where you can locate and select an existing directory to add to the package.
- Right-click the macro, directory, or folder associated with the target computer.
- Select Add Directory.
The Browse for Folder window opens. - Select the directory to add to the macro, directory, or folder.
- Click Open.
The directory is added to the macro, directory, or folder.
Use the New Drive option to deploy a package to a drive other than the C:\ or %TEMP% drives.
- Right-click inside the Target Computer window.
- Select Create Drive... from the pop-up menu.
The Create Drive window opens. - In the Drive or Volume Name field, type the letter you require for the drive name, followed by a colon in X: format.
- Click OK.
The drive is added to the Target Computer window.
Macros access existing system directories. A macro can be either an environment variable, as defined by the operating system, or a macro that only the agent can expand.
The following pre-defined macros are available under the New Macro menu:
- %TEMP% - The operating system temp directory location. Expands to C:\Windows\Temp, C:\Temp, C:\WinNT\Temp, or /tmp depending on operating system and configuration.
- %WINDIR% - The operating system windows directory location. %WINDIR% typically expands to C:\Windows.
- %BOOTDIR% - The operating system boot directory location. Typically expands to C:\.
- %ROOTDIR% - The operating system root directory location. Typically expands to C:\.
- %PROGRAM FILES% - The operating system program files location. Typically expands to C: \Program Files.
- %COMMON FILES% - The operating system common files location. Typically expands to C:\.
Not all macros are available on all operating systems. Choose only the macros that are compatible with the operating systems and configurations you are using.
- Right-click inside the Target Computer window.
- Select Create Macro.
A list opens. - Select the macro required for the package.
The selected macro displays in the Target Computer window.
The Create Folder window allows for creating a folder within the Package Content directory.
- Right-click inside the Target Computer window.
- Select Create Folder.
The Create Folder window opens. - In the Folder Name field, type the name of the new folder.
- Click OK.
The folder is added to the Target Computer window.
Once a folder, directory, or macro has been created, a file can be added. A file system window is opened where you can locate and select an existing file to add to the Package.
- Right-click the directory, folder, or macro associated with the Target Computer.
- Select Add File.
The Open window opens. - Select the file to add to the directory, folder, or macro.
- Click Open.
The file is added to the directory, folder, or macro.
You can remove a directory or file from a package. This option is available only for files added to the Target Computer window.
- Right-click the directory, folder, or macro associated with the Target Computer that you want to delete.
- Select Delete.
The file is deleted for the package.
The Rename option allows for renaming of a previously created drive or macro within the package.
- In the Target Computer directory tree, select the directory where the file is to be renamed.
The file is highlighted and the cursor becomes active. - Type the new name of the file.
- Click OK.
The folder name is changed and displays in the Target Computer window.
The Properties window allows you to set properties for the selected item. Only available when you right click on a folder that has previously been added to the Target Computer window.
- In the Target Computer window, select the directory where the file is located.
- Right-click the selected file.
- Select Properties.
The Properties window opens. - In the Attribute field, select or deselect the Overwritable check box.
- Click Apply.
The folder properties are changed.
Removing the check-mark from the Overwritable attribute will prevent subsequent patches that contain the same file from overwriting the file.
Creating Scripts for a Package
You can add functionality to packages using scripts. There are three types of scripts. These scripts can be written in Microsoft Visual Basic Script or Microsoft JScript. Documentation regarding these languages can be found at MSDN Library: Scripting.
The following scripts are listed by the order in which they execute within the package:
- Pre-Script - Used to test for a machine condition or shutdown a service. For example you can stop the package rollout in the pre-script by using the SetReturnCode in the PLCCAgent script object.
- Command Line Script - Used to launch executable files. The format is the same as a standard .CMD or .BAT file.
- Post-Script - Used for any clean-up operations such as the deletion of files, starting services, or running an installed file.
There can be a maximum of one of each script type in a software package. When all three scripts are present, they will be executed in the order listed above.
Unless the Execution Directory option is selected and a valid directory is defined, all scripts run in the ROOT directory.
- Select the type of script to execute from the Type of Script drop-down list.
- Select the scripting type from the Script Language drop-down list.
- Click Edit.
The Script Editor window opens. - Type or copy the script to be added in the Script field.
- Click Run.
The script is checked and the Errors box displays Success when the script is validated. - Click OK.
The Script Editor window closes and returns to the Package Editor wizard. - If needed, select Script Execution Directory if a different directory location is required.
The Script Execution Directory field becomes active. - Type the back-up directory path, or click Browse.
The location displays in the Script Execution Directory field.