跳轉到主要內容
此主題也有 Linux 版本。
若要讓使用 ABBYY FineReader Engine 12 的應用程式正常運作,必須安裝 Licensing Service。 在自動模式下進行 Developer 和執行階段安裝時,Licensing Service 會自動安裝。如果您使用手動安裝,請依照下列說明操作。Licensing Service 安裝完成後,請執行 授權管理工具程式 來管理授權。 Licensing Service 的設定定義於 LicensingSettings.xml 檔案中。此檔案會在自動安裝期間自動產生。手動安裝時,您必須在 Bin (Bin64) 資料夾中建立此檔案,並在其中指定正確的設定。Licensing Service 設定的 XML 結構描述可參閱 LicensingSettings.xsd 檔案。您可以在 Inc 資料夾中找到此檔案。設定的詳細說明請參閱 Working with the LicensingSettings.xml File 一節。
  • 我們建議您僅在執行階段安裝 (解除安裝) 時,以手動模式安裝 (解除安裝) Licensing Service。若為開發用途,請使用標準安裝與解除安裝。
  • 請使用同一套件中的 ABBYY FineReader Engine 和 Licensing Service。否則無法保證相容性。

以自動模式安裝

若要以互動式模式安裝 Licensing Service,請執行發行套件中的 installLS.exe 檔案,並依照安裝指示完成安裝。

以手動模式安裝

安裝需要管理員權限。
若要手動安裝 Licensing Service,建議先建立 Licensing Service 套件 (以下稱為 LS Package) ,也就是一個包含 ABBYY FineReader Engine 授權所需檔案的資料夾。
可在命令列中對 installLS.exe 檔案使用 /extract 選項,將發行套件中的必要檔案解壓縮到指定資料夾,而不執行安裝。該資料夾中會包含兩個子資料夾:
  • Licensing - 包含 Licensing Service 檔案
  • License Server - 包含 License Server 檔案
命令列範例:
installLS.exe /extract INSTALLDIR="C:\MyFolder"
新增以下內容到您電腦上的 LS Package:
  1. Licensing Service 資料夾,其中包含從解壓縮的 Licensing 資料夾複製的所有檔案。
  2. 授權管理員 (License Manager64) 資料夾,其中包含從解壓縮的 License Server 資料夾複製的下列檔案:Linux:libAbbyyZlib.so、libFineFormats.so、libFineNet.so、libFineObj.so、libPortLayer.so、libProtection.so、libProtectionConsoleUI.so、LicensingSchema.xe、ProductLicensingSchema.xe、LicensingService,以及 LicenseManager.Console。複製您所需介面語言的資源檔 libProtectionRes*.so,以及 libProtectionResShared.so
Windows:AbbyyZlib.dll、Awl.dll、concrt140.dll、FineFormats.dll、FineNet.dll、FineObj.dll、LicenseManager.exe、LicenseManager12.chm、LicensingSchema.xe、msvcp140.dll、ProductLicensingSchema.xe、Protection.dll、ProtectionRes0.dll、ProtectionResShared.dll、ProtectionUI.dll、vccorlib140.dll、vcruntime140.dll。
  1. KB2999226 更新,或 Microsoft Visual C++ 2015-2019 Redistributable 14.28.29912。如果您不安裝 Windows Update 套件,也可以從 distribution package 中的 External Components\VC_Redist 資料夾安裝 redistributable:vc_redist.x86.exe 和 vc_redist.x64.exe。
對於單機安裝:
  1. 將 LS Package 複製到工作站。
