Skip to content

Installation

pyy edited this page May 11, 2016 · 21 revisions

Choose a version

Recommended version is the latest release. This version is working on Windows 10, Windows 8.1, Windows 8, Windows 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

Components of the Library

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

System global

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

Program Files x86 / x64

  • ProgramFilesFolder\Dokan\DokanLibrary\mounter.exe Dokan mounter service
  • ProgramFilesFolder\Dokan\DokanLibrary\dokanctl.exe Dokan control program
  • ProgramFilesFolder\Dokan\DokanLibrary\dokan.lib Dokan import library
  • ProgramFilesFolder\Dokan\DokanLibrary\dokan.h Dokan library header
  • ProgramFilesFolder\Dokan\DokanLibrary\dokanfuse.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 dokan.sys to %WINDIR%\system32\drivers. The driver file is specific to a Windows installation, for Windows 8.1 64-bit you will have to copy the file x64\Win8.1Release\dokan.sys for instance.
  • Then copy Dokan Library dokan.dll and Dokan Network Provider dokannp.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++. If you have build with Visual Studio 2015, you can download it here.
  • Move to x64\Release, then install Dokan services with dokanctl.exe /i a. This will install the Dokan driver service and Dokan mounter service ; it is similar to dokanctl.exe /i d and dokanctl.exe /i s.

Alternatively for Dokan driver service you can use sc command:

sc create dokan type= kernel binPath= system32\drivers\dokan1.sys
sc start dokan
  • Run dokanctl.exe /i n. this will register the Dokan Network Provider.
  • Develop your file system and mount it.