Advertisement
hyperfang8

PlayOnLinux Lotro v4

Nov 27th, 2012
1,189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.10 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="Lord Of The Rings Online"
  17. PREFIX="lotro"
  18. WINEVER="1.5.18"
  19. DOWNLOADURL="http://download.fileplanet.com/ftp1/062010/LOTRO_US_FP_V3B3_042011.zip"
  20. MDSUM="8ce4e04b8e04f3cec2be7a48107a224c"
  21. SETUPNAME="LOTROSetup.exe"
  22.  
  23. POL_SetupWindow_Init
  24.  
  25. POL_SetupWindow_presentation "$TITLE" "Turbine" "http://lorebook.lotro.com/wiki/LOTRO_under_Linux_and_Mac_OS/X" "HyperFang8" "$PREFIX"
  26.  
  27. POL_Wine_SelectPrefix "$PREFIX"
  28. POL_System_SetArch "x86"
  29. POL_Wine_PrefixCreate "$WINEVER"
  30. POL_System_TmpCreate "$PREFIX"
  31.  
  32. POL_Call POL_Install_vcrun2005
  33. POL_Call POL_Install_dotnet11sp1
  34. POL_Call POL_Install_dotnet20sp2
  35.  
  36. POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
  37.  
  38. if [ "$INSTALL_METHOD" = "LOCAL" ]
  39. then
  40.     POL_SetupWindow_message "$(eval_gettext 'Make sure you downloaded offline setup, not online one! You can download it from here: http://www.fileplanet.com/213014/210000/fileinfo/The-Lord-of-the-Rings-Online-Client-%28Free-Game%29')" "$TITLE"
  41.     POL_SetupWindow_browse "$(eval_gettext 'Choose $TITLE setup offline setup file!')" "$TITLE"
  42.     POL_SetupWindow_wait "$(eval_gettext '$TITLE is instaling.')" "$(eval_gettext '$TITLE instalation')"
  43.     POL_Wine start /unix "$APP_ANSWER"
  44. elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
  45. then
  46.     cd "$POL_System_TmpDir"
  47.     POL_Download "$DOWNLOADURL" "$MDSUM"
  48.     #or should i use p7zip ??
  49.     unzip "LOTRO_US_FP_V3B3_042011.zip"
  50.     POL_SetupWindow_wait "$(eval_gettext '$TITLE is instaling.')" "$(eval_gettext '$TITLE instalation')"
  51.     POL_Wine start /unix "$POL_System_TmpDir/$SETUPNAME"
  52. fi
  53.  
  54.  
  55. POL_SetupWindow_message "$(eval_gettext 'Please make sure instalation is finished before pressing next!')" "$TITLE"
  56. POL_System_TmpDelete
  57. POL_Shortcut "TurbineLauncher.exe" "$TITLE"
  58.  
  59. POL_SetupWindow_Close
  60. exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement