installerName=QueueExplorer # Setting up 32-bit Wine Prefix for QE export WINEARCH=win32 export WINEPREFIX="$HOME/.wineCogin" export WINEDEBUG=-all # Skip installing MONO, since we'll install full .Net Framework later export WINEDLLOVERRIDES="mscoree=" echo "Creating Wine prefix..." wine wineboot if [ $? -ne 0 ]; then echo "There's a problem running Wine. Please check it's installed correctly." echo "You should be able to run 'Wine --version'" exit 1; fi echo "Getting Winetricks..." cd $WINEPREFIX wget -O winetricks https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks if [ $? -ne 0 ]; then echo "Getting winetricks failed" exit 1; fi chmod +x winetricks if test ! -x "$(which cabextract 2>/dev/null)"; then echo "Installing cabextract, needed for .Net installation" sudo apt-get install cabextract fi # Install .Net and fonts QueueExplorer needs ./winetricks -q dotnet462 ./winetricks -q tahoma # Download and install QueueExplorer wget -O $installerName.exe https://www.cogin.com/download/mq/download.php?file=$installerName if [ $? -ne 0 ]; then echo "Getting QueueExplorer installer failed" exit 1; fi wine $installerName.exe