Sie sind auf Seite 1von 5

CrypKey License Service Setup

This package is required for operation on all NT platforms,
including Windows XP, Windows 2000/2003, and Windows Vista x86/x64.
It is designed so you can easily and transparently include it in
your application's installer.
CrypKey Stealth can attach the CrypKey License Service for automatic
installation. If you choose to use that option you may largely skip the
contents of this file and instead use the Stealth documentation.
This document contains:

Description of included files

How to Install/Uninstall
How the installer behaves
Revision history

1. Files
ReadmeV7.txt - This file.
SetupEx.EXE - The install program.
- A self-extracting zipfile containing 7 files.
IMPORTANT! Do not extract the contents of CKS.exe! SetupEx.EXE requires the
CKS.exe file be present as-is.
2. Instructions For Usage
Usage: SetupEx.EXE [/S /U /F /D]
Simply include SetupEx.EXE and CKS.EXE in your Installation script lets assume Install Shield is being used. The script would make sure
that both SetupEx.EXE and CKS.EXE are copied into the Install directory
(i.e. the dir where the users program is being installed).
After the files are copied, the InstallShield Script would call SetupEx.EXE.
2.1 Error Code Return
SetupEx.EXE returns an error code if it runs into a problem.
This code is returned in 2 ways:
1) In the process termination code, which can be read by the process that
launched SETUPEX.EXE, if supported by your installer development tool.
2) The error code is also written in ASCII to the file SETUPEX.XCO at
termination to for use by developement tools not supporting method #1.
Some Installer programs are not able to receive the error code via either
method. This is OK as processing of the error code optional, although CrypKey
recommends you not use the /S switch if the error code is not processed.

The possible errors reported are:

// This error should not occur on an OS platform CrypKey currently supports
// This usually indicates that the OS is Windows 95/98.
// SetupEx.exe is being run from a remote drive. The CrypKey License Service
// is not required on the computer that SetupEx.exe is being launched on.
// or a permissions error blocking the installation.
// These errors are more likely to be caused by a problem in your installer
// or a permissions error blocking the installation.
// This error usually occurs when the user does lacks permission to load
// drivers, typically fixed by logging in as a local administrator or,
// in Vista, launching Setup.Ex.exe using the Administrator account.
// These errors are unlikely and should be reported to CrypKey


// A -17 error is more a warning. Your install should simply note this and
// strongly encourage the user to restart Windows at the end of the
// install. CrypKey License Service will be ready after the reboot. This
// normally occurs if the CrypKey License Service was already installed
// and the kernel driver is being updated.
// A -17 will also be reported if the /D switch was specified and this was
// the last applications registered with the CrypKey License Service.
// In the case of an uninstall the restart is still important as an attempt
// to reinstall CrypKey License Service before a restart will fail.
2.2 Installing
There are two ways to use this program.
2.2.1 Verbose Mode
Usage: SetupEx.EXE
SetupEx.EXE will report on-screen any errors it encounters.
It will do complete checking, and install if it can, and return an
error code if it can't. Note that although SetupEx

The easiest strategy is to copy SetupEx.exe and CKS.exe into the directory
where the file to be protected is being placed and then launch this
copy of SetupEx.EXE.
SetupEx.exe will determine if it is being run from a local directory as well
as detecting if the OS is 32-bit or 64-bit. If the directory is not a local
If there is a problem, it will report the problem to the user directly.
Note that although SetupEx.exe is a console program the errors are reported
to the user using a modal dialog box. This means that in verbose mode
SetupEx.exe will block execution on an error waiting for user input.
The one exception is that if run on Windows 95/98 SetupEx.exe will silently
terminate without a error dialog box and without performing an installation.
2.2.2 Silent Mode
Usage: SetupEx.EXE /S
In this mode, SetupEx.EXE will not put any dialogs on the screen.
It will do complete checking, and install if it can, and return an
error code if it can't.
Because it does not report any errors, it will be up to your install
program to handle errors. Note that the REBOOT_NEEDED error is not an
error but it is information that needs to be acted on.
2.2.3 Forced Install
Usage: SetupEx.EXE /F
The install will have no action if there is a driver with the same or a
more recent date already installed. However, you can force an older driver
to install by using the /F option.
Normally, this is a NOT recommended action, and may disable CrypKey
on the machine.
2.3 Uninstalling
SetupEx.exe has the ability to do either partial and complete uninstalls.
2.3.1 Partial Uninstall
Usage: SetupEx.EXE /D
If there are other programs registered in the CrypKey License Service config
the uninstall will only remove the directory SETUPEX.EXE is in from the conf
If there are no other programs using the driver, the uninstall will
stop the service, remove the files used by the CrypKey License Service, and
the user via a model dialog box that restarting Windows is required.

Note that it if the user does try to do another install before booting,
and the service was removed, they will get an error -9:
"Register Directory: Unable to open CrypKey License Service
Reason: The specified service does not exist as an installed service"
This error will go away after rebooting.
2.3.2 Forced Complete Uninstall
Usage: SetupEx.EXE /U
This will always stop the service, remove the CrypKey License Service files,
notify the user via a model dialog box of the requirement to restart Windows
The other applications registered with the CrypKey License Service, if any w
will remain so even after you re-install the CrypKey License Service using S
after first restarting Windows.
However until an install can be performed again these applications will not
able to use CrypKey authentication due to the lack of a functioning CrypKey
Service to serve them. Because of this it is recommended that /D be used in
versions, and /U be used for test purposes only.
2.3.3 Silent Uninstall
Usage: SetupEx.EXE /D /S
SetupEx.EXE /U /S
You can prevent the restart required dialog box, or any error, being shown u
sing the
"silent mode". This functions the same as with an install.
3. Behavior of Operation
The CrypKey License Service Install will install all necessary files, register
the files for automatic startup on reboot, and start the driver.
If the CrypKey License Service is already installed, the install will
- only install components if they are newer
- only require a reboot if newer components are installed
- put up a dialog requesting a reboot if it is required
- not put up a reboot dialog but give an error code if the /S parameter is used
4. Revision History
Driver updated to auto start activer server processes on driver start up.
Driver will also shut down server processes when it is shut down.

Support added for both 32-bit and 64-bit Vista. No change in use is required.
SetupEx.exe automatically detects when it is being run on x64 Vista and
installs the required 64-bit kernel binary in place of the 32-bit one.
We have received reports that the CrypKey License Service functions without
issue on x64 versions of Windows other than Vista, although CrypKey does not
offically support those platforms at this time.
SetupEx.exe and CKS.exe are now signed using a Verisign certificate, and
SetupEx.exe has a manifest that tells Vista it requires Admin privileges.