diff --git a/abstractions.cc b/abstractions.cc index 7c225c8..e5f6762 100644 --- a/abstractions.cc +++ b/abstractions.cc @@ -39,7 +39,7 @@ void thread_join (HANDLE thread) { void fusermount (char *path) { char cmdLine[MAX_PATH]; - sprintf(cmdLine, "\"C:\\Program Files\\Dokan\\DokanLibrary\\dokanctl.exe\" /u %s", path); + sprintf(cmdLine, "\"%s/dokanctl.exe\" /u %s", DOKAN_INSTALL_DIR, path); STARTUPINFO info = {sizeof(info)}; PROCESS_INFORMATION procInfo; diff --git a/binding.gyp b/binding.gyp index 212f359..4172c7c 100644 --- a/binding.gyp +++ b/binding.gyp @@ -17,13 +17,20 @@ } }], ['OS=="win"', { + "variables": { + "dokan_install_path%": "