You are here > Les forums > Your creations. > [Script] Babas Chess
#!/bin/bash [ "$PLAYONLINUX" = "" ] && exit source "$PLAYONLINUX/lib/sources" POL_SetupWindow_Init POL_SetupWindow_prefixcreate select_prefix "$HOME/.PlayOnLinux/wineprefix/BabasChess/" #Setup GDI Plus cd "$REPERTOIRE/ressources" if [ ! -e "WindowsXP-KB975337-x86-ENU.exe" ]; then POL_SetupWindow_download "Downloading" "GDI Plus" "http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe" fi POL_SetupWindow_wait_next_signal "Installing ..." "GDI Plus" wine WindowsXP-KB975337-x86-ENU.exe /extract:C:\\Tmp /q cd $WINEPREFIX/drive_c/Tmp mv ./asms/10/msft/windows/gdiplus/gdiplus.dll ../windows/system32 cat << EOF > OGL.reg [HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides] "gdiplus"="native" EOF regedit OGL.reg #Setup Tahoma cd "$REPERTOIRE/ressources" if [ ! -e "tahoma32.exe" ]; then POL_SetupWindow_download "Downloading" "tahoma" "http://#download.microsoft.com/download/office97pro/fonts/1/w95/en-us/tahoma32.exe" fi cd "$REPERTOIRE/ressources" POL_SetupWindow_wait_next_signal "Installing ..." "tahoma" mkdir "tahoma" cd tahoma cabextract "../tahoma32.exe" mv ./Tahoma.TTF $WINEPREFIX/drive_c/windows/Fonts/tahoma.ttf mv ./Tahomabd.TTF $WINEPREFIX/drive_c/windows/Fonts/tahomabd.ttf cd $WINEPREFIX/drive_c/windows/system32/Fonts chmod +w tahoma*.ttf cd "$REPERTOIRE/ressources" rm -rf tahoma #Setup Babas Chess cd "$REPERTOIRE/ressources" if [ ! -e "SetupBabasChess_4_0_XP.exe" ]; then POL_SetupWindow_download "Downloading" "Babas Chess" "http://www.babaschess.net/download/SetupBabasChess_4_0_XP.exe" fi POL_SetupWindow_wait_next_signal "Installation of Steam" "Babas Chess" wine "SetupBabasChess_4_0_XP.exe" POL_SetupWindow_detect_exit POL_SetupWindow_message "Babas Installed" POL_SetupWindow_make_shortcut "BabasChess" "Program Files/BabasChess" "BabasChess.exe" "" "Babas Chess" #end POL_SetupWindow_Close
112 people online