risen3.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #!/bin/bash
  2. # Date : (2015-03-09 22:58)
  3. # Last Revision : (2015-03-10 18:23)
  4. # Wine Version used : 1.7.38
  5. # Distribution used to test : Debian testing/jessie
  6. # Author: Hoshpak
  7. # Script license : GPL v2
  8. # Programm license : Retail
  9. # Depend :
  10. [ "$PLAYONLINUX" = "" ] && exit 0
  11. source "$PLAYONLINUX/lib/sources"
  12. TITLE="Risen 3: Titan Lords"
  13. PREFIX="Risen3"
  14. WINEVERSION="1.7.38"
  15. POL_SetupWindow_Init
  16. POL_Debug_Init
  17. POL_SetupWindow_presentation "$TITLE" "Piranha Bytes" "http://risen3.deepsilver.com" "Hoshpak" "$PREFIX"
  18. POL_Wine_SelectPrefix "$PREFIX"
  19. POL_SetupWindow_InstallMethod "DVD,LOCAL"
  20. if [ "$INSTALL_METHOD" = "DVD" ]; then
  21. POL_SetupWindow_cdrom
  22. POL_SetupWindow_check_cdrom "setup.exe"
  23. SETUP="$CDROM_SETUP"
  24. elif [ "$INSTALL_METHOD" = "LOCAL" ]; then
  25. POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
  26. SETUP="$APP_ANSWER"
  27. fi
  28. POL_Wine_PrefixCreate "$WINEVERSION"
  29. POL_Call POL_Install_wmp9
  30. POL_Wine_WaitBefore "$TITLE"
  31. POL_Wine "$SETUP"
  32. POL_Wine_WaitExit "$TITLE"
  33. POL_Shortcut "Risen3.exe" "$TITLE"
  34. POL_SetupWindow_Close
  35. exit 0