You are here    Supported software    Heroes of Might and Magic V nl sv ru pl es de fr

Heroes of Might and Magic V

Informations

Creator Message
darknekros Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 20797
Wine: 1.3.24

Feedbacks

Source code

#!/bin/bash
# Date: (2012-07-26)
# Wine version used: 1.3.24
# Distribution used to test: Frugalware i686
# Author: DarkNekros
# Only For : http://www.playonlinux.com

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

TITLE="Heroes of Might & Magic 5"
PREFIX="HOMM5"
EDITOR="Nival Interactive"
GAME_URL="http://www.mightandmagic.com/HeroesV/"
AUTHOR="DarkNekros"
WORKING_WINE_VERSION="1.3.24"
GAME_VMS="512"

# Starting the script
POL_SetupWindow_Init

# Starting debugging API
POL_Debug_Init

# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
  
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"

# Downloading wine if necessary and creating prefix
POL_System_SetArch "auto"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Choose between Downloading client or using local one
POL_SetupWindow_InstallMethod "DVD"

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

if [ "$INSTALL_METHOD" = "DVD" ]; then
  POL_SetupWindow_message "$(eval_gettext 'Please insert the DVD-ROM')" "$TITLE"
  POL_SetupWindow_cdrom
  POL_SetupWindow_check_cdrom "AutoRun.ico"
  cd "$WINEPREFIX/dosdevices" 
  ln -sf "$CDROM" p:
  POL_Wine start /unix "$CDROM/Setup.exe"
  POL_Wine_WaitExit "$TITLE"
fi

# Création Shortcut
POL_Shortcut "H5_Game.exe" "$TITLE" "" ""

POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
gabi2102 Saturday 26 May 2018 at 11:14
gabi2102 Anonymous

Message

Hi.
Now is only able to run from cd, can you make it to run from a folder from my pc, like showing the path to a folder where the game is and make it run?

Replies