Link Search Menu Expand Document

Installation Tasks (ActiveX for VB6 and other)

Installation of Bytescout.BarCode.dll for use in ActiveX compatible applications (VB6, VBScript and other)

WINDOWS SERVER and WINDOWS TERMINAL SERVER MACHINES: to use DLL from the SDK on Windows Server machine you need to activate it first. Copy Activation.exe or ActivationConsole.exe and run it to perform activation of your server machine first.

non-SERVER WINDOWS 7/10/11 MACHINES: just copy the dll files along with your app and run your app. No activation is required on non-Server edition of Windows unless defined otherwise.

SDK license allows you to re-distribute dlls along with your end-user application/product to a given number of Windows Server or non-Server Windows machines which are defined by your license type.

The copy of the dlls that you can include iwth your app is located in /Redistributable/ folder (IMPORTANT: please use FULL version of the product. Files from DEMO or FREE TRIAL versions must not be used in a final product or app).

You should use InstallActiveX.bat and UninstallActiveX.bat batch files to install and uninstall the dll.

Example
InstallAsActiveX.bat (if you have .NET 1.10 framework installed)
REM coping Bytescout.BarCode.dll into /System32/ as COM server libraries
copy Bytescout.BarCode.dll %windir%\System32\Bytescout.BarCode.dll

REM register the dll as ActiveX library
%windir%\Microsoft.NET\Framework\v1.1.4322\regasm.exe %windir%\System32\Bytescout.BarCode.dll /tlb:Bytescout.BarCode.tlb /codebase
InstallAsActiveX.bat (if you have .NET 2.00 framework installed)
REM coping Bytescout.BarCode.dll into /System32/ as COM server libraries
copy Bytescout.BarCode.dll %windir%\System32\Bytescout.BarCode.dll
REM register the dll as ActiveX library
%windir%\Microsoft.NET\Framework\v2.0.50727\regasm.exe %windir%\System32\Bytescout.BarCode.dll /tlb:Bytescout.BarCode.tlb  /codebase
UninstallAsActiveX.bat (if you have .NET 1.10 framework installed)
REM unregister the dll as ActiveX library
%windir%\Microsoft.NET\Framework\v1.1.4322\regasm.exe %windir%\System32\Bytescout.BarCode.dll /tlb:Bytescout.BarCode.tlb /unregister 

REM removing Bytescout.BarCode.dll
DEL %windir%\System32\Bytescout.BarCode.dll
UninstallAsActiveX.bat (if you have .NET 2.00 framework installed)
REM unregister the dll as ActiveX library
%windir%\Microsoft.NET\Framework\v2.0.50727\regasm.exe %windir%\System32\Bytescout.BarCode.dll /tlb:Bytescout.BarCode.tlb /unregister 
REM removing Bytescout.BarCode.dll
DEL %windir%\System32\Bytescout.BarCode.dll
If you use popular Inno Setup then use this sample code for installation of Bytescout.BarCode.dll
[Files] 
Source: "Bytescout.BarCode.dll"; DestDir: "{app}"

[Run]
; installing Bytescout.BarCode.dll as ActiveX
Filename: {app}\InstallAsActiveX.bat; WorkingDir: {app}; StatusMsg: Registering Bytescout.BarCode.dll as ActiveX library...; Flags: runhidden

[UninstallRun]
; uninstalling Bytescout.BarCode.dll as ActiveX
Filename: {app}\UninstallAsActiveX.bat; WorkingDir: {app}; StatusMsg: Unregistering Bytescout.BarCode.dll as ActiveX library...; Flags: runhidden

Copyright © 2016 - 2021 ByteScout