fix for preinstall on windows