[Bug 1379] New: - Remove duplication of code between winesetup and wineconf/wineinstall.