Origin

Informations

Creator Message
chowder908 Anonymous

Warning

This installer has not been approved yet by the team.

Informations

Platforms:
Downloads: 0
Wine: System

Feedbacks

Description

Script broken (2015). Replaced by this POL function, in order to be usable as a component (this mean for several games).

Source code

                

Contributions

Filters:

Contribute
Member Message
Dadu042 Sunday 26 April 2020 at 6:19
Dadu042
Moderator

Message

Added a link to the POL function.

Replies

Sethan Thursday 7 April 2016 at 6:37
Sethan Anonymous

Message

Hi,

I wonder if someone can update this script as I want to use it :) I am new to Playonlinux forum as well.

Thank you.

Replies

letonai Thursday 12 March 2015 at 20:52
letonai Anonymous

Message

That "prefix" tag should be upper case, lower didn't work and tried to clean "wineprefix" directory wiping out every thing...

Replies

Thursday 12 March 2015 at 22:55
Warning
This installer has not been approved yet by the team.
Friday 13 March 2015 at 1:51
I added some protection against that in the dev version:
https://github.com/PlayOnLinux/POL-POM-4/commit/90359146ec8306ea7c59df61c312f428a916bc3e
That won't protect against everything wrong a script can do, but when it's easy to avoid dangerous cases...
RobLoach Friday 23 January 2015 at 23:37
RobLoach

Warning

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

Message

  • Corrects the download URL
  • Cleans up the script
  • Allows manual installation setup file

Differences

@@ -0,0 +1,67 @@
+#!/bin/bash
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+# Configuration
+TITLE="Origin"
+WEBSITE="http://www.origin.com"
+DEVELOPER="Electronic Arts Inc."
+AUTHOR="Rob Loach"
+PREFIX="origin"
+WINE_VERSION="1.7.34"
+DOWNLOAD="http://www.dm.origin.com/download"
+DOWNLOAD_MD5="e4abb51b92c4290081c806aae7be6e5e"
+DOWNLOAD_SETUP="download"
+SHORTCUT="Origin.exe"
+SHORTCUT_IMAGE=""
+SHORTCUT_ARGS=""
+
+# Start up PlayOnLinux
+POL_SetupWindow_Init
+POL_SetupWindow_SetID 9999
+POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "$WEBSITE" "$AUTHOR" "$PREFIX"
+
+# Create the Wine Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WINE_VERSION"
+
+# Dependencies
+Set_OS "win7"
+POL_Wine_InstallFonts
+POL_Install_dotnet40
+POL_Install_directx9
+POL_Call POL_Install_corefonts
+POL_Function_FontsSmoothRGB
+POL_Wine_OverrideDLL "" "dwrite"
+
+# Select the installation method
+POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
+if [ "$INSTALL_METHOD" = "LOCAL" ]
+then
+  # Select and run the file
+  POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE installation"
+  POL_Wine_WaitBefore "$TITLE"
+  POL_Wine start /unix "$APP_ANSWER"
+  POL_Wine_WaitExit "$TITLE"
+elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
+then
+  # Create a temporary directory
+  POL_System_TmpCreate "$PREFIX"
+  cd "$POL_System_TmpDir"
+
+  # Download the program
+  POL_Download "$DOWNLOAD" "$DOWNLOAD_MD5"
+
+  # Run the setup
+  POL_Wine_WaitBefore "$TITLE"
+  POL_Wine start /unix "$POL_System_TmpDir/$DOWNLOAD_SETUP"
+  POL_Wine_WaitExit "$TITLE"
+  POL_System_TmpDelete
+fi
+
+# Create the Shortcut to the program
+POL_Shortcut "$SHORTCUT" "$TITLE" "$SHORTCUT_IMAGE" "$SHORTCUT_ARGS"
+
+POL_SetupWindow_Close
+exit

New source code

#!/bin/bash
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

# Configuration
TITLE="Origin"
WEBSITE="http://www.origin.com"
DEVELOPER="Electronic Arts Inc."
AUTHOR="Rob Loach"
PREFIX="origin"
WINE_VERSION="1.7.34"
DOWNLOAD="http://www.dm.origin.com/download"
DOWNLOAD_MD5="e4abb51b92c4290081c806aae7be6e5e"
DOWNLOAD_SETUP="download"
SHORTCUT="Origin.exe"
SHORTCUT_IMAGE=""
SHORTCUT_ARGS=""

# Start up PlayOnLinux
POL_SetupWindow_Init
POL_SetupWindow_SetID 9999
POL_SetupWindow_presentation "$TITLE" "$DEVELOPER" "$WEBSITE" "$AUTHOR" "$PREFIX"

# Create the Wine Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WINE_VERSION"

# Dependencies
Set_OS "win7"
POL_Wine_InstallFonts
POL_Install_dotnet40
POL_Install_directx9
POL_Call POL_Install_corefonts
POL_Function_FontsSmoothRGB
POL_Wine_OverrideDLL "" "dwrite"

# Select the installation method
POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
  # Select and run the file
  POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE installation"
  POL_Wine_WaitBefore "$TITLE"
  POL_Wine start /unix "$APP_ANSWER"
  POL_Wine_WaitExit "$TITLE"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
  # Create a temporary directory
  POL_System_TmpCreate "$PREFIX"
  cd "$POL_System_TmpDir"

  # Download the program
  POL_Download "$DOWNLOAD" "$DOWNLOAD_MD5"

  # Run the setup
  POL_Wine_WaitBefore "$TITLE"
  POL_Wine start /unix "$POL_System_TmpDir/$DOWNLOAD_SETUP"
  POL_Wine_WaitExit "$TITLE"
  POL_System_TmpDelete
fi

# Create the Shortcut to the program
POL_Shortcut "$SHORTCUT" "$TITLE" "$SHORTCUT_IMAGE" "$SHORTCUT_ARGS"

POL_SetupWindow_Close
exit

Replies

Saturday 24 January 2015 at 0:49
I think that this would be better if made as a Component, instead of a game script, like how Steam is (more specifically, POL_Install_steam).

http://www.playonlinux.com/en/app-764-POL_Install_steam.html

That way it can be ran inside of a game's installer without being tied to a specific virtual drive. If someone wants to install Origin twice with this script, it will not work, and if the game needs a different version of Wine, then it has to be done manually. I really like this script, though. I just think it would be a lot better to have the Origin installer works as a Component, rather than a stand-alone script. :)
Anonymous
Tuesday 27 January 2015 at 8:24
I agree with everything Ronin said.
Wednesday 28 January 2015 at 23:09
http://www.playonlinux.com/en/app-2413.html
Anonymous
Monday 2 January 2017 at 14:28
I wish you also told how a noob like me should run this script.
tried a millon times to install origine on linux mint. but have not knowlidge enough. How do I use youre script? hitting the butoon" install this update does nothing.