This is an advanced technique generally used for bulk licenses 

If you have purchased a single-user license, use our basic installation and registration.  

You must also have a working internet connection to use command-line activation.

These instructions are for a default installation of Photo Mechanic. You'll need to specify the correct file path if you have moved the application location. 

If nothing is added to the description field, a default description is created but adding specific information such as the user name or a description of the computer can help if users need to contact Camera Bits for support.

Photo Mechanic can be activated by the command line as follows:

On Windows:

Make sure your script is running with its current directory being the directory that Photo Mechanic resides within and that you are using an Administrative Command Prompt or running your script from a Windows PowerShell script as System.

To activate Photo Mechanic use the /activate switch. The /department parameter is optional. If your names have spaces in them, quote the switch and the value as well.

start "" /w "Photo Mechanic.exe" /activate "/name=Company Name" "/department=Department Name" /license=5PQTE-..."/description=SAMPLE DESCRIPTION"

To deactivate, use the /deactivate switch.

start "" /w "Photo Mechanic.exe" /deactivate

To check whether a given system is activated, use the /activated switch.

start "" /w "Photo Mechanic.exe" /activated
Note: The "" after start is necessary or the start command won't work. The start command itself is necessary because otherwise execution of your script will run in parallel to the execution of Photo Mechanic itself and you won't get the result of the command back in your script properly.

On macOS:

Activation and Deactivation both require elevated privileges. Either run from a shell with the ability to read/write to /Library/Preferences, or by using sudo.

To activate Photo Mechanic use the --activate switch. The --department parameter is optional. If your names have spaces in them, either escape the spaces or quote the parameter and the value as well.

sudo "/Applications/Photo Mechanic 6.app/Contents/MacOS/Photo Mechanic 6" --activate "--name=Company Name" "--department=Department Name" --license=R4UDM... "--description=Description of Computer being activated"

To deactivate, use the --deactivate switch.

sudo "/Applications/Photo Mechanic 6.app/Contents/MacOS/Photo Mechanic 6" --deactivate

To check whether a given system is activated, use the --activated switch.

"/Applications/Photo Mechanic 6.app/Contents/MacOS/Photo Mechanic 6" --activated

--activated will return 1 for no activation present or for legacy registrations. --activated will return 0 when a valid activation is present.

Output for all commands goes to stderr. The shell will get the application exit value in $?.

Note: There is currently no way to do manual offline activations via command line.