implement patch pre-check system on Windows