Fix upgrade non-support on Windows