Skip to content
Liryna edited this page Feb 4, 2016 · 25 revisions

Build the driver, libraries and tools

  • Clone git repository with git clone https://github.com/dokan-dev/dokany.git
  • Download Visual Studio 2015 with SDK 10 & WDK 10 then install both, Visual Studio first.
  • Navigate to dokany folder and open dokan.sln solution file with Visual Studio.
  • If using VS Professional, on VS menu select BUILD => Batch Build... then check all Win32/x64 Release configuration and click on Generate. Otherwise you can also build all platform by running build.bat.
  • All drivers, libraries and tools will be compiled. You can install them.

Build the installer

  • Download and install WiX
  • Add the needed environment variables for installer signature (only needed for Release build)
  • SIGNTOOL - Signtool.exe path (ex: C:\Program Files (x86)\Windows Kits\10\bin\x64\signtool.exe)
  • CERTISSUER - Certificat issuer name
  • ADDITIONALCERT - Your certificat path
  • Navigate to dokany\dokan_wix folder and launch build.bat.

4 Installers are going to be generated:

Version Standard Redist embedded
Release DokanSetup.exe DokanSetup_redist.exe
Debug DokanSetupDbg.exe DokanSetupDbg_redist.exe

Signing

Signing of user mode files is optional and can be done by any code-signing certificate. It is still recommended as few antivirus programs and company security policies will not allow unsigned file deployment.

Signing of kernel mode files (.sys driver files) became mandatory on recent Windows systems and must be done by a kernel code-signing certificate. On development machine, you can disable this driver signing verification by following this procedure.

If you don't want to purchase a kernel code-signing certificate, you can download and use released signed binaries version of Dokan.