re-usable function for windows install