Login

Как пользоваться PlayOnLinux?

Далее мы более подробно рассмотрим как пользоваться программой и устанавливать приложения Windows.

1. Интерфейс

Начнем с интерфейса программы. Он достаточно прост:

  • В самом верху окна находится главное меню, с помощью которого можно получить доступ к большинству функций программы;
  • Чуть ниже находится панель инструментов, которые позволяют делать основные действия;
  • Дальше оно разделено на две панели. На левой из них находятся ярлыки основных действий, например, для установки программ;
  • На правой панели размещен список программ, которые были установлены;
  • В нижней части окна находится статус бар, где отображается статус обновления или другие данные.

2. Установка программы

Для того чтобы установить программу Windows сначала выберите «Установить программу» в главном меню:

В открывшемся окне вам нужно выбрать программу, которую вы хотите установить. Например, выберите «Офис», затем «Microsoft Office 2007», для продолжения нажмите «Установить»:

Дальше следуют два диалоговых окна, в которых программа сообщает, что разработчики не гарантируют успеха и она никак не связана с WineHQ:

Дальше откроется мастер установки программы:

После нажатия кнопки «Далее» начнется загрузка необходимых компонентов, среди которых загрузка Wine, других необходимых компонентов и их распаковка:

Далее вам нужно выбрать расположение установщика программы. Вы можете выбрать файл или указать папку, где расположен установщик:

Затем запустится установщик программы, мы не будем подробно описывать установку:

После завершения работы PlayOnLinux продолжит загружать необходимые компоненты:

После завершения установки новые приложения появятся в списке:

Установка игр playonlinux выполняется точно так же, как и для программ.

3. Запуск программ

Если вы кликните по одному из ярлыков, то на левой панели отобразиться несколько функций, например, для редактирования ярлыков, отладки и другие:

Двойной клик по программе позволяет ее запустить. Множество программ будут отлично работать, например, тот же Microsoft World:

4. Настройка оболочки

Для запуска многих программ необходима дополнительная настройка несмотря даже на скрипты. Настройка PlayOnLinux достаточно проста. Откройте контекстное меню нужного ярлыка и выберите «Настройка Wine»:

Здесь можно выполнить все необходимые настройки бутылки Wine, которые доступны в winecfg. Чтобы получить доступ к реестру, достаточно запустить второй пункт меню «Редактор реестра»:

Также из того же меню можно открыть папку приложения. Если вы нажмете кнопку «Настроить», то можете изменить параметры приложения, например, версию Wine:

Вкладка Wine позволяет запустить одну из стандартных программ Windows:

А на вкладке «Установка компонентов» можно установить пакеты, которые обычно доступны по winetricks.

Standalone packages

  • We are now providing standalone packages that can work on any distribution without the need to install JDK runtime. These packages also remove all the feature that we don’t need from the JDK. In the future, there will be probably two sorts of packages, but we want to make things easier for you for now.
  • We now provide macOS packages
  • We also support flatpak

I’d like to thank once again all the developers that helped us during the past weeks, plata, madoar, and also all those of you that contributed by reporting bugs, suggesting improvements, or tested phoenicis-winebuild.

Our next goals is to focus on prefix management (change of wine version inside a prefix, add debugging tools, etc…) and performance optimization.

If you have any suggestion or encounter any bug, we encourage you to come in our Github page: https://github.com/PhoenicisOrg/. This version is still at alpha-stage, so please be indulgent.

I also take the opportunity of this news to also announce you that PlayOnLinux and PlayOnMac 4.3.4 has been released. They have been updated to support the new winebuild system, and the different windows of the application have been made resizable. It should fix the HDPI issues some of you were encoutering. We continue to maintain these versions until you are 100% satisfied with POLv5

Ubuntu

Deb files:

PlayOnLinux: PlayOnLinux_4.3.4
.deb

Ubuntu Precise (and superior) users : You must install the package wine:i386 to get PlayOnLinux working

For the Cosmic version

