Skip to content
  • There are no suggestions because the search field is empty.

Creating a Setup Project to Distribute an OPC Server Created with SLIK-DA

How do I create a Setup Project to distribute my OPC Server that was developed with the SLIK-DA OPC Server Development Toolkit?

*or*
I am getting the error message "NDISLIKDA5.DLL must be registered" error when I deploy my OPC Server developed with the SLIK-DA OPC Server Development Toolkit.

 

The easiest way to build a Setup project for deploying a SLIK-DA-created OPC Server is to use the Merge Modules installed with SLIK-DA.

Below are the instructions on how to accomplish this in Visual Studio 2019, but this process has been proven to also work well with other versions of Visual Studio.

  1. Follow the instructions outlined here if you do not already have a licensed control on your form: How to license a custom OPC Server created with SLIK-DA
  2. Go to File-> Add -> New Project to add a new project to your solution.
  3. Choose 'Setup Wizard' and click Next. The wizard useful to ensure a step is not missed in this process.
    1. To have this project available, you have to first add the 'Microsoft Visual Studio Installer Projects' Extension from the Visual Studio Marketplace.
      1588 - VSInstallerProjects
  4. Give your Setup Project a name and click Create.
  5. The Setup Wizard will begin. In Step 1 of the Setup Wizard, click Next.
    1588 - SetupWizard1of5
  6. In Step 2 of the Setup Wizard, choose 'Create a setup for a Windows Application' and click Next.
    1588 - SetupWizard2of5
  7. In Step 3 of the Setup Wizard, select 'Primary output from <Project Name>' and click Next.
    1588 - SetupWizard3of5
  8. In Step 4 of the Setup Wizard, click Add.
    1588 - SetupWizard4of5
  9. Browse to the SLIK-DA Installation folder and select the two MSM Merge Modules.
    1. For x86 machines: C:\Program Files\Software Toolbox\SLIK-DA5\Redistributables\MergeModules
    2. For x64 machines: C:\Program Files (x86)\Software Toolbox\SLIK-DA5\Redistributables\MergeModules
      1588 - AddMergeModules
  10. If deploying SLIK-DA as an OPC UA Server, please also add SLIKDAUAConfig.xml & Add_PKI_dir_stucture.bat as files to include with the installer.
    1. For x86 machines: C:\Program Files\Software Toolbox\SLIK-DA5\Redistributables
    2. For x64 machines: C:\Program Files (x86)\Software Toolbox\SLIK-DA5\Redistributables
      1588 - UAFiles
  11. Once the Merge Modules and any additional files are added, click Next.
  12. In Step 5 of the Setup Wizard, confirm the summary and click Finish.
  13. Go to the Solutions Explorer, and if it is there, right-click on the "NDISLIKDA5.DLL" entry under "Detected Dependencies", and mark it as "Exclude". This file doesn't need to be included because it is taken care of by the Merge Modules. Doing this will also eliminate the registration error upon deployment.
    1588 - DetectedDependencies
  14. Build your Server project, then build your Setup project.
  15. Copy the resulting files (.EXE and .MSI) over to your deployment machine.
  16. Install the Visual C++ Redistributables Pack (x86) from Microsoft on the deployment machine. See here: Visual C++ Redistributable for Visual Studio 2015
  17. Run your install program.