Beruflich Dokumente
Kultur Dokumente
User's guide
Installer API
Table of Contents
1 Preface
2 Introduction
3 API Reference
3.1.1 Functions
3.1.2 Macros
8
8
8
8
8
Installer_API.ActivateOnline Method
Installer_API.RegisterService Method
ii
Installer API
1 Preface
Brief information about this user's guide:
Publish date: 4/11/2011
Version: 1.1.0.0
Installer API
2 Introduction
Installer API is intended to be used by developers using Neurotechnology SDKs. It simplifies installer development process.
API is available as plain C DLL and contains wrapper for .NET.
Installer API
Functions
3 API Reference
This chapter contains API reference for Installer API.
Functions
Name
Description
NActivateOnline (
NGenID (
page 4)
page 4)
NRegisterDLL (
page 4)
NRegisterService (
page 5)
NSaveLicenseFile (
page 5)
NServiceExists (
NTestRuntime (
page 6)
page 6)
NTestTrialServer (
NUnregisterDLL (
page 6)
page 6)
NUnregisterService (
page 7)
Macros
Name
Description
N_FAILED (
page 7)
Defines an error code for N_FAILED. This error code is returned when
function fails.
N_FILE_NOT_FOUND (
N_OK (
page 7)
page 7)
3.1.1 Functions
3
The following table lists functions in this documentation.
Functions
Name
Description
NActivateOnline (
NGenID (
page 4)
page 4)
NRegisterDLL (
page 4)
NRegisterService (
page 5)
Installer API
NSaveLicenseFile (
NServiceExists (
NTestRuntime (
page 6)
page 6)
NTestTrialServer (
NUnregisterDLL (
page 5)
page 6)
page 6)
NUnregisterService (
page 7)
Functions
Description
char * id
char * lic
Returns
If function returns 1 then license was validated and lic parameter contains license data.
If function returns 0 then license failed to be activated. In this case lic parameter contains error description.
Description
char * serial_no
char * id_gen_path
char * id
Returns
If the function succeeds, the return value is 1. If an error occurs, the return value is 0.
Example
char *serial = "3502-266E-60C6-6738-7D1C-3872-5AD8-3C42";
char id[10240];
NGenID(serial, "d:\\Activation\\id_gen.exe", (char*)id);
Installer API
Functions
Parameters
Parameters
Description
char * path
Returns
If the function succeeds, the return value is N_OK (
Example
NRegisterDLL("FPScannerManCom.dll");
Description
char * path
char * name
Returns
If the function succeeds, the return value is N_OK (
Example
NRegisterService("SDK_PATH\\SDK_PLATFORM\\Activation\\pg.exe", "Neurotechnology");
Description
char * lic_file_name
[in] Char buffer that contains full name of a file used for
saving license file.
char * lic
char * conf_file_name
char * conf_settings
Returns
If the function succeeds, the return value is 1. If an error occurs, the return value is 0.
Example
save_license_file("c:\\license.lic", lic, "c:\\pgd.conf", "LicenceFile = c:\\license.lic");
Installer API
Functions
Description
char * name
Returns
If the service exists on a system, the return value is 1. If the service do not exists or an error occurs, the return value is 0.
Description
char * path
Returns
If the function succeeds and proper version of runtime is installed, the return value is N_OK (
or version of runtime is not proper, an error code is returned.
Description
char * path
Returns
If the function succeeds, the return value is N_OK (
Installer API
Description
char * name
Returns
If the function succeeds, the return value is N_OK (
3.1.2 Macros
The following table lists macros in this documentation.
Macros
Name
Description
N_FAILED (
page 7)
N_FILE_NOT_FOUND (
N_OK (
Defines an error code for N_FAILED. This error code is returned when
function fails.
page 7)
page 7)
Installer API
Neurotec.Installer Namespace
Namespaces
Name
Description
Neurotec.Installer (
page 8)
Description
page 8)
3.2.1.1 Classes
The following table lists classes in this documentation.
Classes
Name
Installer_API (
Description
page 8)
Description
page 8)
page 9)
Installer API
Neurotec.Installer Namespace
Parameters
Parameters
Description
string id
out string lic