Type the following commands:

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_cosmic.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

For the Bionic version

Type the following commands:

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_bionic.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

For the Xenial version

Type the following commands:

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_xenial.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

For the Trusty version

Type the following commands:

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_trusty.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

For the Saucy version

Type the following commands:

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_saucy.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

For the Precise version

Type the following commands:

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_precise.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

GoG support

We’ve added a way to add a web browser view directly inside script wizards. Thanks to this feature, scripts can now authenticate to any website.

Phoenicis can automatically download and install GoG games from your account, as POLv4 used to do during the past years.

A complete demonstration video of gog.com support: https://www.youtube.com/watch?v=Fopp-x9Fz3g&feature=youtu.be

Also, we have made a script pattern for all GoG games: it has drastically simplified them from POLv4. The script are so much easier that we believe that they will be a lot more maintained.

POLv5 script POLv4 script
include();

var installerImplementation = {
    run: function () {
        new GogScript()
            .name("Teenagent")
            .editor("")
            .applicationHomepage("")
            .author("Quentin PÂRIS")
            .gogSetupFileName("teenagent/en1installer0")
            .category("Games")
            .wineVersion(LATEST_DOS_SUPPORT_VERSION)
            .wineDistribution("dos_support")
            .executable("TEENAGNT.EXE")
            .go();
    }
};
 && exit 0
source "$PLAYONLINUX/lib/sources"
 
GOGID="teenagent"
PREFIX="Teenagent_gog"
WORKING_WINE_VERSION="1.6.2-scummvm_support"
 
TITLE="GOG.com - Teenagent"
SHORTCUT_NAME="Teenagent"
 
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 
POL_SetupWindow_Init
POL_SetupWindow_SetID 1214
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Metropolis Software" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
 
POL_Call POL_GoG_setup "$GOGID" "e5e3a8cd9bbbcec5a956d1f41281b4af"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
POL_Call POL_GoG_install
 
POL_SetupWindow_VMS "1"
 
cat <<_EOFCFG_ > "$WINEPREFIX/drive_c/GOG Games/Teenagent/teenagent.polcfg"

platform=pc
gameid=teenagent
description=Teen Agent (DOS/English)
language=en
guioptions=sndNoSpeech lang_English
_EOFCFG_
 
POL_Shortcut "teenagent.polcfg" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;AdventureGame;"
 
POL_SetupWindow_Close
 
exit 0

We are planning to add tons of GoG games in the library so stay tuned!

Support of new wine distributions

Speaking about wine builds, we now support 4 wine distributions: 

  • Upstream wine builds are vanilla and unmodified wine (1)
  • Staging wine builds are the wine builds patched by wine-staging
  • Dos support wine builds contains wine and dosbox. (See the next feature)
  • CX contains a wine version patched by codeweavers

We plan to support proton in the next weeks.

All these wine build can be compiled directly through https://github.com/PhoenicisOrg/phoenicis-winebuild/.

(1) Except the very old versions that have a specific suffix is their names, like 1.5.3-heap_allocation_v2-avoid_deadlock, but we are going to move them anyway.

Панель действий

По-умолчанию на ней всего два пункта:

  • Установить программу
  • Настройки

Но, после установки приложений и выборе любого из них на панели отобразятся следующие пункты:

  • Запуск — запускает приложение, выбранное в списке (можно использовать двойной щелчок)
  • Закрыть — предназначена для аварийного закрытия зависшего приложения
  • Отладка — отображает отладку приложения, которую при случае, удобно сохранить в виде файла и отправить разработчикам
  • Send a feedback — отправить отчет о неправильной работе установочного скрипта
  • Настроить — открывает окно конфигурации префикса (WINEPREFIX, «бутылка»)
  • Создать ярлык — создает красивый linux-ярлычок приложения со значком на рабочем столе
  • Открыть папку — открывает папку с программой
  • Удалить — удаляет существующее приложение

New source code

#!/bin/bash
# Date : (2013-02-25)
# Last revision : (2014-05-08 00-01)
# Distribution used to test : Lubuntu 64
# Author : Robbz
# Licence : GPLv3
# PlayOnLinux:  playonlinux-4.1.9-2

# CHANGELOG
#  (2014-2-10)
#   Update Wine and Patcher fix

 && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="World Of Tanks"
PREFIX="WorldOfTanks"
WORKING_WINE_VERSION="1.7.22"
PUBLISHER="BigWorld Technology"
GAME_URL="http://worldoftanks.com/"
AUTHOR="Robbz"
GAME_VMS="256" # https://na.wargaming.net/support/News/NewsItem/View/152/wot-updated-system-requirements

# Setup
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$PUBLISHER" "$GAME_URL" "$AUTHOR" "$PREFIX"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Components
POL_Call POL_Install_vcrun2008
POL_Call POL_Install_d3dx9_36
POL_Call POL_Install_d3dcompiler_43
POL_Call POL_Install_dxdiag
POL_Call POL_Install_dxfullsetup
POL_Call POL_Install_corefonts
POL_Call POL_Install_msxml3
POL_Call POL_Install_wininet
POL_Call POL_Install_ie8


if ; then
    # Samba support
    POL_Call POL_GetTool_samba3
    source "$POL_USER_ROOT/tools/samba3/init"
fi



# Asking about memory size of graphic card
POL_SetupWindow_VMS "$GAME_VMS"

#Select which version
POL_SetupWindow_menu "$(eval_gettext 'Which region version of World of Tanks would you like to install? Note: Korea not supported on this installation.')" "$TITLE" "North America~Europe~Russia~Asia" "~"
 && REGION="na"
 && REGION="eu"
 && REGION="ru"
 && REGION="asia"

# Download
cd "$WINEPREFIX/drive_c"
POL_Download "http://redirect.wargaming.net/WoT/latest_web_install_$REGION"

POL_SetupWindow_message "$(eval_gettext 'Attention:After installation is complete, the patcher will load. After, go to the top right of the patcher and click the wrench, Then Un-check the box for "Allow Torrent", if this is not done the patcher will crash after 1 minuite. When finished with this, please close the patcher before logging in or finish updating to complete the installation. After this, you can run "$TITLE" when setup is done')" "$TITLE"

#Installation
POL_Wine_WaitBefore "$TITLE"
POL_Wine start /unix "$WINEPREFIX/drive_c/latest_web_install_$REGION"
POL_Wine_WaitExit "$TITLE"

# Create Shortcuts
POL_Shortcut "WOTLauncher.exe" "$TITLE"

if ; then
    POL_Shortcut_InsertBeforeWine "$TITLE" "source \"$POL_USER_ROOT/tools/samba3/init\""
fi

POL_SetupWindow_Close

exit 0

New source code

#!/bin/bash
# Date : (2015-08-21)
# Distribution used to test : Red Hat Enterprise 7.1 64-bit
# Author : schotty
# Licence : GPLv3
# PlayOnLinux: 4.2.8
 
 
 && exit 0
source "$PLAYONLINUX/lib/sources"
 
PREFIX="battlenet"
WINEVERSION="1.7.49"
POL_System_SetArch "x86"
TITLE="Battle.Net US"
EDITOR="Blizzard Entertainment Inc."
GAME_URL="http://us.battle.net/en"
AUTHOR="Schotty"
DOWNLOAD_URL="http://dist.blizzard.com/downloads/bna-installers/322d5bb9ae0318de3d4cde7641c96425/retail.1/Battle.net-Setup-enUS.exe"
 
#Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
POL_SetupWindow_Init
 
POL_Debug_Init
 
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"
 
# Configuration
Set_OS "win7"

#DLL Overrides
cat << EOF > BNET.reg

"*msvcr90"="native,builtin"
"d3dcompiler_46"="disabled"
"dbghelp"="native"
"msvcp100"="native,builtin"
EOF
POL_Wine regedit BNET.reg
rm -f BNET.reg

# Dependencies
POL_Call POL_Install_corefonts
 
# Installation
POL_System_TmpCreate "$PREFIX"
cd $POL_System_TmpDir
POL_Download "$DOWNLOAD_URL"
 
POL_SetupWindow_message "$(eval_gettext 'NOTICE: Do not close $TITLE until installation completes and you are at the $TITLE login window. ')" "$TITLE"
 
POL_Wine "Battle.net-Setup-enUS.exe"
POL_Wine_WaitExit "$TITLE"
 
# Create Shortcut
POL_Shortcut "Battle.net Launcher.exe" "$TITLE"
 
# Cleanup
POL_System_TmpDelete
 
POL_SetupWindow_Close
exit 0

So what do I have to do if I have problems with the old builds?

Because they are compiled with more up-to-date dependencies, we are expecting the new builds to work better on recent distributions. This should fix most of the problems that you have reported to us recently.

However, we are rebuilding the old packages one by one and it takes time. We advise you to follow the build status here to ensure that the versions you are using are rebuilt: https://www.playonlinux.com/wine/. Then, uninstall your current wine versions from POL and reinstalling them should fix the problem you are encoutering.

As you may have noticed, POL / POM 4 have already been updated to use this new format. If you are using 4.3+, you are good to go

Standalone packages

  • We are now providing standalone packages that can work on any distribution without the need to install JDK runtime. These packages also remove all the feature that we don’t need from the JDK. In the future, there will be probably two sorts of packages, but we want to make things easier for you for now.
  • We now provide macOS packages
  • We also support flatpak

I’d like to thank once again all the developers that helped us during the past weeks, plata, madoar, and also all those of you that contributed by reporting bugs, suggesting improvements, or tested phoenicis-winebuild.

Our next goals is to focus on prefix management (change of wine version inside a prefix, add debugging tools, etc…) and performance optimization.

If you have any suggestion or encounter any bug, we encourage you to come in our Github page: https://github.com/PhoenicisOrg/. This version is still at alpha-stage, so please be indulgent.

I also take the opportunity of this news to also announce you that PlayOnLinux and PlayOnMac 4.3.4 has been released. They have been updated to support the new winebuild system, and the different windows of the application have been made resizable. It should fix the HDPI issues some of you were encoutering. We continue to maintain these versions until you are 100% satisfied with POLv5

New source code

# Date : (2015-06-4 12-30)
# Distribution used to test : Arch Linux, Cinnamon - 64-bit
# Author : RoninDusette
# Licence : GPLv3
# PlayOnLinux: 4.2.8
#
# Function to install .NET 4.5 through PlayOnLinux/PlayOnMac
#

TITLE=".NET 4.5"
FUNCTION_NAME="dotnet45"
INSTALLER="dotnetfx45_full_x86_x64.exe"
INSTALLER_MD5="d02dc8b69a702a47c083278938c4d2f1"
INSTALLER_URL="http://download.microsoft.com/download/b/a/4/ba4a7e71-2906-4b2d-a0e1-80cf16844f5f/dotnetfx45_full_x86_x64.exe"

POL_Debug_Message "Installing $TITLE..."

# Removing mono
POL_Call POL_Remove_winemono

# Removing some leftover stuff that conflict with the installation
POL_Wine --ignore-errors reg delete "HKLM\Software\Microsoft\NET Framework Setup\NDP\v4" /f
rm "$WINEPREFIX/drive_c/windows/system32/mscoree.dll"

# Dependencies, overrides, and Windows version settings
POL_Call POL_Install_dotnet35
POL_Call POL_Install_dotnet40
Set_OS "win7"
POL_Wine_OverrideDLL "builtin" "fusion"

# Creating Temp directory
POL_System_TmpCreate "$FUNCTION_NAME"
cd "$POL_System_TmpDir"
POL_Download "$INSTALLER_URL" "$INSTALLER_MD5"

