Skip to content

Instantly share code, notes, and snippets.

@kaajavi
Created November 20, 2015 22:30
Show Gist options
  • Save kaajavi/1ecc70fd3394c29fb81e to your computer and use it in GitHub Desktop.
Save kaajavi/1ecc70fd3394c29fb81e to your computer and use it in GitHub Desktop.
[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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment