yushulx / dotnet-twain-scanner-installer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Windows Installer for .NET TWAIN Document Scanner

The project demonstrates how to use WiX Toolset to create a Windows Installer for a .NET TWAIN document scanner application and Dynamsoft Service.

How to Build the Installer

  1. Build the WinFormsDocScan project to generate the document scanner application. You need to request a 30-day FREE trial license and update the license key in the Form1.cs file.

    windows-dotnet-desktop-document-scanner

  2. Build the PackageDocScan project to generate a MSI package for the document scanner application. You need to modify the file paths in the ExampleComponents.wxs file.

    <File Source="..\WinFormsDocScan\bin\Release\net7.0-windows\WinFormsDocScan.exe" KeyPath="yes" />
    <File Source="..\WinFormsDocScan\bin\Release\net7.0-windows\Twain.Wia.Sane.Scanner.dll" />
    <File Source="..\WinFormsDocScan\bin\Release\net7.0-windows\WinFormsDocScan.deps.json" />
    <File Source="..\WinFormsDocScan\bin\Release\net7.0-windows\WinFormsDocScan.dll" />
    <File Source="..\WinFormsDocScan\bin\Release\net7.0-windows\WinFormsDocScan.pdb" />
    <File Source="..\WinFormsDocScan\bin\Release\net7.0-windows\WinFormsDocScan.runtimeconfig.json" />

    docscan-msi-installer

  3. Build the BundleDocScan project to generate a bundle installer for the document scanner application and Dynamsoft Service. You need to modify the file paths in the Bundle.wxs file.

    <MsiPackage SourceFile="..\PackageDocScan\bin\x64\Release\en-US\PackageDocScan.msi" />
    <MsiPackage SourceFile="msi\DynamsoftServiceSetup.msi" />

    wix-bundle

About


Languages

Language:C# 100.0%