# Installing .NET 4.5
POL_Wine_WaitBefore "$TITLE"
POL_Wine --ignore-errors $INSTALLER /q /c:"install.exe /q"

# More overrides
POL_Wine_OverrideDLL "builtin" "fusion"
Set_OS "win2003"

Which Types of Game You can Play on Linux?

In Linux, you will be able o play plenty of favorite games like Counter-Strike, Metro Last Night, etc. But you will not be able to play all the latest and favorite games that available on Windows until you follow some specific Linux Hacks like using Wine or Crossover, later we will discuss all those.

Because you know that Linux OS is only running on 2.5% of the world’s desktop. This figure discourages most of the game developer not to bring their games to Linux. Because, you know, profit matters. That’s why you can’t play all the games on Linux. Ops sorry, yes you can play but have to follow some tips and tricks.

Moreover, many game companies spend huge money for making games, but Linux is open source OS. It provides the free application. But paid games are not free at all. So at first, we should have a look which games are available on Linux. You will generally get four types of Linux games.

New source code

#!/bin/bash

# CHANGELOG
#  (2013-06-08 17-14)
#   gettext + clean
#  (2014-03-24)
#   Wine 1.5.5-DiabloIII_v3 => 1.7.15 (DarkNekros)

 && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Diablo III"
WORKING_WINE_VERSION="1.7.15"
EDITOR="Blizzard"
EDITOR_URL="http://www.blizzard.com"
PREFIX="DiabloIII"

POL_SetupWindow_Init
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$EDITOR_URL" "" "$PREFIX"

POL_System_SetArch "x86"

if ; then
    SetupIs="$POL_SELECTED_FILE"
else
    POL_SetupWindow_InstallMethod "LOCAL,DVD"

    if ; then
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file downloaded on $EDITOR website')" "$TITLE"
        SetupIs="$APP_ANSWER"
    fi
    if ; then
        POL_SetupWindow_cdrom
        POL_Call POL_Sudo_UnhideCdrom
        POL_SetupWindow_check_cdrom "Diablo III Setup.exe"
        SetupIs="$CDROM/Diablo III Setup.exe"
    fi
fi

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_Install_vcrun2008

POL_Wine_WaitBefore "$TITLE"
POL_Wine "$SetupIs"
while [ ! -e "$WINEPREFIX/drive_c/$PROGRAMFILES/Diablo III/Diablo III Launcher.exe" ]; do
    sleep 10
done

POL_Shortcut "Diablo III Launcher.exe"  "$TITLE"
POL_Shortcut_InsertBeforeWine "$TITLE" '#taskset -pc 0 $$'
 && POL_Shortcut_InsertBeforeWine "$TITLE" 'BEFORE_WINE="setarch i386 -3 -L -B -R"'

if ; then
    POL_Call POL_Sudo_RehideCdrom
fi

POL_SetupWindow_VMS "1024"

POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed.\n\nA special thank to Erich Hoover for his wine patch (AcceptEx Fix)')\n\n$(eval_gettext 'If you have Error 3007 on connecting, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')"

POL_SetupWindow_Close
exit 0

Piracy, illegal cases

PlayOnLinux is against piracy. The user requesting help with software is committed not to use a pirated version. It is also forbidden to the members to provide or ask for any help about how to workarounds protections implemented by the publisher. It is the same about unofficial copies of installation media as CD images. In cases where software requires the circumvention of protection established by the publisher to work with PlayOnLinux, PlayOnLinux will not be able in any case to help you. In addition, this approach will be entirely your responsibility.

Other illegal cases (such as pornography, racism or muckraking) are also prohibited.

DOS Support

Winebuild now provides dos_support distribution. The way these wine binaries works is very simple: Wine launch script has been modified to detect if the given .exe is Win32 or a DOS executable. If it is a DOS executable, it will set-up a dosbox configuration that will behave consistenly with wine:

  • mount drive_c as C: on dosbox
  • if a autoexec.bat file exists inside the prefix, it will run it
  • support of custom DOS configuration per prefix

