the winemaker tool is your friend. (and the outdated guide: http://www.winehq.org/docs/winelib-guide/index)