hyperfang8

PlayOnLinux CrossFire installer

Nov 28th, 2012
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.64 KB | None | 0 0
  1. #!/bin/bash
  2. #Date : (27-11-2012)
  3. # Last revision : (27-11-2012)
  4. # Wine version used : 1.5.18
  5. # Distribution used to test : Lubuntu 12.10 32bit
  6. # Author : Hyperfang8
  7. # Script licence : Public Domain
  8. # Program licence : Freeware/Shareware
  9. # Depend : Play On Linux
  10.  
  11. [ "$PLAYONLINUX" = "" ] && exit 0
  12. source "$PLAYONLINUX/lib/sources"
  13.  
  14. #System variables
  15. #$(eval_gettext '')
  16. TITLE="CrossFire"
  17. PREFIX="CrossFire"
  18. WINEVER="1.5.18"
  19. DOWNLOADURL="http://download.g4box.com/crossfire_downloader.exe"
  20. MDSUM=""
  21. SETUPNAME="crossfire_downloader.exe"
  22.  
  23. POL_SetupWindow_Init
  24. POL_Debug_Init
  25. POL_SetupWindow_presentation "$TITLE" "z8games" "http://crossfire.z8games.com/" "HyperFang8" "$PREFIX"
  26.  
  27. POL_Wine_SelectPrefix "$PREFIX"
  28. POL_Wine_PrefixCreate "$WINEVER"
  29. POL_System_TmpCreate "$PREFIX"
  30.  
  31.  
  32. #POL_Call POL_Install_vcrun2010
  33. POL_Call POL_Install_wininet
  34.  
  35.  
  36. POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
  37.  
  38. if [ "$INSTALL_METHOD" = "LOCAL" ]
  39. then
  40.      POL_SetupWindow_browse "$(eval_gettext 'Choose $TITLE setup file!')" "$TITLE"
  41.     SETUPNAME="$APP_ANSWER"
  42. elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
  43. then
  44.     cd "$POL_System_TmpDir"
  45.     POL_Download "$DOWNLOADURL"
  46. fi
  47. POL_SetupWindow_wait "$(eval_gettext '$TITLE is instaling.')" "$(eval_gettext '$TITLE instalation')"
  48. POL_Wine start /unix "$SETUPNAME"
  49.  
  50. POL_SetupWindow_message "$(eval_gettext 'Please make sure instalation is finished before pressing next!\nNOTE: Instalation might seem like lagging , leave it like that!\nWARNING: Do not use PAUSE,STOP or MINIMIZE buttons!')" "$TITLE"
  51. POL_System_TmpDelete
  52. #POL_Shortcut "CrossFire.exe" "$TITLE"
  53. #Kills PMB?
  54. POL_Wine_reboot
  55.  
  56. POL_SetupWindow_Close
  57. exit
Advertisement
Add Comment
Please, Sign In to add comment