The script framework has also been modified so that you can tweak some dosbox settings directly from a script. Here is an exemple of «advanced» script

wine.run(wine.prefixDirectory() + "/drive_c/The Elder Scroll 1: Arena/Arena106.exe"); // Arena106.exe is a w32 fine, wine will run

wine.dosbox()
    .memSize(64)
    .renderAspect(true)
    .cpuCycles("max 95% limit 33000")
    .renderFrameSkip(1);

wine.run(wine.prefixDirectory() + "/drive_c/The Elder Scroll 1: Arena/ARENA.BAT"); // ARENA.BAT is obviously a MS-DOS file, dosbox will run

Description

Hi Everyone,

X-Blades has been working very good within Linux, as you can see for the news below.

«Linux and Mac ports available now!
Community Announcements — JahnVegar
Dear players,

After short and fruitful Beta Test, we are presenting Linux Wine and Mac Wineskin ports of the game.

Thank You very much to all players who took part in Beta!
All reported bugs was fixed, but if You still have problem with Mac or Linux version, please, report it on discussion forum.
Alt+Tab might produce undesired behavior on some systems, beware.

Linux
On Linux, antialising has to be turned off in game launcher.

Thank You and have a good play! ːsteamhappyː»

However, I found the following issue, when install X-Blades (Steam) on Playonlinux.

1. «Configure», «Wine»(Tab),  «Configure Wine», «Graphics» (Tab), and set the «desktop size» to 800×600. When launching the game, the game will not be launched successfully.

2. «Configure», «Wine»(Tab),  «Configure Wine», «Graphics» (Tab), and set the «desktop size» to 1024×768. When launching the game, the game would work. I learned from here that this game would support the screen size of 1024x 768, 1280×720, and 1280×800, but not 800×600.

So, I want to let Playonlinux know of this issue.

Thank you.

Differences

@@ -0,0 +1,68 @@
+#!/bin/bash
+# Date : (2015-08-21)
+# Distribution used to test : Red Hat Enterprise 7.1 64-bit
+# Author : schotty
+# Licence : GPLv3
+# PlayOnLinux: 4.2.8
+ 
+ 
+ && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+PREFIX="battlenet"
+WINEVERSION="1.7.49"
+POL_System_SetArch "x86"
+TITLE="Battle.Net US"
+EDITOR="Blizzard Entertainment Inc."
+GAME_URL="http://us.battle.net/en"
+AUTHOR="Schotty"
+DOWNLOAD_URL="http://dist.blizzard.com/downloads/bna-installers/322d5bb9ae0318de3d4cde7641c96425/retail.1/Battle.net-Setup-enUS.exe"
+ 
+#Initialization
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
+POL_SetupWindow_Init
+ 
+POL_Debug_Init
+ 
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+ 
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WINEVERSION"
+ 
+# Configuration
+Set_OS "win7"
+
+#DLL Overrides
+cat << EOF > BNET.reg
+
+"*msvcr90"="native,builtin"
+"d3dcompiler_46"="disabled"
+"dbghelp"="native"
+"msvcp100"="native,builtin"
+EOF
+POL_Wine regedit BNET.reg
+rm -f BNET.reg
+
+# Dependencies
+POL_Call POL_Install_corefonts
+ 
+# Installation
+POL_System_TmpCreate "$PREFIX"
+cd $POL_System_TmpDir
+POL_Download "$DOWNLOAD_URL"
+ 
+POL_SetupWindow_message "$(eval_gettext 'NOTICE: Do not close $TITLE until installation completes and you are at the $TITLE login window. ')" "$TITLE"
+ 
+POL_Wine "Battle.net-Setup-enUS.exe"
+POL_Wine_WaitExit "$TITLE"
+ 
+# Create Shortcut
+POL_Shortcut "Battle.net Launcher.exe" "$TITLE"
+ 
+# Cleanup
+POL_System_TmpDelete
+ 
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file
Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Adblock
detector