Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Date : (27-11-2012)
- # Last revision : (27-11-2012)
- # Wine version used : 1.5.18
- # Distribution used to test : Lubuntu 12.10 32bit
- # Author : Hyperfang8
- # Script licence : Public Domain
- # Program licence : Freeware/Shareware
- # Depend : Play On Linux
- [ "$PLAYONLINUX" = "" ] && exit 0
- source "$PLAYONLINUX/lib/sources"
- #System variables
- #$(eval_gettext '')
- TITLE="Lord Of The Rings Online"
- PREFIX="lotro"
- WINEVER="1.5.18"
- DOWNLOADURL="http://download.fileplanet.com/ftp1/062010/LOTRO_US_FP_V3B3_042011.zip"
- MDSUM="8ce4e04b8e04f3cec2be7a48107a224c"
- SETUPNAME="LOTROSetup.exe"
- POL_SetupWindow_Init
- POL_SetupWindow_presentation "$TITLE" "Turbine" "http://lorebook.lotro.com/wiki/LOTRO_under_Linux_and_Mac_OS/X" "HyperFang8" "$PREFIX"
- POL_Wine_SelectPrefix "$PREFIX"
- POL_System_SetArch "x86"
- POL_Wine_PrefixCreate "$WINEVER"
- POL_System_TmpCreate "$PREFIX"
- POL_Call POL_Install_vcrun2005
- POL_Call POL_Install_dotnet11sp1
- POL_Call POL_Install_dotnet20sp2
- POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
- if [ "$INSTALL_METHOD" = "LOCAL" ]
- then
- 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"
- POL_SetupWindow_browse "$(eval_gettext 'Choose $TITLE setup offline setup file!')" "$TITLE"
- POL_SetupWindow_wait "$(eval_gettext '$TITLE is instaling.')" "$(eval_gettext '$TITLE instalation')"
- POL_Wine start /unix "$APP_ANSWER"
- elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
- then
- cd "$POL_System_TmpDir"
- POL_Download "$DOWNLOADURL" "$MDSUM"
- #or should i use p7zip ??
- unzip "LOTRO_US_FP_V3B3_042011.zip"
- POL_SetupWindow_wait "$(eval_gettext '$TITLE is instaling.')" "$(eval_gettext '$TITLE instalation')"
- POL_Wine start /unix "$POL_System_TmpDir/$SETUPNAME"
- fi
- POL_SetupWindow_message "$(eval_gettext 'Please make sure instalation is finished before pressing next!')" "$TITLE"
- POL_System_TmpDelete
- POL_Shortcut "TurbineLauncher.exe" "$TITLE"
- POL_SetupWindow_Close
- exit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement