Fora

[Script] Origin (scientific software, not the EA one)

Autor Odpowiedzi
Scindix Wednesday 20 January 2016 at 11:02
Scindix

Description

Origin from OriginLab is a plotting and analysis software widely used in science. I guess for a lot of people in the science sector this software binds them to use windows, because it's one of the few programs in science that is neither available for Mac nor for Linux.

What I had to do to make it work

I managed to get it working with this tip on the official OriginLab forum: http://www.originlab.com/forum/topic.asp?TOPIC_ID=10428 However as this tip is a little bit outdated I had to adjust one of the components. (You need to install VCRUN_2012 in order to have a native msvcr110.DLL)

What works:

Everything I tested so far. From opening files from colleagues to plotting and analyzing my own data.

What doesn't work:

Nothing that I could spot.

Script

#!/bin/bash
# Date : (2016-01-20 08-09)
# Last revision : (2016-01-20 08-09)
# Wine version used : 1.7.49
# Distribution used to test : Arch Linux (kernel 4.2.5-1)
# Author : Cedric Wehrum
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Origin Pro"
PREFIX="OriginLabOriginPro"
 
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "OriginLab" "http://www.originlab.com/" "Cedric Wehrum" "$PREFIX"

POL_System_SetArch "x86"
POL_Wine_SelectPrefix "$PREFIX"
#For me Origin crashes with other versions of wine
POL_Wine_PrefixCreate "1.8-rc2-staging"
#Components needed according to http://www.originlab.com/forum/topic.asp?TOPIC_ID=10428
#POL_Call POL_Install_vcrun2008 A more recent version is needed, see below
POL_Call POL_Install_corefonts
POL_Call POL_Install_ie8
POL_Call POL_Install_msxml3
POL_Call POL_Install_gdiplus
#I figured this one out on my own. It seems that many things crash without a native msvcr110.dll
POL_Call POL_Install_vcrun2012

POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run.')" "$TITLE"
# Installing
POL_Wine start /unix "$APP_ANSWER"
# Wine returns immediately. So we have to wait for the user to confirm that the installation is over.
POL_SetupWindow_message "$(eval_gettext 'Please wait while $TITLE is installed.') $(eval_gettext 'Click next when the installer has finished.')" "$TITLE"

 
# Create a shortcut, show the user a message that everything went successfully and exit
POL_Shortcut "Origin92.exe" "$TITLE"
POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')" "$TITLE"
 
POL_SetupWindow_Close
exit

Screenshots

Empty document
Autocorrelation function with gauss fit
characteristic curve of a Laser diode (linear fit)

Install resources and images

Left Banner
Top Image
22x22 thumbnail
48x48 thumbnail

Edytowane przez Scindix