Age of Empires II : The Age of Kings

Informations

Creator Message
fekir Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 233503
Wine: 3.0.3

Feedbacks

Source code

#!/bin/bash
# Date : (2013-08-20 15-13)
# Last revision : see changelog
# Distribution used to test : Debian Jessie
# Author: Fekir
# Wine version used: 

# CHANGELOG
# [SuperPlumus] (2013-09-29 22-29)
#   Update gettext messages
#   Update $TITLE var
# [SuperPlumus] (2013-12-08 18-27)
#   Update gettext messages
# [Dadu042] (2021-07-28 13-00) 
"    Wine 1.7.46 -> 3.0.3 (not tested)

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

TITLE="Age of Empires II : The Age of Kings"
PREFIX="AOE2_king"
WORKING_WINE_VERSION="3.0.3"

POL_SetupWindow_Init
POL_Debug_Init

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "" "$TITLE"

POL_SetupWindow_presentation "$TITLE" "Ensemble Studios" "http://www.ensemblestudios.com/" "Fekir" "$PREFIX"

#############################################
# Prepare everything for AOE2: Age of Kings #
#############################################
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_Wine_InstallFonts

#########################
# Select file & install #
#########################
POL_SetupWindow_InstallMethod "CD,LOCAL"
SETUP_OPTIONS=""
if [ "$INSTALL_METHOD" = "CD" ]; then
    POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "aoesetup.exe"
    POL_Wine start /unix "$CDROM/aoesetup.exe" "$SETUP_OPTIONS"
else
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    SETUP_EXE="$APP_ANSWER"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
fi
POL_Wine_WaitExit "$TITLE"
POL_Wine_reboot

###################
# Making shortcut #
###################
POL_Shortcut "empires2.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;"

