sv ru pl es fr

Applications

Choose a category

Future Pinball

Informations

This script is signed by PlayOnLinux.

Source code

#!/bin/bash
# Date : (????-??-?? ??-??)
# Last revision : (2010-12-21 17-54)
# Wine version used : 1.2.2
# Author : MulX and SuperPlumus

[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"

TITLE="Future Pinball"
PREFIX="FuturePinball"
WORKING_WINE_VERSION="1.2.2"

if [ "$POL_LANG" == "fr" ]
then
LNG_CHOOSE_MEDIA="Choisissez votre méthode d'installation :"
LNG_MEDIA_DL="Téléchargement automatique"
LNG_MEDIA_LOCAL="Depuis le disque dur"
LNG_DOWNLOAD_RUN="Téléchargement en cours..."
LNG_CHOOSE_LOCAL="Veuillez sélectionner votre exécutable de $TITLE"
LNG_INSTALL_RUN="Installation en cours..."
LNG_WAIT_END="Cliquez sur \"Suivant\" UNIQUEMENT quand l'installation de\n$TITLE sera terminée."
LNG_SUCCES="$TITLE a été installé avec succès !"
else
LNG_CHOOSE_MEDIA="Choose your install method :"
LNG_MEDIA_DL="Download automaticaly"
LNG_MEDIA_LOCAL="Use local file"
LNG_DOWNLOAD_RUN="Downloading..."
LNG_CHOOSE_LOCAL="Please select your $TITLE executable"
LNG_INSTALL_RUN="Installation in progress..."
LNG_WAIT_END="Click on \"Forward\" ONLY when the\n$TITLE installation is finished."
LNG_SUCCES="$TITLE has been installed successfully."
fi

POL_SetupWindow_Init

POL_SetupWindow_presentation "$TITLE" "Future Pinball" "http://www.futurepinball.com/" "MulX and SuperPlumus" "$PREFIX"

POL_SetupWindow_install_wine "$WORKING_WINE_VERSION"
Use_WineVersion "$WORKING_WINE_VERSION"
    
select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate

POL_LoadVar_PROGRAMFILES


cd "$REPERTOIRE/ressources"

# vsh56vb
if [ ! -e "vbs56men.exe" ]
then
    POL_SetupWindow_download "$LNG_DOWNLOAD_RUN" "$TITLE" "http://download.microsoft.com/download/IE60/Patch/Q318089/W9XNT4Me/EN-US/vbs56men.exe"
fi

# dcom98
if [ ! -e "DCOM98.EXE" ]
then
    POL_SetupWindow_download "$LNG_DOWNLOAD_RUN" "$TITLE" "http://download.microsoft.com/download/d/1/3/d13cd456-f0cf-4fb2-a17f-20afc79f8a51/DCOM98.EXE"
fi

# vsh56vb
wine vbs56men.exe /Q

# dcom98
Set_OS "win98"
rm $WINEPREFIX/drive_c/windows/system32/ole32.dll
rm $WINEPREFIX/drive_c/windows/system32/oleaut32.dll
rm $WINEPREFIX/drive_c/windows/system32/olepro32.dll
rm $WINEPREFIX/drive_c/windows/system32/rpcrt4.dll

POL_SetupWindow_wait_next_signal "$LNG_INSTALL_RUN" "$TITLE"
WINEDLLOVERRIDES="ole32,advpack=n" wine DCOM98.EXE /Q
POL_SetupWindow_detect_exit
Set_OS "winxp"

POL_Call POL_Function_OverrideDLL "native,builtin" "ole32" "oleaut32" "rpcrt4"

POL_Call POL_Function_override_app_dlls "explorer.exe" "builtin" "ole32"
POL_Call POL_Function_override_app_dlls "explorer.exe" "builtin" "oleaut32"
POL_Call POL_Function_override_app_dlls "explorer.exe" "builtin" "rpcrt4"

POL_Call POL_Function_override_app_dlls "iexplore.exe" "builtin" "ole32"
POL_Call POL_Function_override_app_dlls "iexplore.exe" "builtin" "oleaut32"
POL_Call POL_Function_override_app_dlls "iexplore.exe" "builtin" "rpcrt4"

POL_Call POL_Function_override_app_dlls "services.exe" "builtin" "ole32"
POL_Call POL_Function_override_app_dlls "services.exe" "builtin" "oleaut32"
POL_Call POL_Function_override_app_dlls "services.exe" "builtin" "rpcrt4"

POL_Call POL_Function_override_app_dlls "wineboot.exe" "builtin" "ole32"
POL_Call POL_Function_override_app_dlls "wineboot.exe" "builtin" "oleaut32"
POL_Call POL_Function_override_app_dlls "wineboot.exe" "builtin" "rpcrt4"

POL_Call POL_Function_override_app_dlls "winedevice.exe" "builtin" "ole32"
POL_Call POL_Function_override_app_dlls "winedevice.exe" "builtin" "oleaut32"
POL_Call POL_Function_override_app_dlls "winedevice.exe" "builtin" "rpcrt4"

POL_SetupWindow_menu "$LNG_CHOOSE_MEDIA" "$TITLE" "$LNG_MEDIA_DL~$LNG_MEDIA_LOCAL" "~"
GAME_MEDIAVERSION="$APP_ANSWER"

if [ "$GAME_MEDIAVERSION" == "$LNG_MEDIA_DL" ]; then

cd "$REPERTOIRE/tmp"
POL_SetupWindow_download "$LNG_DOWNLOAD_RUN" "$TITLE" "http://members.iinet.net.au/~cleathley/downloads/FuturePinballSetup_v1.9.20081225.exe"
POL_SetupWindow_wait_next_signal "$LNG_INSTALL_RUN" "$TITLE"
wine start /unix "$REPERTOIRE/tmp/FuturePinballSetup_v1.9.20081225.exe"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$LNG_WAIT_END" "$TITLE"

elif [ "$GAME_MEDIAVERSION" == "$LNG_MEDIA_LOCAL" ]; then

cd "$HOME"
POL_SetupWindow_browse "$LNG_CHOOSE_LOCAL" "$TITLE"
SETUP_EXE="$APP_ANSWER"
POL_SetupWindow_wait_next_signal "$LNG_INSTALL_RUN" "$TITLE"
wine start /unix "$SETUP_EXE"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$LNG_WAIT_END" "$TITLE"

fi

POL_SetupWindow_auto_shortcut "$PREFIX" "Future Pinball.exe" "$TITLE"

Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE"

chmod -R 777 "$REPERTOIRE/tmp/"
rm -rf "$REPERTOIRE/tmp/*"

POL_SetupWindow_message "$LNG_SUCCES" "$TITLE"

POL_SetupWindow_Close

exit

Signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEABECAAYFAk1cJD8ACgkQ5TH6yaoTykf/6QCfV99hn/fF11TO/iCu6JkBaNMk
VKwAoKeKx76t0nLaSBqnSwlggdhAwJw5
=T17d
-----END PGP SIGNATURE-----
	Date : 16 February 2011 20:23:43
Signed by : PlayOnLinux
E-Mail : gpg@playonlinux.com
Comment : PlayOnLinux and PlayOnMac scripting keys
Fingerprint : 45B56114D9EA1640D68135CCE531FAC9AA13CA47

Known install files

Il n'y a rien à voir ici