Refactored installation mechanism for win32.