Until Vista, it was possible to copy the license file to the program directory. To ensure that a installation is working on all platforms including Vista / Windows 8 we recommend not using the program directory.
•Depending on the registration tool (see below) admin or non admin rights
During Runtime of the Application
•read and write permission to the license file
•read and write permission to the registry (hkey_current_user)
If Licence Protector is used within a .NET server application, check if the .NET server user has the necessary rights.
The folder ..\files for distribution contains all Licence Protector DLLs. There is an folder with a compressed version and uncompressed version. We recommend using the uncompressed version because it works with all compilers and operating systems.
Licence Protector offers different ways to register the DLL / COM exe:
•Using LPRegister510.exe - it registers the DLL / COM exe without needing administrator rights
•Do not register the DLL if you use a manifest file. Administrator rights are not needed. Manifest files are not supported for the COM exe
•Register the DLL / COM exe with the windows tool regsvr32.exe or the inbuilt option of an installer. This requires administrator rights
You should copy the licprotector510.dll to the \windows\system32 folder although it could also be installed in your program directory. As each DLL version of Licence Protector has an own ProgID, multiple different versions can be installed on the same machine.
•If your installer needs administrator rights, use the inbuilt option of the installer or regsvr32.exe. To use regsvr32.exe add a shell execute command in the installer which invokes regsvr32.exe
- Register the DLL: Execute "c:\windows\system32\regsvr32.exe" " ....\pathname\LicProtector510.dll" (note: this requires administrator rights)
- Register the COM exe: LicProtector510.exe /regserver (note: this does not require administrator rights)
•If your installer does not need administrator rights then use LPRegister510.exe
•If you do not have an installer and you only copy files to a folder, use a manifest file
•If you just want to register the DLL manually on one system, use LPRegister510.exe. Using regsvr32.exe would work as follows:
- right click on “Command Prompt” in Accessories and click “Run as Administrator”
- run regsvr32 "....\pathname\LicProtector510.dll” in the command window
If multiple users on one computer or services use the COM exe, then you have to register it using administration rights and the command: LicProtector510.exe /regserver /NOREDIRECT
Vista / Windows 7 / Windows 8 and MSI files
Some installers generate a message HRESULT -2147220472 or -2147023898. This is due to missing rights during installation. Use LPRegister510.exe to register the DLL and not the installer built in dll register function.
Each user needs a read and write access to the license file.
Although you could deliver an unsigned installer file, we recommend adding your digital signature. You can buy a code-signing certificate from one of the accredited providers like www.verisign.com, www.thawte or www.comodo.com.
With the digital signed installer file your users do not get warning messages when they download the file or launch the application.
First check your installation tool if it supports to add a digital signature. As installers often add their own CRC checks a digital signature would destroy the installer file. Therefore the installer tool has to add the signature first before the CRC check is added.