#########################################
# Install AOE: Age of Kings, Patch 2.0a #
#########################################
POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 2.0a Patch?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]; then
    SETUP_OPTIONS=""
    POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
    if [ "$INSTALL_METHOD" = "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
    else
        cd "$POL_System_TmpDir"
        SETUP_EXE="Age2upA.exe"
        POL_Download "https://archive.org/download/LEVEL92000R/LEVEL_9_2000R.iso/Updates%2FAge%20of%20Empires%202%2Fage2upa.exe" "20b9fd4ebd51d0375882f4f510ca7c36"
    fi
    POL_Wine_WaitBefore "Patch 2.0a"
    POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
    POL_Wine_WaitExit "Patch 2.0a"
    POL_Wine_reboot
fi

################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
Internauta Sunday 2 January 2022 at 19:12
Internauta Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Line 15 should be a comment (must start with "#") instead of starting with a double quote. Tested in local and the game works without issues.

Differences

@@ -12,14 +12,16 @@
 # [SuperPlumus] (2013-12-08 18-27)
 #   Update gettext messages
 # [Dadu042] (2021-07-28 13-00) 
-"    Wine 1.7.46 -> 3.0.3 (not tested)
+#    Wine 1.7.46 -> 3.0.3 (not tested)
+# [Internauta] (2022-01-02 20-00)
+#    Wine 3.0.3 and 3.1 seems to work even when changing resolution
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 TITLE="Age of Empires II : The Age of Kings"
 PREFIX="AOE2_king"
-WORKING_WINE_VERSION="3.0.3"
+WORKING_WINE_VERSION="3.1"
 
 POL_SetupWindow_Init
 POL_Debug_Init

New source code

#!/bin/bash
# Date : (2013-08-20 15-13)
# Last revision : see changelog
# Distribution used to test : Debian Jessie
# Author: Fekir
# Wine version used: 

# CHANGELOG
# [SuperPlumus] (2013-09-29 22-29)
#   Update gettext messages
#   Update $TITLE var
# [SuperPlumus] (2013-12-08 18-27)
#   Update gettext messages
# [Dadu042] (2021-07-28 13-00) 
#    Wine 1.7.46 -> 3.0.3 (not tested)
# [Internauta] (2022-01-02 20-00)
#    Wine 3.0.3 and 3.1 seems to work even when changing resolution

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

TITLE="Age of Empires II : The Age of Kings"
PREFIX="AOE2_king"
WORKING_WINE_VERSION="3.1"

POL_SetupWindow_Init
POL_Debug_Init

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "" "$TITLE"

POL_SetupWindow_presentation "$TITLE" "Ensemble Studios" "http://www.ensemblestudios.com/" "Fekir" "$PREFIX"

#############################################
# Prepare everything for AOE2: Age of Kings #
#############################################
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_Wine_InstallFonts

#########################
# Select file & install #
#########################
POL_SetupWindow_InstallMethod "CD,LOCAL"
SETUP_OPTIONS=""
if [ "$INSTALL_METHOD" = "CD" ]; then
    POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "aoesetup.exe"
    POL_Wine start /unix "$CDROM/aoesetup.exe" "$SETUP_OPTIONS"
else
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    SETUP_EXE="$APP_ANSWER"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
fi
POL_Wine_WaitExit "$TITLE"
POL_Wine_reboot

###################
# Making shortcut #
###################
POL_Shortcut "empires2.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;"

#########################################
# Install AOE: Age of Kings, Patch 2.0a #
#########################################
POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 2.0a Patch?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]; then
    SETUP_OPTIONS=""
    POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
    if [ "$INSTALL_METHOD" = "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
    else
        cd "$POL_System_TmpDir"
        SETUP_EXE="Age2upA.exe"
        POL_Download "https://archive.org/download/LEVEL92000R/LEVEL_9_2000R.iso/Updates%2FAge%20of%20Empires%202%2Fage2upa.exe" "20b9fd4ebd51d0375882f4f510ca7c36"
    fi
    POL_Wine_WaitBefore "Patch 2.0a"
    POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
    POL_Wine_WaitExit "Patch 2.0a"
    POL_Wine_reboot
fi

################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit

Replies

Anonymous
Sunday 2 January 2022 at 20:03
Also i tried with the following version of Wine. I'm on Arch Linux on a very old Intel Core2Quad Q6600 and an nVidia GTX 660 with proprietary drivers (v470.94 from AUR).

The following will crash if a resolution greater than 640x480 is set (thus crashing when launching a map/campaign/whatever):

7.0.0 from Arch Community Repo ("System" from PoL perspective)
6.18
6.14
5.22
4.21
 

The following run okay, but they're slow when loading the menu and the game (plus the audio and some scenes in the menu restarts at least one time):

 3.21
3.10
3.5
3.3
3.2
3.1 and 3.0.3 runs perfectly. I'll stick with 3.1 then.

Edited by Internauta

danielschenk Tuesday 28 December 2021 at 20:52
danielschenk Anonymous

Message

The latest version of the script is broken. The install wizard just doesn't appear. Not even a new entry in the debugging window, so no means to find out why.

I tried the previous version of the script, this seems to install the game fine but the patch installation causes a bunch of Wine error windows.

Replies

Anonymous
Sunday 2 January 2022 at 19:11
I think i found the issue: line 15 of the install script starts with a double quote (") instead of "#". Once fixed that runs just fine.
Dadu042 Tuesday 27 July 2021 at 16:12
Dadu042

Information

This update has been approved by the team.

Differences

@@ -1,9 +1,9 @@
 #!/bin/bash
 # Date : (2013-08-20 15-13)
-# Last revision : (2013-12-08 18-27)
+# Last revision : see changelog
 # Distribution used to test : Debian Jessie
 # Author: Fekir
-# Wine version used: 1.6
+# Wine version used: 
 
 # CHANGELOG
 # [SuperPlumus] (2013-09-29 22-29)
@@ -11,13 +11,15 @@
 #   Update $TITLE var
 # [SuperPlumus] (2013-12-08 18-27)
 #   Update gettext messages
+# [Dadu042] (2021-07-28 13-00) 
+"    Wine 1.7.46 -> 3.0.3 (not tested)
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
 
 TITLE="Age of Empires II : The Age of Kings"
 PREFIX="AOE2_king"
-WORKING_WINE_VERSION="1.7.46"
+WORKING_WINE_VERSION="3.0.3"
 
 POL_SetupWindow_Init
 POL_Debug_Init

New source code

#!/bin/bash
# Date : (2013-08-20 15-13)
# Last revision : see changelog
# Distribution used to test : Debian Jessie
# Author: Fekir
# Wine version used: 

# CHANGELOG
# [SuperPlumus] (2013-09-29 22-29)
#   Update gettext messages
#   Update $TITLE var
# [SuperPlumus] (2013-12-08 18-27)
#   Update gettext messages
# [Dadu042] (2021-07-28 13-00) 
"    Wine 1.7.46 -> 3.0.3 (not tested)

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

TITLE="Age of Empires II : The Age of Kings"
PREFIX="AOE2_king"
WORKING_WINE_VERSION="3.0.3"

POL_SetupWindow_Init
POL_Debug_Init

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "" "$TITLE"

POL_SetupWindow_presentation "$TITLE" "Ensemble Studios" "http://www.ensemblestudios.com/" "Fekir" "$PREFIX"

#############################################
# Prepare everything for AOE2: Age of Kings #
#############################################
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_Wine_InstallFonts

#########################
# Select file & install #
#########################
POL_SetupWindow_InstallMethod "CD,LOCAL"
SETUP_OPTIONS=""
if [ "$INSTALL_METHOD" = "CD" ]; then
    POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "aoesetup.exe"
    POL_Wine start /unix "$CDROM/aoesetup.exe" "$SETUP_OPTIONS"
else
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    SETUP_EXE="$APP_ANSWER"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
fi
POL_Wine_WaitExit "$TITLE"
POL_Wine_reboot

###################
# Making shortcut #
###################
POL_Shortcut "empires2.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;"

#########################################
# Install AOE: Age of Kings, Patch 2.0a #
#########################################
POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 2.0a Patch?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]; then
    SETUP_OPTIONS=""
    POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
    if [ "$INSTALL_METHOD" = "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
    else
        cd "$POL_System_TmpDir"
        SETUP_EXE="Age2upA.exe"
        POL_Download "https://archive.org/download/LEVEL92000R/LEVEL_9_2000R.iso/Updates%2FAge%20of%20Empires%202%2Fage2upa.exe" "20b9fd4ebd51d0375882f4f510ca7c36"
    fi
    POL_Wine_WaitBefore "Patch 2.0a"
    POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
    POL_Wine_WaitExit "Patch 2.0a"
    POL_Wine_reboot
fi

################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit

Replies

alyssile Tuesday 27 July 2021 at 10:15
alyssile Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

The URL for Age2UpA.exe has changed, doesn't seem to be available on microsoft.com anymore. I found a copy on archive.org, the md5sum matches, seems to be a redistributed update file provided on a shareware CD.

Differences

@@ -73,7 +73,7 @@
     else
         cd "$POL_System_TmpDir"
         SETUP_EXE="Age2upA.exe"
-        POL_Download "http://download.microsoft.com/download/aoeaok/Update/2.0a/W9XNT4/EN-US/Age2upA.exe" "20b9fd4ebd51d0375882f4f510ca7c36"
+        POL_Download "https://archive.org/download/LEVEL92000R/LEVEL_9_2000R.iso/Updates%2FAge%20of%20Empires%202%2Fage2upa.exe" "20b9fd4ebd51d0375882f4f510ca7c36"
     fi
     POL_Wine_WaitBefore "Patch 2.0a"
     POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"

New source code

#!/bin/bash
# Date : (2013-08-20 15-13)
# Last revision : (2013-12-08 18-27)
# Distribution used to test : Debian Jessie
# Author: Fekir
# Wine version used: 1.6

# CHANGELOG
# [SuperPlumus] (2013-09-29 22-29)
#   Update gettext messages
#   Update $TITLE var
# [SuperPlumus] (2013-12-08 18-27)
#   Update gettext messages

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

TITLE="Age of Empires II : The Age of Kings"
PREFIX="AOE2_king"
WORKING_WINE_VERSION="1.7.46"

POL_SetupWindow_Init
POL_Debug_Init

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "" "$TITLE"

POL_SetupWindow_presentation "$TITLE" "Ensemble Studios" "http://www.ensemblestudios.com/" "Fekir" "$PREFIX"

#############################################
# Prepare everything for AOE2: Age of Kings #
#############################################
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_Wine_InstallFonts

#########################
# Select file & install #
#########################
POL_SetupWindow_InstallMethod "CD,LOCAL"
SETUP_OPTIONS=""
if [ "$INSTALL_METHOD" = "CD" ]; then
    POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "aoesetup.exe"
    POL_Wine start /unix "$CDROM/aoesetup.exe" "$SETUP_OPTIONS"
else
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    SETUP_EXE="$APP_ANSWER"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
fi
POL_Wine_WaitExit "$TITLE"
POL_Wine_reboot

###################
# Making shortcut #
###################
POL_Shortcut "empires2.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;"

#########################################
# Install AOE: Age of Kings, Patch 2.0a #
#########################################
POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 2.0a Patch?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]; then
    SETUP_OPTIONS=""
    POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
    if [ "$INSTALL_METHOD" = "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
    else
        cd "$POL_System_TmpDir"
        SETUP_EXE="Age2upA.exe"
        POL_Download "https://archive.org/download/LEVEL92000R/LEVEL_9_2000R.iso/Updates%2FAge%20of%20Empires%202%2Fage2upa.exe" "20b9fd4ebd51d0375882f4f510ca7c36"
    fi
    POL_Wine_WaitBefore "Patch 2.0a"
    POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
    POL_Wine_WaitExit "Patch 2.0a"
    POL_Wine_reboot
fi

################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit

Replies

Tuesday 27 July 2021 at 16:10
Nice fix. Script approved.
Quentin PÂRIS Sunday 5 July 2015 at 23:47
Quentin PÂRIS Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -17,7 +17,7 @@
 
 TITLE="Age of Empires II : The Age of Kings"
 PREFIX="AOE2_king"
-WORKING_WINE_VERSION="1.6"
+WORKING_WINE_VERSION="1.7.46"
 
 POL_SetupWindow_Init
 POL_Debug_Init
@@ -33,7 +33,6 @@
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 POL_Wine_InstallFonts
-POL_Call POL_Install_PrivateUserDirs
 
 #########################
 # Select file & install #

New source code

#!/bin/bash
# Date : (2013-08-20 15-13)
# Last revision : (2013-12-08 18-27)
# Distribution used to test : Debian Jessie
# Author: Fekir
# Wine version used: 1.6

# CHANGELOG
# [SuperPlumus] (2013-09-29 22-29)
#   Update gettext messages
#   Update $TITLE var
# [SuperPlumus] (2013-12-08 18-27)
#   Update gettext messages

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

TITLE="Age of Empires II : The Age of Kings"
PREFIX="AOE2_king"
WORKING_WINE_VERSION="1.7.46"

POL_SetupWindow_Init
POL_Debug_Init

POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "" "$TITLE"

POL_SetupWindow_presentation "$TITLE" "Ensemble Studios" "http://www.ensemblestudios.com/" "Fekir" "$PREFIX"

#############################################
# Prepare everything for AOE2: Age of Kings #
#############################################
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_Wine_InstallFonts

#########################
# Select file & install #
#########################
POL_SetupWindow_InstallMethod "CD,LOCAL"
SETUP_OPTIONS=""
if [ "$INSTALL_METHOD" = "CD" ]; then
    POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "aoesetup.exe"
    POL_Wine start /unix "$CDROM/aoesetup.exe" "$SETUP_OPTIONS"
else
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    SETUP_EXE="$APP_ANSWER"
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
fi
POL_Wine_WaitExit "$TITLE"
POL_Wine_reboot

###################
# Making shortcut #
###################
POL_Shortcut "empires2.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;"

#########################################
# Install AOE: Age of Kings, Patch 2.0a #
#########################################
POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 2.0a Patch?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]; then
    SETUP_OPTIONS=""
    POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
    if [ "$INSTALL_METHOD" = "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
    else
        cd "$POL_System_TmpDir"
        SETUP_EXE="Age2upA.exe"
        POL_Download "http://download.microsoft.com/download/aoeaok/Update/2.0a/W9XNT4/EN-US/Age2upA.exe" "20b9fd4ebd51d0375882f4f510ca7c36"
    fi
    POL_Wine_WaitBefore "Patch 2.0a"
    POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
    POL_Wine_WaitExit "Patch 2.0a"
    POL_Wine_reboot
fi

################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit

Replies

Edited by Tinou

Quentin PÂRIS Sunday 5 July 2015 at 22:16
Quentin PÂRIS Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -1,40 +1,60 @@
 #!/bin/bash
-# Date : (2013-08-20 15-13)
-# Last revision : (2013-12-08 18-27)
-# Distribution used to test : Debian Jessie
+# Date : (2013-08-20 15-22)
+# Last revision : (2013-12-04 23-32)
+# Distribution used to test: Debian 8 (Jessie) x86_64
 # Author: Fekir
 # Wine version used: 1.6
-
+# Depend: "Age Of Empires II: The Age of Kings"
+ 
 # CHANGELOG
-# [SuperPlumus] (2013-09-29 22-29)
-#   Update gettext messages
+# [SuperPlumus] (2013-09-29 22-12)
 #   Update $TITLE var
-# [SuperPlumus] (2013-12-08 18-27)
+#   Clean code
 #   Update gettext messages
-
+ 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
-TITLE="Age of Empires II : The Age of Kings"
-PREFIX="AOE2_king"
-WORKING_WINE_VERSION="1.6"
-
+ 
+#############
+# Variables #
+#############
+TITLE="Age of Empires II : The Conquerors"
+TITLE_REQUIRED="Age of Empires II : The Age of Kings"
+PREFIX="AOE2_conq"
+WORKING_WINE_VERSION="1.7.44"
+ 
+#################
+# Debug Options #
+#################
 POL_SetupWindow_Init
 POL_Debug_Init
-
+ 
+################################################
+# Check if AOE2: The Age of Kings is installed #
+# and if PlayOnLinux is v 4.1.6+               #
+################################################
+POL_RequiredVersion 4.1.6 || POL_Debug_Fatal "This program requires $APPLICATION_TITLE 4.1.6"
+if [ "$(POL_Wine_PrefixExists "AOE2_king")" = "False" ]; then
+    POL_SetupWindow_message "$(eval_gettext 'This is an installer for an update or an addon;\nPlease install $TITLE_REQUIRED first')" "$TITLE"
+    POL_SetupWindow_Close
+    exit
+fi
+ 
+################
+# Presentation #
+################
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "" "$TITLE"
-
 POL_SetupWindow_presentation "$TITLE" "Ensemble Studios" "http://www.ensemblestudios.com/" "Fekir" "$PREFIX"
-
-#############################################
-# Prepare everything for AOE2: Age of Kings #
-#############################################
+ 
+###############################################
+# Prepare everything for AOE2: The Conquerors #
+###############################################
+POL_System_SetArch "x86"
 POL_System_TmpCreate "$PREFIX"
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-POL_Wine_InstallFonts
-POL_Call POL_Install_PrivateUserDirs
-
+POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_king" "$WINEPREFIX"
+POL_LoadVar_PROGRAMFILES
+ 
 #########################
 # Select file & install #
 #########################
@@ -43,45 +63,60 @@
 if [ "$INSTALL_METHOD" = "CD" ]; then
     POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
     POL_SetupWindow_cdrom
-    POL_SetupWindow_check_cdrom "aoesetup.exe"
-    POL_Wine start /unix "$CDROM/aoesetup.exe" "$SETUP_OPTIONS"
+    POL_SetupWindow_check_cdrom "aocsetup.exe"
+    SETUP_EXE="$CDROM/aocsetup.exe"
 else
     cd "$HOME"
     POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
     SETUP_EXE="$APP_ANSWER"
-    POL_Wine_WaitBefore "$TITLE"
-    POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
 fi
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
 POL_Wine_WaitExit "$TITLE"
 POL_Wine_reboot
-
+ 
 ###################
 # Making shortcut #
 ###################
-POL_Shortcut "empires2.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;"
-
+POL_Shortcut "age2_x1.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;"
+ 
 #########################################
-# Install AOE: Age of Kings, Patch 2.0a #
+# Install AOE: Age of Kings, Patch 1.0c #
 #########################################
-POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 2.0a Patch?')" "$TITLE"
+POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 1.0c Patch?')" "$TITLE"
 if [ "$APP_ANSWER" = "TRUE" ]; then
-    SETUP_OPTIONS=""
     POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
+    SETUP_OPTIONS=""
     if [ "$INSTALL_METHOD" = "LOCAL" ]; then
         cd "$HOME"
         POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
         SETUP_EXE="$APP_ANSWER"
-    else
+    elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
         cd "$POL_System_TmpDir"
-        SETUP_EXE="Age2upA.exe"
-        POL_Download "http://download.microsoft.com/download/aoeaok/Update/2.0a/W9XNT4/EN-US/Age2upA.exe" "20b9fd4ebd51d0375882f4f510ca7c36"
+        SETUP_EXE="Age2XPatch.exe"
+        LINK="http://download.microsoft.com/download/ageIIConquerers/Update/1.0c/W982KMe/"
+        POL_SetupWindow_menu "Choose the game language" "$(eval_gettext 'Choose the game language')" "English~French~Italian~Spagnolo~German~Japanese" "~"
+        cd "$POL_System_TmpDir"
+        if [ "$APP_ANSWER" == "English" ]; then
+            POL_Download "$LINK/EN-US/Age2XPatch.exe" "8170ef5a8fa02725dcecc230b2f172ec"
+        elif [ "$APP_ANSWER" == "French" ]; then
+            POL_Download "$LINK/FR/Age2XPatch.exe" "6e7f97ea81d54d0f5fe7f7ee38c2337b"
+        elif [ "$APP_ANSWER" == "German" ]; then
+            POL_Download "$LINK/DE/Age2XPatch.exe" "c7106b6684e5b8ca9f0168151e77c272"
+        elif [ "$APP_ANSWER" == "Italian" ]; then
+            POL_Download "$LINK/IT/Age2XPatch.exe" "1b9a28b035208904836bc434fa1d9fec"
+        elif [ "$APP_ANSWER" == "Japanese" ]; then
+            POL_Download "$LINK/JA/Age2XPatch.exe" "472af2fa5ba1a735784e5cf0e5cca395"
+        elif [ "$APP_ANSWER" == "Spagnolo" ]; then
+            POL_Download "$LINK/ES/Age2XPatch.exe" "f8d7ec2ad8e3ae1262b1106da542b85d"
+        fi
     fi
-    POL_Wine_WaitBefore "Patch 2.0a"
+    POL_Wine_WaitBefore "$TITLE"
     POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
-    POL_Wine_WaitExit "Patch 2.0a"
+    POL_Wine_WaitExit "$TITLE"
     POL_Wine_reboot
 fi
-
+ 
 ################
 # Clean & exit #
 ################

New source code

#!/bin/bash
# Date : (2013-08-20 15-22)
# Last revision : (2013-12-04 23-32)
# Distribution used to test: Debian 8 (Jessie) x86_64
# Author: Fekir
# Wine version used: 1.6
# Depend: "Age Of Empires II: The Age of Kings"
 
# CHANGELOG
# [SuperPlumus] (2013-09-29 22-12)
#   Update $TITLE var
#   Clean code
#   Update gettext messages
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
#############
# Variables #
#############
TITLE="Age of Empires II : The Conquerors"
TITLE_REQUIRED="Age of Empires II : The Age of Kings"
PREFIX="AOE2_conq"
WORKING_WINE_VERSION="1.7.44"
 
#################
# Debug Options #
#################
POL_SetupWindow_Init
POL_Debug_Init
 
################################################
# Check if AOE2: The Age of Kings is installed #
# and if PlayOnLinux is v 4.1.6+               #
################################################
POL_RequiredVersion 4.1.6 || POL_Debug_Fatal "This program requires $APPLICATION_TITLE 4.1.6"
if [ "$(POL_Wine_PrefixExists "AOE2_king")" = "False" ]; then
    POL_SetupWindow_message "$(eval_gettext 'This is an installer for an update or an addon;\nPlease install $TITLE_REQUIRED first')" "$TITLE"
    POL_SetupWindow_Close
    exit
fi
 
################
# Presentation #
################
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "" "$TITLE"
POL_SetupWindow_presentation "$TITLE" "Ensemble Studios" "http://www.ensemblestudios.com/" "Fekir" "$PREFIX"
 
###############################################
# Prepare everything for AOE2: The Conquerors #
###############################################
POL_System_SetArch "x86"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_king" "$WINEPREFIX"
POL_LoadVar_PROGRAMFILES
 
#########################
# Select file & install #
#########################
POL_SetupWindow_InstallMethod "CD,LOCAL"
SETUP_OPTIONS=""
if [ "$INSTALL_METHOD" = "CD" ]; then
    POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "aocsetup.exe"
    SETUP_EXE="$CDROM/aocsetup.exe"
else
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    SETUP_EXE="$APP_ANSWER"
fi
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
POL_Wine_WaitExit "$TITLE"
POL_Wine_reboot
 
###################
# Making shortcut #
###################
POL_Shortcut "age2_x1.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;"
 
#########################################
# Install AOE: Age of Kings, Patch 1.0c #
#########################################
POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 1.0c Patch?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]; then
    POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
    SETUP_OPTIONS=""
    if [ "$INSTALL_METHOD" = "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
    elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
        cd "$POL_System_TmpDir"
        SETUP_EXE="Age2XPatch.exe"
        LINK="http://download.microsoft.com/download/ageIIConquerers/Update/1.0c/W982KMe/"
        POL_SetupWindow_menu "Choose the game language" "$(eval_gettext 'Choose the game language')" "English~French~Italian~Spagnolo~German~Japanese" "~"
        cd "$POL_System_TmpDir"
        if [ "$APP_ANSWER" == "English" ]; then
            POL_Download "$LINK/EN-US/Age2XPatch.exe" "8170ef5a8fa02725dcecc230b2f172ec"
        elif [ "$APP_ANSWER" == "French" ]; then
            POL_Download "$LINK/FR/Age2XPatch.exe" "6e7f97ea81d54d0f5fe7f7ee38c2337b"
        elif [ "$APP_ANSWER" == "German" ]; then
            POL_Download "$LINK/DE/Age2XPatch.exe" "c7106b6684e5b8ca9f0168151e77c272"
        elif [ "$APP_ANSWER" == "Italian" ]; then
            POL_Download "$LINK/IT/Age2XPatch.exe" "1b9a28b035208904836bc434fa1d9fec"
        elif [ "$APP_ANSWER" == "Japanese" ]; then
            POL_Download "$LINK/JA/Age2XPatch.exe" "472af2fa5ba1a735784e5cf0e5cca395"
        elif [ "$APP_ANSWER" == "Spagnolo" ]; then
            POL_Download "$LINK/ES/Age2XPatch.exe" "f8d7ec2ad8e3ae1262b1106da542b85d"
        fi
    fi
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
    POL_Wine_WaitExit "$TITLE"
    POL_Wine_reboot
fi
 
################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit

Replies

petch Wednesday 9 July 2014 at 20:21
petch

Warning

This update has not been approved yet by the team.
Use it at your own risk

Message

Differences

@@ -1,40 +1,60 @@
 #!/bin/bash
-# Date : (2013-08-20 15-13)
-# Last revision : (2013-12-08 18-27)
-# Distribution used to test : Debian Jessie
+# Date : (2013-08-20 15-22)
+# Last revision : (2013-12-04 23-32)
+# Distribution used to test: Debian 8 (Jessie) x86_64
 # Author: Fekir
 # Wine version used: 1.6
-
+# Depend: "Age Of Empires II: The Age of Kings"
+ 
 # CHANGELOG
-# [SuperPlumus] (2013-09-29 22-29)
-#   Update gettext messages
+# [SuperPlumus] (2013-09-29 22-12)
 #   Update $TITLE var
-# [SuperPlumus] (2013-12-08 18-27)
+#   Clean code
 #   Update gettext messages
-
+ 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
-TITLE="Age of Empires II : The Age of Kings"
-PREFIX="AOE2_king"
+ 
+#############
+# Variables #
+#############
+TITLE="Age of Empires II : The Conquerors"
+TITLE_REQUIRED="Age of Empires II : The Age of Kings"
+PREFIX="AOE2_conq"
 WORKING_WINE_VERSION="1.6"
-
+ 
+#################
+# Debug Options #
+#################
 POL_SetupWindow_Init
 POL_Debug_Init
-
+ 
+################################################
+# Check if AOE2: The Age of Kings is installed #
+# and if PlayOnLinux is v 4.1.6+               #
+################################################
+POL_RequiredVersion 4.1.6 || POL_Debug_Fatal "This program requires $APPLICATION_TITLE 4.1.6"
+if [ "$(POL_Wine_PrefixExists "AOE2_king")" = "False" ]; then
+    POL_SetupWindow_message "$(eval_gettext 'This is an installer for an update or an addon;\nPlease install $TITLE_REQUIRED first')" "$TITLE"
+    POL_SetupWindow_Close
+    exit
+fi
+ 
+################
+# Presentation #
+################
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "" "$TITLE"
-
 POL_SetupWindow_presentation "$TITLE" "Ensemble Studios" "http://www.ensemblestudios.com/" "Fekir" "$PREFIX"
-
-#############################################
-# Prepare everything for AOE2: Age of Kings #
-#############################################
+ 
+###############################################
+# Prepare everything for AOE2: The Conquerors #
+###############################################
+POL_System_SetArch "x86"
 POL_System_TmpCreate "$PREFIX"
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-POL_Wine_InstallFonts
-POL_Call POL_Install_PrivateUserDirs
-
+POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_king" "$WINEPREFIX"
+POL_LoadVar_PROGRAMFILES
+ 
 #########################
 # Select file & install #
 #########################
@@ -43,45 +63,60 @@
 if [ "$INSTALL_METHOD" = "CD" ]; then
     POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
     POL_SetupWindow_cdrom
-    POL_SetupWindow_check_cdrom "aoesetup.exe"
-    POL_Wine start /unix "$CDROM/aoesetup.exe" "$SETUP_OPTIONS"
+    POL_SetupWindow_check_cdrom "aocsetup.exe"
+    SETUP_EXE="$CDROM/aocsetup.exe"
 else
     cd "$HOME"
     POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
     SETUP_EXE="$APP_ANSWER"
-    POL_Wine_WaitBefore "$TITLE"
-    POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
 fi
+POL_Wine_WaitBefore "$TITLE"
+POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
 POL_Wine_WaitExit "$TITLE"
 POL_Wine_reboot
-
+ 
 ###################
 # Making shortcut #
 ###################
-POL_Shortcut "empires2.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;"
-
+POL_Shortcut "age2_x1.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;"
+ 
 #########################################
-# Install AOE: Age of Kings, Patch 2.0a #
+# Install AOE: Age of Kings, Patch 1.0c #
 #########################################
-POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 2.0a Patch?')" "$TITLE"
+POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 1.0c Patch?')" "$TITLE"
 if [ "$APP_ANSWER" = "TRUE" ]; then
-    SETUP_OPTIONS=""
     POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
+    SETUP_OPTIONS=""
     if [ "$INSTALL_METHOD" = "LOCAL" ]; then
         cd "$HOME"
         POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
         SETUP_EXE="$APP_ANSWER"
-    else
+    elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
         cd "$POL_System_TmpDir"
-        SETUP_EXE="Age2upA.exe"
-        POL_Download "http://download.microsoft.com/download/aoeaok/Update/2.0a/W9XNT4/EN-US/Age2upA.exe" "20b9fd4ebd51d0375882f4f510ca7c36"
+        SETUP_EXE="Age2XPatch.exe"
+        LINK="http://download.microsoft.com/download/ageIIConquerers/Update/1.0c/W982KMe/"
+        POL_SetupWindow_menu "Choose the game language" "$(eval_gettext 'Choose the game language')" "English~French~Italian~Spagnolo~German~Japanese" "~"
+        cd "$POL_System_TmpDir"
+        if [ "$APP_ANSWER" == "English" ]; then
+            POL_Download "$LINK/EN-US/Age2XPatch.exe" "8170ef5a8fa02725dcecc230b2f172ec"
+        elif [ "$APP_ANSWER" == "French" ]; then
+            POL_Download "$LINK/FR/Age2XPatch.exe" "6e7f97ea81d54d0f5fe7f7ee38c2337b"
+        elif [ "$APP_ANSWER" == "German" ]; then
+            POL_Download "$LINK/DE/Age2XPatch.exe" "c7106b6684e5b8ca9f0168151e77c272"
+        elif [ "$APP_ANSWER" == "Italian" ]; then
+            POL_Download "$LINK/IT/Age2XPatch.exe" "1b9a28b035208904836bc434fa1d9fec"
+        elif [ "$APP_ANSWER" == "Japanese" ]; then
+            POL_Download "$LINK/JA/Age2XPatch.exe" "472af2fa5ba1a735784e5cf0e5cca395"
+        elif [ "$APP_ANSWER" == "Spagnolo" ]; then
+            POL_Download "$LINK/ES/Age2XPatch.exe" "f8d7ec2ad8e3ae1262b1106da542b85d"
+        fi
     fi
-    POL_Wine_WaitBefore "Patch 2.0a"
+    POL_Wine_WaitBefore "$TITLE"
     POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
-    POL_Wine_WaitExit "Patch 2.0a"
+    POL_Wine_WaitExit "$TITLE"
     POL_Wine_reboot
 fi
-
+ 
 ################
 # Clean & exit #
 ################

New source code

#!/bin/bash
# Date : (2013-08-20 15-22)
# Last revision : (2013-12-04 23-32)
# Distribution used to test: Debian 8 (Jessie) x86_64
# Author: Fekir
# Wine version used: 1.6
# Depend: "Age Of Empires II: The Age of Kings"
 
# CHANGELOG
# [SuperPlumus] (2013-09-29 22-12)
#   Update $TITLE var
#   Clean code
#   Update gettext messages
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
#############
# Variables #
#############
TITLE="Age of Empires II : The Conquerors"
TITLE_REQUIRED="Age of Empires II : The Age of Kings"
PREFIX="AOE2_conq"
WORKING_WINE_VERSION="1.6"
 
#################
# Debug Options #
#################
POL_SetupWindow_Init
POL_Debug_Init
 
################################################
# Check if AOE2: The Age of Kings is installed #
# and if PlayOnLinux is v 4.1.6+               #
################################################
POL_RequiredVersion 4.1.6 || POL_Debug_Fatal "This program requires $APPLICATION_TITLE 4.1.6"
if [ "$(POL_Wine_PrefixExists "AOE2_king")" = "False" ]; then
    POL_SetupWindow_message "$(eval_gettext 'This is an installer for an update or an addon;\nPlease install $TITLE_REQUIRED first')" "$TITLE"
    POL_SetupWindow_Close
    exit
fi
 
################
# Presentation #
################
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "" "$TITLE"
POL_SetupWindow_presentation "$TITLE" "Ensemble Studios" "http://www.ensemblestudios.com/" "Fekir" "$PREFIX"
 
###############################################
# Prepare everything for AOE2: The Conquerors #
###############################################
POL_System_SetArch "x86"
POL_System_TmpCreate "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_System_CopyDirectory "$POL_USER_ROOT/wineprefix/AOE2_king" "$WINEPREFIX"
POL_LoadVar_PROGRAMFILES
 
#########################
# Select file & install #
#########################
POL_SetupWindow_InstallMethod "CD,LOCAL"
SETUP_OPTIONS=""
if [ "$INSTALL_METHOD" = "CD" ]; then
    POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive.')" "$TITLE"
    POL_SetupWindow_cdrom
    POL_SetupWindow_check_cdrom "aocsetup.exe"
    SETUP_EXE="$CDROM/aocsetup.exe"
else
    cd "$HOME"
    POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
    SETUP_EXE="$APP_ANSWER"
fi
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
POL_Wine_WaitExit "$TITLE"
POL_Wine_reboot
 
###################
# Making shortcut #
###################
POL_Shortcut "age2_x1.exe" "$TITLE" "" "-nostartup" "Game;StrategyGame;"
 
#########################################
# Install AOE: Age of Kings, Patch 1.0c #
#########################################
POL_SetupWindow_question "$(eval_gettext 'Do you want to install the 1.0c Patch?')" "$TITLE"
if [ "$APP_ANSWER" = "TRUE" ]; then
    POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
    SETUP_OPTIONS=""
    if [ "$INSTALL_METHOD" = "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
    elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]; then
        cd "$POL_System_TmpDir"
        SETUP_EXE="Age2XPatch.exe"
        LINK="http://download.microsoft.com/download/ageIIConquerers/Update/1.0c/W982KMe/"
        POL_SetupWindow_menu "Choose the game language" "$(eval_gettext 'Choose the game language')" "English~French~Italian~Spagnolo~German~Japanese" "~"
        cd "$POL_System_TmpDir"
        if [ "$APP_ANSWER" == "English" ]; then
            POL_Download "$LINK/EN-US/Age2XPatch.exe" "8170ef5a8fa02725dcecc230b2f172ec"
        elif [ "$APP_ANSWER" == "French" ]; then
            POL_Download "$LINK/FR/Age2XPatch.exe" "6e7f97ea81d54d0f5fe7f7ee38c2337b"
        elif [ "$APP_ANSWER" == "German" ]; then
            POL_Download "$LINK/DE/Age2XPatch.exe" "c7106b6684e5b8ca9f0168151e77c272"
        elif [ "$APP_ANSWER" == "Italian" ]; then
            POL_Download "$LINK/IT/Age2XPatch.exe" "1b9a28b035208904836bc434fa1d9fec"
        elif [ "$APP_ANSWER" == "Japanese" ]; then
            POL_Download "$LINK/JA/Age2XPatch.exe" "472af2fa5ba1a735784e5cf0e5cca395"
        elif [ "$APP_ANSWER" == "Spagnolo" ]; then
            POL_Download "$LINK/ES/Age2XPatch.exe" "f8d7ec2ad8e3ae1262b1106da542b85d"
        fi
    fi
    POL_Wine_WaitBefore "$TITLE"
    POL_Wine start /unix "$SETUP_EXE" "$SETUP_OPTIONS"
    POL_Wine_WaitExit "$TITLE"
    POL_Wine_reboot
fi
 
################
# Clean & exit #
################
POL_System_TmpDelete
POL_SetupWindow_Close
exit

Replies

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com