[en] Pre-configuring NiceLabel installation with product.config

La traduction officielle n'est pas encore disponible.

[en] Problem

[en] You can install NiceLabel with semi-automated using pre-configuration options. The configuration file product.config. stores NiceLabel preferences. You can edit this XML file to conform to the requirements of your environment.

[en] You can use the product.config file from your existing NiceLabel installation, edit it and save it to the same folder as the NiceLabel installer file. The options defined in the product.config apply during the installation to a new computer.

[en] Solution

[en] Here are some of the most common parameters you can configure:

  • [en] License key. Enter this parameter when installing multi-user NiceLabel products, where all NiceLabel clients use the same license key.

  • [en] User interface language. You can force NiceLabel to run in a specific language. Users can also change the user interface language later in the application. Refer to this Microsoft article about language IDs. Use decimal values for language ID (not hex values).

  • [en] Default directories. Define where NiceLabel searches for the requested files (labels, solutions, images, file-based databases).

  • [en] Location of global variables. You can store your global variables on a shared network folder, or in Control Center.

  • [en] HTTP address of the linked Control Center server.

  • [en] Tracing mode. You can enable tracing mode for troubleshooting. NiceLabel creates log files in the specified or in the default (NiceLabel system) folder.

[en] The file product.config is located in the NiceLabel system folder. A default location is the following folder:

c:\ProgramData\NiceLabel\NiceLabel NiceLabel 10
c:\ProgramData\NiceLabel\NiceLabel 2019

[en] If you copy product.config from the existing NiceLabel installation, omit the client-specific parameters that must be unique per computer. Such XML elements are <MachineName> and <PrintManagementId>.

[en] You can download a sample product.config.

<?xml version="1.0" encoding="utf-8"?>
<Configuration>
  <Common>
    <General>
      <AnalyticsEnabled>True</AnalyticsEnabled>
      <GlobalVariables>
        <FilePath>C:\ProgramData\NiceLabel\Global Variables\Globals.tdb</FilePath>
      </GlobalVariables>
    </General>
    <Directories>
      <FormsFolder>%MyDocuments%\NiceLabel\Solutions</FormsFolder>
      <GraphicsFolder>%MyDocuments%\NiceLabel\Graphics</GraphicsFolder>
      <LabelsFolder>%MyDocuments%\NiceLabel\Labels</LabelsFolder>
      <DatabaseFolder>%MyDocuments%\NiceLabel\Database</DatabaseFolder>
    </Directories>
    <Languages>
      <Language>9</Language>
    </Languages>
    <Diagnostics>
      <Tracing>
        <Enabled>False</Enabled>
      </Tracing>
    </Diagnostics>
    <ControlCenter>
      <Server>http://server_name/epm/</Server>
      <AvailableServerLocations>&lt;ArrayOfString&gt;&lt;string&gt;http://server_name/epm/&lt;/string&gt;&lt;/ArrayOfString&gt;</AvailableServerLocations>
      <WasLocationDialogShown>True</WasLocationDialogShown>
    </ControlCenter>
  </Common>
  <Activation>
    <LicenseKey>ABCDE12345ABCDE12345ABCDE</LicenseKey>
  </Activation>
</Configuration>