User Guide InstallationCommand Line: Installation

Command Line: Installation

How can I use the command line to install and manage SnapGene licenses?

Specify Installation Directory

To install to an alternative location use the /D switch.

snapgene_installer.exe /D C:\installation\directory


Since version 4.2, SnapGene supports automating the activation process through a new set of command-line options. Unattended Windows installations are possible by passing the /S switch to the installer. The built-in commands allow for a more streamlined silent install (i.e., accept EULA and activate using your group name and registration code). They can be listed with:

/path/to/SnapGene --help
 --about Print installation info.
 --accept-eula Accept the End-User License Agreement.
 --group-name <NAME> License group name.
 --register Activate license.
 --registration-code <CODE> License registration code.
 --unregister Deactivate the current license.

Register and Accept the EULA

Use the following flags to accept the End User License Agreement (EULA) and activate your copy of SnapGene:

(Note that dashes, while allowed, are not required when specifying the registration code.)

/path/to/SnapGene --accept-eula \
                  --register \
                  --group-name "YOUR GROUP NAME" \
                  --registration-code "YOUR REGISTRATION CODE"

Unregister a Computer

To unregister SnapGene and free up the license for use on another computer, use the unregister flag:

/path/to/SnapGene --unregister

View License Information

To see information about a current installation, even while the user is currently running SnapGene, use the about flag:

/path/to/SnapGene --about

Your group name, registration code, other license, and installation information will then be shown.

 Application Name: SnapGene
 Application Version: 4.2.5
 OS Name: macOS High Sierra
 OS Version: 10.13
 Computer Name: imac
 User UUID: {00000000-0000-0000-0000-000000000000}
 User Name: Joe User
 License Type: static
 Group Name: Fly Lab
 Registration Code: YOUR-REG-CODE
 License UUID: {11111111-1111-1111-1111-111111111111}
 Updates Until: May 2, 2019
 Application Data Directory: /Users/joe/Library/Application Support/SnapGene
 Temporary Files Directory: /Users/joe/Library/Caches/SnapGene
 Documents Directory: /Users/joe/Documents
 Host Name: imac
 Domain Name:
 Local Host Name: imac
 External IP address: