This article describes license types and how you can register a production license key. If you want to evaluate Graphics Mill before you purchase a license, you can generate a trial license key as described in the Evaluating Graphics Mill topic.
There are several ways to register a production license key for Graphics Mill:
web.config
file.Starting from version 10, Graphics Mill works with the following license types:
XPNlkfesMg3ZuPRhAhjseQ==
) and application name (for example, ImageViewer.exe
). If this license type is unavailable in your account, you can contact our support team.For server licenses, Graphics Mill is available in two editions: Standard and Professional. The Professional edition includes the Standard edition's features, but additionally supports reading PSD (Photoshop) files.
Activation codes are generated based on hardware parameters in the Graphics Mill License Manager.
You can activate this code and get your license key in your Graphics Mill account. After you paste your key and press Proceed, you can verify the license type and maintenance period.
Starting from Graphics Mill 10, license keys have the following format:
gm.std.dev.max:5.maint:2018-01-01_QJ8Zbs68BtSXG6a2/AFlXY65LWC//WUfX5yv8NJmaHiIZbgwKWhpn3+GdWcFZ1h3fjRmIM3ZKwH2sqQ2pCYilpACFuFFOiuUpJJIaw6fEzbmEEuZnVlkfpRd450HChjddA==
You may notice that such a key contains license parameters in its prefix.
License keys of earlier versions look as follows:
80FF0-020B2-99F10-00074-942DF-5E924B
Graphics Mill License Manager is intended to register license keys on developer machines and target web servers. This tool is distributed along with Graphics Mill:
Aurigma\Graphics Mill 10 SDK\LicenseManager
.packages\Aurigma.GraphicsMill.Core.x86.10.x.x\tools\LicenseManager
.After launching the License Manager, you will see the following dialog:
If you have not yet registered on www.graphicsmill.com, enter your name, company, and email on the New user tab. If you have been registered on www.graphicsmill.com, open the Existing user tab and enter your email and password.
After you press the Proceed button, you will be redirected to a page at www.graphicsmill.com stating your license key and its expiry date. The tool retrieves a production key from your account and registers it in your system. If a trial license key cannot be obtained or registered for some reason, please contact our support team.
If by whatever reason you cannot register license keys using Graphics Mill License Manager, you can apply a license key by updating the Windows Registry manually. To perform this, download your license key from My Licenses & Downloads and create the .reg
file or update the following keys of the Windows Registry, depending on your Graphics Mill version:
[HKEY_LOCAL_MACHINE\SOFTWARE\Aurigma\Graphics Mill for .NET\10.0] "License Key"="YOUR_KEY" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Aurigma\Graphics Mill for .NET\10.0] "License Key"="YOUR_KEY"
[HKEY_LOCAL_MACHINE\SOFTWARE\Aurigma\Graphics Mill for .NET\6.0] "License Key"="YOUR_KEY" [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Aurigma\Graphics Mill for .NET\6.0] "License Key"="YOUR_KEY"
Also, you can download the .reg
file from the following link: Register License Key Offline.
If you deploy a web application on a server where you have no permission to patch the registry, you can register a production key using a LIC file.
If you develop a desktop application, do not include a production license key in the end product using a LIC file! Instead, register Graphics Mill at the development machine only and embed a license key into application resources. This approach is described in the Using Licenses.licx File section of this article.
Aurigma.GraphicsMill.lic
.\bin
folder of your web application.This approach is intended for desktop applications and requires a Developer, Desktop Applications license. You should apply all the steps described in this section on the development machine only. After you execute these instructions correctly, a production license key will be imported into the resources of your application. Therefore you do not need to register Graphics Mill on the customers' workstations.
Licenses.licx
(you cannot give this file any other name) into the project, or open an existing one.
Normally, Visual Studio hides this file in the Solution Explorer. That's why it is possible that this file already exists in your project (under certain circumstances it is auto-generated). In this case, click Show All Files on the Solution Explorer tree pane to see this file.
If you use Graphics Mill as a custom control application (rather than in an end-user desktop application), you should add the Licenses.licx
file into the desktop application that uses your control.
Add the following string into this file:
Aurigma.GraphicsMill.Bitmap,Aurigma.GraphicsMill
In other words, you should add the name of the licensed class and DLL name without the file extension, separated by a comma.
If the license key works on the developer's machine and does not work on the customers' workstations, this most likely means that there are some problems with the Licenses.licx
file. In this case, check whether you have correctly performed Step 2 above.
When you compile your application and obtain the LicenseException: This license type cannot be embedded into the assembly, you should verify the license type of the registered key.
To embed a license key into an assembly, you need a Developer, Desktop Applications license. Such a key must be in the registry at the compilation time.
If you have a complicated build process or don't want to have a dependency on a registry, it is possible to build a resource for your desktop application manually. In this case, it's not necessary to have a license for the currently building application in the registry.
Aurigma.GraphicsMill.dll
- the actual version of Graphics Mill you are going to reference.Aurigma.GraphicsMill.lic
- a text file with the license key.complist.txt
- a text file with Aurigma.GraphicsMill.Bitmap,Aurigma.GraphicsMill
string, like in the licenses.licx.lc.exe
is a part of Windows SDK, so the probable path where you can find it looks like this:"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.7.1 Tools\x64"
Run this on the command line:
lc.exe /target:YourApplicationName.exe /complist: complist.txt /i:Aurigma.GraphicsMill.DLL
Then, find the generated yourapplicationname.exe.licenses
file.
The bitness of lc.exe
and Aurigma.GraphicsMill.dll
files must be the same.
.csproj
file:
<Target Name="BeforeBuild"> <ItemGroup> <EmbeddedResource Include="yourapplicationname.exe.licenses"> <LogicalName>YourApplicationName.exe.licenses</LogicalName> </EmbeddedResource> </ItemGroup> </Target>
You need to repeat these steps each time you update your license or Graphics Mill version.
In your application, you can specify a license key by using the static method License.Set().
var key = "<YOUR_LICENSE_KEY>"; Aurigma.GraphicsMill.Licensing.License.Set(key);
On a development web server, you can apply a license key in your application's web.config
file. To perform this, insert your license key in the appSettings
section. For example, for Graphics Mill 10 this key may look as follows:
<appSettings> <add key="GraphicsMillLicenseKey" value="<YOUR_LICENSE_KEY>" /> </appSettings>
Don't use this approach with Enterprise licenses (with custom licensing) if you deliver a third-party solution as it may disclose your license key.
If you have a version earlier than Graphics Mill 10, you can check whether the registered license key is a trial or production key as well as obtain the expiration date. The following code sample demonstrates how to perform that check.
var license = Aurigma.GraphicsMill.Configuration.License; if (license.IsTrial) { Console.WriteLine("Evaluation period expires on " + license.ExpirationDate.ToString()); } else { Console.WriteLine("Maintenance period expires on " + license.MaintenanceExpirationDate.ToString()); }
Graphics Mill 10 allows you to check the following license parameters.
var lic = Aurigma.GraphicsMill.Configuration.License; Console.Write(System.String.Format("{0};{1};{2};{3};{4};{5};", lic.Source, // a license key lic.IsTrial, // whether this is an evaluation license lic.ExpirationDate, // the license expiration date lic.MaintenanceExpirationDate, // the maintenance period lic.IsDeveloper, // whether this is a Developer license lic.IsDesktopOnly // whether this license is for desktop use only ));