POL_Function_simplecdscript

Informations

Creator Message
Quentin PÂRIS
Admin

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 27428
Wine: System

Feedbacks

Source code

#!/bin/bash
# PlayOnLinux Function
 
# Date : (2011-03-06 04-54)
# Last revision : (2011-03-06 04-54)
# Author : SuperPlumus, Tinou

# Arguments
# $1 : Nom du script
# $2 : Nom du préfixe
# $3 : Editeur
# $4 : URL Editeur
# $5 : Nom du programme dans le CD
# $6 : Nom de l'éxécutable
# $7 : Auteur du script
TITLE="$1"
PREFIX="$2"

EDITEUR="$3"
EDITEUR_URL="$4"
CDFILE="$5"
EXECUTABLE="$6"
AUTEUR="$7"

if [ "$POL_LANG" == "fr" ]
then
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_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_presentation "$TITLE" "$EDITEUR" "$EDITEUR_URL" "$AUTEUR" "$PREFIX"

select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate

POL_LoadVar_PROGRAMFILES

cd "$REPERTOIRE/tmp"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "$CDFILE"
POL_SetupWindow_wait_next_signal "$LNG_INSTALL_RUN" "$TITLE"
cd "$CDROM"
POL_Wine "$CDFILE"
POL_SetupWindow_detect_exit
POL_SetupWindow_message "$LNG_WAIT_END" "$TITLE"
rm "$FILE"

POL_SetupWindow_auto_shortcut "$PREFIX" "$EXECUTABLE" "$TITLE"

POL_SetupWindow_message "$LNG_SUCCES" "$TITLE"

Contributions

Filters:

Contribute
Member Message