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="CrossFire"
- PREFIX="CrossFire"
- WINEVER="1.5.18"
- DOWNLOADURL="http://download.g4box.com/crossfire_downloader.exe"
- MDSUM=""
- SETUPNAME="crossfire_downloader.exe"
- POL_SetupWindow_Init
- POL_Debug_Init
- POL_SetupWindow_presentation "$TITLE" "z8games" "http://crossfire.z8games.com/" "HyperFang8" "$PREFIX"
- POL_Wine_SelectPrefix "$PREFIX"
- POL_Wine_PrefixCreate "$WINEVER"
- POL_System_TmpCreate "$PREFIX"
- #POL_Call POL_Install_vcrun2010
- POL_Call POL_Install_wininet
- POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
- if [ "$INSTALL_METHOD" = "LOCAL" ]
- then
- POL_SetupWindow_browse "$(eval_gettext 'Choose $TITLE setup file!')" "$TITLE"
- SETUPNAME="$APP_ANSWER"
- elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
- then
- cd "$POL_System_TmpDir"
- POL_Download "$DOWNLOADURL"
- fi
- POL_SetupWindow_wait "$(eval_gettext '$TITLE is instaling.')" "$(eval_gettext '$TITLE instalation')"
- POL_Wine start /unix "$SETUPNAME"
- 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"
- POL_System_TmpDelete
- #POL_Shortcut "CrossFire.exe" "$TITLE"
- #Kills PMB?
- POL_Wine_reboot
- POL_SetupWindow_Close
- exit
Advertisement
Add Comment
Please, Sign In to add comment