Skip to content

Installation

Liryna edited this page Dec 30, 2021 · 21 revisions

Choose a version

Recommended version is the latest release. This version is working on Windows 11, 10, 8.1, 8, 7, and related server editions.

Be aware that versions >= 0.8.0 are incompatible with previous ones. Concretely, it means that if you attempt to use latest releases with an user file system driver that it is not aware of it, it will fail. For those oldies, please use these versions:

  • 0.7.4 for Windows 10, Windows 8.1, Windows 8 and Windows 7
  • 0.6.0 for Windows Vista and Windows XP

Different installer

Each release will have 6 different installer:

Name Type x86 x64 Redistributable packaged
DokanSetup.exe Release X X -
DokanSetup_redist.exe Release X X X
DokanSetupDbg.exe Debug X X -
DokanSetupDbg_redist.exe Debug X X X
Dokan_x64.msi Release - X -
Dokan_x86.msi Release X - -

The debug version are not fully signed and might need to configure your Windows to be able to run.

MSI packages are made to be integrated to third part install. See MSI files and WiX

Components of the Library

When the installer executes, it will install Dokan file system driver (dokan2.sys) and several libraries. The detailed list of files installed is as follows:

System global

  • SystemFolder\dokan2.dll Dokan user mode library
  • SystemFolder\dokannp2.dll Dokan Network Provider
  • SystemFolder\drivers\dokan2.sys Dokan File System Driver

Program Files x86 / x64

  • ProgramFilesFolder\Dokan\DokanLibrary\dokanctl.exe Dokan control program
  • ProgramFilesFolder\Dokan\DokanLibrary\dokan2.lib Dokan import library
  • ProgramFilesFolder\Dokan\DokanLibrary\dokan.h Dokan library header
  • ProgramFilesFolder\Dokan\DokanLibrary\dokanfuse2.lib Dokan Fuse static library
  • ProgramFilesFolder\Dokan\DokanLibrary\README.url Dokan documentation link

You can use Add/Remove programs in Control Panel to uninstall Dokan. It is required to restart your computer after uninstallation.

Manual installation

After build, resulting binaries files are located on Win32 and x64 folders.

  • First, copy the driver file dokan2.sys to %WINDIR%\system32\drivers that can be found in x64\Release\Driver\dokan2.sys for x64 Windows system.
  • Then copy Dokan Library dokan2.dll and Dokan Network Provider dokannp2.dll from x64\Release to %WINDIR%\system32 so it can be called globally by any application (otherwise you will have to put it side-by-side to your application).
  • To run dokan, you will need Packages redistribuables Visual C++ version used during the build.
  • Move to x64\Release, then install Dokan driver with dokanctl.exe /i d and Dokan network provider with dokanctl.exe /i n if you want to mount network drive.
  • Develop your file system and mount it.