Installation Tasks (ActiveX for VB6 and other)ByteScout Barcode SDK

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

Bytescout.BarCode license allow to deploy Bytescout.BarCode.dll along with your end-user application/product and re-distribute Bytescout.BarCode.dll along with your end-user application/product.

Copy of Bytescout.BarCode.DLL that you can use for re-distribution is placed in /Redistributable/ folder (in full version only)

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