Note

You are not reading the most recent version of this documentation. See the latest version available.

Setup Capture CLI (on local host)

Command line options of Setup Capture Local allows to automate capturing of source installers on the local host.

Warning

Run Setup Capture Local in the admin mode.


Syntax:

"SetupCaptureLocal.exe" <command> [--parameter "value"]

Usage:

"SetupCaptureLocal.exe" take-snapshot --snapshot "C:\PKG\SNAPSHOTS\snap_1.msgn" --scan-registry "HKLM HKCU HKU\.DEFAULT"

The default installation path of SetupCaptureLocal.exe is:

  • x64 OS: C:\Program Files (x86)\PACE Suite\Setup Capture\App\

  • x86 OS: C:\Program Files\PACE Suite\Setup Capture\App


Commands:

Command

Description

take-snapshot

Record a state of the file system and registry of the local host into the snapshot. Later, you can create a project on difference between two snapshots.

See parameters of the Take snapshot command.

compare-snapshots

Compare two snapshots (usually pre-install and post-install) to discover changes that were made to the system. The detected changes will be saved as MGP project.

See parameters of the Compare snapshots command.


Take snapshot

Parameters of the take-snapshot command:

Parameter

Obligatoriness

Description

--snapshot

Mandatory

Defines a path and a name of the snapshot that will be taken.

Important

Create snapshots with the .msgn extension only.

Example: --snapshot "C:\Abc\snap_1.msgn"

--scan-registry

Optional

Defines what registry hives will be scanned. If not defined, all registry will be scanned.

Supported values:

"*" - scan all registry hives
"" - do not scan registry
"HKLM; HKCU; HKU\.DEFAULT" - scan the specified hives only

Example: --scan-registry "HKLM; HKCU"

--scan-local-drives

Optional

Defines what local drives will be scanned. If not defined, all local drives will be scanned.

Supported values:

"*" - scan all drives
"" - do not scan drives
"C; D; E;" - scan the specified drives only

Example: --scan-local-drives "C;"

--scan-permissions

Optional

Defines if the file system and registry permissions changes will be scanned. If not defined, permissions will be scanned.

Supported values:

"*" - scan for permission changes
"" - do not scan for permission changes

Example: --scan-permissions "*"

--scan-services

Optional

Defines if the Windows Services will be scanned for changes. If not defined, Windows Services will be scanned.

Supported values:

"*" - scan Windows Services
"" - do not scan Windows Services

Example: --scan-services "*"

--scan-devices

Optional

Defines if the system devices (printers) will be scanned for changes. If not defined, system devices will be scanned.

Supported values:

"*" - scan system devices (printers)
"" - do not scan system devices (printers)

Example: --scan-devices ""


Compare snapshots

Parameters of the compare-snapshots command:

Parameter

Obligatoriness

Description

--pre-snapshot

Mandatory

Defines a path to the 1st (pre-install) snapshot for comparison.

Example: --pre-snapshot "C:\Abc\snap_1.msgn"

--post-snapshot

Mandatory

Defines a path to the 2nd (post-install) snapshot for comparison. This snapshot will be compared against the 1st (pre-install) snapshot.

Example: --post-snapshot "C:\Abc\snap_2.msgn"

--project-location

Mandatory

Defines a path to projects folder (common folder for all projects). The MGP project will be placed to this folder in the additional subfolder.

Example: --project-location "C:\PKG"

--project-name

Mandatory

Defines a name of the project (project folder and MGP file).

Example: --project-name "My Project 1"

--apply-filters

Optional

Defines exclusion filters that will be applied to the captured resources. If not defined, all filters will be applied (default behavior in UI mode).

Supported values:

"*" - apply all filters (the same as not defined)
"" - do not apply filters
"filter A; Filter B" - apply the specified filters only

Example: --apply-filters "standard; extended; custom filter"




Note

PACE Suite covers the whole range of application packaging tasks - learn more.

Try PACE Suite for free - 30 days no obligations unlimited trial with all functions unlocked.