Skip to main content

Command Line Installation

You can install PK Protect from the Windows command-line prompt or a batch file. In the command line, you can set values for various properties to customize the installation.

The command line looks like this:

<name of PK Protect installation file> /S /v"<properties>"

where:

  • /S is a switch that tells InstallShield┬« to run silently and not to display various initial screens (that say, for example,  Preparing to install).

  • /v is a switch that must be used to pass any specified PK Protect properties to the Windows installer.

  • <properties> is a list of property settings

You can also optionally pass in a switch to specify either the Basic UI, that displays a dialog containing only a Cancel button to allow canceling of the installation; or No UI, that displays no dialog. Both Basic UI and No UI can run unattended. The default is the full, graphical UI, which is interactive and so cannot run unattended.

SwitchSpecifies
/qbBasic UI
/qnNo UI

Any quotes (") in the parameters must be escaped with a backslash (\).

Examples:

<name of PK Protect installation file> /S /v/qb

<name of PK Protect installation file> /S /v"/qb PKPGPASSOC=0"

The properties you can set or change are described below.

Disable add to Path

By default, the PK Protect installer adds the command line program to the system's PATH. To disable the PK Protect command line interface from being added to the system PATH environment variable, type a command like this:

<name of PK Protect installation file> /S /v"ADD_TO_PATH=0"

Disable CLI

By default, the command line interface is included in your PK Protect installation. If you prefer to only use the graphical interface, use this command:

<name of PK Protect installation file> /S /v"CLI=0"

Do not install graphical (GUI) components

If you want to only run PK Protect through its command-line interface, you can disable all graphical elements by setting the GUI property to 0 using a command line like this:

<name of PK Protect installation file> /S /v"GUI=0"

Caution: Disabling the graphical interface also turns off PK Protect Attachments, SaveSecure Office Integration and all file associations.

Associate file types with PK Protect

By default, the installation associates with PK Protect the types of files listed in the following table. These file associations enable you to open a file of any of these types in PK Protect by double-clicking it in Windows Explorer.

File TypeProperty

ZIP

File Extensions: zip, zipx

PKZIPASSOC = 0

UUEncode/XXencoded

File Extensions: xxe, hqx, uue

PKUUEASSOC =0

GZIP and TAR

File Extensions: gz, tar, tgz

PKGZASSOC = 0

BZIP2

File Extensions: bz2, bz, tbz

PKBZ2ASSOC = 0

ARJ

File Extensions: arj

PKARJASSOC = 0

RAR

File Extensions: rar

PKRARASSOC = 0

LZH

File Extensions: lha, lzh

PKLZHASSOC = 0

OpenPGP

File Extensions: pgp, gpg

PKPGPASSOC = 0

CAB

File Extensions: cab

PKCABASSOC = 1

Z (UNIX compress)

File Extensions: z

PKZASSOC = 0

7Zip

File Extensions: 7z

PK7ZASSOC = 0

If you do not want a particular file type associated with PK Protect, set its corresponding property to 0 in the command line. For example:

<name of PK Protect installation file> /S /v"PKPGPASSOC=0"

Shortcuts

By default, the installation creates shortcuts to PK Protect. If you do not want a shortcut created in one of the places listed in the table below, set the corresponding property to 0.

LocationProperty
Program group on start menuPKSTARTMENU = 0
DesktopPKDESKTOP =0 


Do not install PK Protect Attachments

PK Protect Attachments, the extension module for zipping email messages and attachments, installs by default if Outlook is detected. To not install PK Protect Attachments, set the MAIL property to No using a command line like this:

<name of PK Protect installation file> /S /v"MAIL=0"

Do not install SaveSecure® feature

The SaveSecure feature adds to Miscellaneous options an Office Integration page that contains options to automatically open an archived file in the file's associated application program, and to enable Office Integration.

The SaveSecure Office Integration option adds menu commands and toolbar buttons to some Microsoft Office applications to make it possible to open documents of appropriate types in the application directly from ZIP files. Documents can also be saved directly to ZIP files using these commands.

To not install the SaveSecure functionality, set the SAVESECURE property to 0:

<name of PK Protect installation file> /S /v"SAVESECURE=0"

Disable self-extracting archive support

Though less common a situation than it once was, occasionally you'll send a ZIP archive to someone whose computer cannot open the file. When that happens, you can send a self-extracting PKSFX archive instead: it has a .exe file name extension (instead of .zip, for instance), and it can be extracted just by executing it, even by someone who does not have PK Protect or another ZIP utility. (PKSFX archives are also called SFX files, for short.)

If you prefer to disable PKSFX support, set the SFX option to 0.

<name of PK Protect installation file> /S /v"SFX=0"

Exclude Data Discovery

To exclude the (Enterprise-only) Data Discovery component:

<name of PK Protect installation file> /S /v"/qb DISCOVERY=0"

For information on installing earlier versions of PK Protect and SecureZIP from the command line, contact PKWARE Support.

    

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.