The forum

Altium Designer

Author Replies
michsens Tuesday 1 April 2014 at 18:12
michsensAnonymous

Hello everybody,


for a while I am trying to create a script for installing Altium Designer.

Here what I did so far:




[code language=playonlinux]


#!/bin/bash
# This Script helps to instal >>Altium Designer 10, 2013, 2014<<
# Written by Robert Paulo

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

PREFIX="AltiumDesigner"
WINEVERSION="1.7.17-Memcpy_fix"
TITLE="Altium Designer"



POL_GetSetupImages "top" "left" "$TITLE"

POL_SetupWindow_Init

POL_SetupWindow_presentation "$TITLE" "Altium" "http://www.altium.com" "Robert Paulo" "$PREFIX"


POL_RequiredVersion 4.0.18 || POL_Debug_Fatal "$TITLE won't work with $APPLICATION_TITLE $VERSION\nPlease update"

if [ "$POL_OS" = "Linux" ]; then
wbinfo -V || POL_Debug_Fatal "Please install winbind before installing $TITLE"
fi

POL_Debug_Init

POL_System_SetArch "x86"

POL_SetupWindow_menu "What version of Altium Designer you would like to be installed?" "$TITLE" "Altium Designer 10~Altium Designer 2013~Altium Designer 2014" "~"

TITLE=$APP_ANSWER
PREFIX=${TITLE//\ /}

POL_Wine_SelectPrefix $PREFIX
POL_Wine_PrefixCreate "$WINEVERSION"

Set_Desktop "On" "1024" "768"

POL_Wine_reboot
sleep 5

POL_Call "POL_Install_gecko"
POL_Call "POL_Install_directx9"
POL_Call "POL_Install_ie8"
POL_Call "POL_Install_dotnet20"
POL_Call "POL_Install_vcrun2008"
sleep 2
POL_Call "POL_Install_mdac28"

#POL_Wine_OverrideDLL "native,builtin" odbc32 odbccp32 oledb32 #mdac28 dll override
#POL_Call "POL_Function_OverrideDLL" native riched20 msxml6 #riched20 in POL_Install_ie8

POL_Call "POL_Function_OverrideDLL" builtin ole32 oleaut32 rpcrt4
POL_Call "POL_Function_OverrideDLL" native,builtin urlmon

sleep 5
Set_OS "winxp" "sp3"
POL_Wine_reboot


# Downloading AccessDatabaseEngine
cd "$POL_USER_ROOT/ressources"
POL_Download_Resource "http://download.microsoft.com/download/2/4/3/24375141-E08D-4803-AB0E-10F2E3A07AAA/AccessDatabaseEngine.exe" "f0cfc4cab419fe0c85604b78d1d20dfe"
POL_Wine "AccessDatabaseEngine.exe"
POL_Wine_WaitExit "$TITLE"

sleep 5
POL_Wine_reboot


POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run')" "$TITLE"
SetupIs="$APP_ANSWER"

POL_Wine_WaitBefore "$TITLE"
[ "$CDROM" ] && cd "$CDROM"
POL_Wine "$SetupIs"
POL_Wine_WaitExit "$TITLE"
sleep 10

Set_Desktop "Off"

#POL_Call "POL_Function_OverrideDLL" native shlwapi
sleep 2
POL_Wine_reboot

POL_Shortcut "DXP.exe" "$TITLE"

POL_SetupWindow_message "$(eval_gettext '$TITLE has been installed successfully\n\nIf an installation Windows prevent your programs from running, restart the script and choose option "Reinstall $TITLE"!')" "$TITLE"

POL_SetupWindow_Close
exit



[/code]

Edited by michsens

michsens Tuesday 1 April 2014 at 18:19
michsensAnonymous

Altium Designer is running with this script. But as you can see a modified Wine version is necessary for that.

For that, following patch for bug 34030 is required:

http://bugs.winehq.org/attachment.cgi?id=45265


I compiled the current Wine version with this patch but I ran into graphical problems. According to some other test with other wine versions Wine support everything that is necessary to use full 3D viewing for the pcb.


Furthermore, I added the AccessDatabaseEnginge for those who want to use Access database files for the devices. It also works and shows the related device in the database. So far there are some intermittent crashs when working with Access database files. But I have no clue where those come from. Maybe there is someone out there who can fix this issue.


Greetings,


Robert.



Edited by michsens

michsens Tuesday 1 April 2014 at 18:28
michsensAnonymous

One error that is frequently shown is:


"could not find the resource:a148e300-5740-11d1-a904-080036aaa103.Location"


As far as I could locate the problem I think it relates to a STEP library. 

Edited by michsens

michsens Tuesday 27 May 2014 at 8:15
michsensAnonymous

Hello again,

after quite a while I would like to know how progress is in patching Altium. Or is there someone out there who knows a better workaround.
I know that Altium Designer is not as popular as WoW or CoD or whatsoever but I think there are several people that would like to use Altium Designer under Linux.

Greetings,

Robert.