我們建議您將 ABBYY FineReader Engine 檔案整理為易於尋找和使用的資料夾結構。請參閱下列範例:
  • <YourApplicationFolder>/ABBYY FineReader Engine 程式庫。
  • <YourApplicationFolder>/License Server/Licensing Service。
  • <YourApplicationFolder>/License Server/授權管理員 (License Manager64)。
  1. 安裝 Microsoft Visual C++ 2015-2019 Redistributable 14.28.29912。
  2. 將 LS Package 中的資料夾複製到工作站上您預定作為 Licensing Service 的目錄。
  3. 建立一個用於儲存授權資料的資料夾 (預設為 %ProgramData%\ABBYY\SDK\12\Licenses 資料夾) 。Everyone 必須對此資料夾具有完全控制權限。
  4. 對於線上授權:建立或選擇一個資料夾,供您的應用程式搜尋授權權杖檔案,並將權杖檔案放置於其中。您可以選擇 %ProgramData%\ABBYY\SDK\12\Licenses 資料夾 (此為預設行為) ,或另一個用於儲存授權資料的資料夾。Everyone 必須對這些資料夾具有完全控制權限。
  5. 建立一個 LicensingSettings.xml 檔案,並根據授權類型指定設定 (詳情請參閱 Working with the LicensingSettings.xml File) 。
  6. 將已設定的 LicensingSettings.xml 檔案複製到工作站上的下列資料夾:
  • Licensing Service。
  • 授權管理員 (License Manager64)。
  • 含有 ABBYY FineReader Engine 檔案且與 FREngine.dll 位於同一層的資料夾。
  1. 使用 “/install” 參數執行 LicensingService.exe:
LicensingService.exe /install
針對網路安裝:
  1. 在授權伺服器上安裝 Licensing Service:
  2. 將 LS Package 複製到授權伺服器。
    注意:建議您以便於尋找和使用的資料夾結構整理 ABBYY FineReader Engine 檔案。請參閱以下範例:
  • <YourApplicationFolder>/License Server/Licensing Service.
  • <YourApplicationFolder>/License Server/授權管理員 (License Manager64).
  1. 安裝 Microsoft Visual C++ 2015-2019 Redistributable 14.28.29912。
  2. 將 LS Package 中的資料夾複製到授權伺服器上預定放置 Licensing Service 的目錄。
  3. 建立用於儲存授權資料的資料夾 (預設為 %ProgramData%\ABBYY\SDK\12\Licenses 資料夾) 。所有人都必須對此資料夾具有完全控制權限。
  4. 為授權伺服器建立 LicensingSettings.xml 檔案,並根據授權類型指定設定 (詳情請參閱 Working with the LicensingSettings.xml File) 。
  5. 將已設定的 LicensingSettings.xml 檔案複製到授權伺服器上的下列資料夾:
  • Licensing Service。
  • 授權管理員 (License Manager64) 。
  1. 設定授權伺服器與工作站之間的連線:
  2. 針對線上授權:在所有工作站上建立或選擇一個資料夾,讓您的應用程式在其中尋找授權權杖檔案,並將權杖檔案放在該資料夾中。您可以選擇 %ProgramData%\ABBYY\SDK\12\Licenses 資料夾 (此為預設行為) ,或其他用於儲存授權資料的資料夾。所有人都必須對這些資料夾具有完全控制權限。
  3. 為工作站建立 LicensingSettings.xml 檔案,並根據授權類型指定設定 (詳情請參閱 Working with the LicensingSettings.xml File) 。
  4. 在所有工作站上,將已設定的 LicensingSettings.xml 檔案複製到 ABBYY FineReader Engine 檔案所在、且與 FREngine.dll 同一層的資料夾中。
  5. 使用 "/install" 參數執行 LicensingService.exe:
LicensingService.exe /install
我們建議採用網路安裝,這樣可將 Licensing Service 與 ABBYY FineReader Engine 程式庫分開使用,進而確保 ABBYY FineReader Engine 元件持續運作。若要瞭解此情境如何套用至 Docker 容器,請參閱 在 Docker 容器內執行 ABBYY FineReader Engine 12

以手動模式解除安裝

若要以手動模式解除安裝 Licensing Service,請使用 “/uninstall” 參數執行 LicensingService.exe:
LicensingService.exe /uninstall
然後刪除存放 Licensing Service 檔案的目錄。

另請參閱

啟用 Windows 版分發 Working with the LicensingSettings.xml File