본문 바로가기

언어/기타

[XNS and ActiveX SDK] I want to redistribute the ActiveX SDK with my setup file

https://step.hanwha-security.com/kor_EN/HelpDesk/FAQ_List.aspx#

You can redistribute Samsung SDK as follows.

 

1. Must include all binaries in the installed path of the sdk.

    - Default path is "C:\Program Files\Samsung\XnsActiveXSDK\Bin", $INSTALL_PATH)

 

2. Must include "$INSTALL_PATH/Config", "$INSTALL_PATH/Viewer"

 

3. Can exclude "$INSTALL_PATH/Sample" directory

 

4. Rename the file "$INSTALL_PATH/Confi/xns_simple.xml" to "xns.xml"  (Optional)

    - Before doing this, it's better to backup the file old "xns.xml"

    - Some dll files in the sdk need to .NET Framework 4.0 or it's own setup file, If you don't connect Net-i ware or old models of samsung DVR (SVR-XXXX, SRD-440), these files are not necessary.

    - If you need to connect Net-i ware or SVR-XXXX, don't change the file. but you shoud install .Net framework 4.0 runtime and WESPSDKSetup.exe in a SDK/bin directory.

 

5. Register XnsSdkDevice.ocx, XnsSdkWindow.ocx in the registry.

   - Use regsvr32 command or run "$INSTALL_PATH/RegXnsSDK.bat"

   * Regsvr32.exe in Windows 64 bit OS is in two different places:

      C:\Windows\System32  (here for 64 bit Dlls) and

      C:\Windows\syswow64 (for 32 bit Dlls)

      Run cmd as administrator, go to syswow64 dir, and run regsvr32.exe from that location.

      That will work.

 

 cd \windows\syswow64
regsvr32 c:\Profile Files(x86)\Samsung\XnsActiveXSdk\bin\XnsSdkWindow.ocx
regsvr32 c:\Profile Files(x86)\Samsung\XnsActiveXSdk\bin\XnsSdkDevice.ocx

 

 

Notice. The sdk has dependency with "Microsoft Visual C++ 2010 x86 redistributable" library. You can also download it from MS website.