Forums

Installing CATIA V5R20

Will PlayOnMac run PlayOnLinux scripts? Where are the scripts?

Auteur Réponses
charlieb Vendredi 11 Mars 2022 à 9:04
charliebAnonymous

Way back in 2010 I purchased a license for CATIA V5 and around 2010 I stopped paying the annual maintenance fee which has left my license at revision 20. This has served me just fine because all my clients can open revision 20 data even with their new revisions of CATIA and if they change data I can convert it back to R20 using a software called TransMagic.

For ages I have had MacOS + Parallels on my Mac, but recently I thought I would give WINE another shot to see if it can run CATIA. Google pointed me toward this link where somebody had written a script to install CATIA on PlayOnLinux:

https://www.playonlinux.com/en/topic-2468-script_CATIA_V5.html

My questions:

1. Will PlayOnMac run PlayOnLinux install scripts?

2. Is there a step-by-step tutorial describing how to run PlayOnLinux scripts on PlayOnMac?

3. Where can I download the scripts referenced in the above page which are no longer in the PlayOnLinux database?

Thanks.

charlieb Vendredi 11 Mars 2022 à 10:49
charliebAnonymous

It dawned on my that I might find the missing scripts on Archive.org, and sure enough, there they were:

https://web.archive.org/web/20090605054337/https://www.playonlinux.com/en/topic-2468-script_CATIA_V5.html

So I retired question 3. I tried running the CATIA install script and some of the links to files are obsolete. I updated the links, but now when the CATIA disk starts to install I get the error:

"Setup problem with VC8 runtime. Please try to restart your computer or contact customer service."

This seems to be a rather common problem with CATIA installation - the error even appears in their installation manual. But before I dive into that rabbit hole I thought I would look at winetricks.sh. This script was still available from the original website circa 2009, but I think I found a more up-to-date download here:

https://raw.githubusercontent.com/tiagochiavericosta/open-sapi/master/open-sapi/installer/winetricks.sh

I will post an updated version of the CATIA V5R19 install script in this thread as my next post.

S now, my new questions are:

1. Will PlayOnMac run PlayOnLinux install scripts? I think the answer is yes but I'd just like to confirm.

2. Is there a step-by-step tutorial describing how to run PlayOnLinux scripts on PlayOnMac?

4. Will the sript below run on the latest version of PlayOnMac?

5. Is there a more up-to-date version of winetricks.sh than the one I found or is winetricks.sh still even needed to work with the latest version of PlayOnMac?
 

Thanks

charlieb Vendredi 11 Mars 2022 à 10:51
charliebAnonymous

#!/bin/bash
# Date : (2009-06-04 15-00)
# Last revision : (2009-06-04 15-00)
# Wine version used : 1.1.18
# Distribution used to test : Fedora 10
# Author : NSLW
# Licence : Retail
# Comment : script will work only for English and Spanish for other languages I must know APPDATA and PROGRAMFILES
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
if [ "$POL_LANG" == "de" ]; then
PROGRAMFILES="Programme"
APPDATA="Application Data" #don't know how it should be
elif [ "$POL_LANG" == "es" ]
then
PROGRAMFILES="Archivos de programa"
APPDATA="Datos de programa"
else
PROGRAMFILES="Program Files"
APPDATA="Application Data"
fi
 
TYTUL="CATIA V5"
PREFIX="CATIAV5"
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TYTUL" "Dassault Systèmes" "www.3ds.com" "NSLW" "$PREFIX"
 
select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate
 
mkdir "$HOME/.winetrickscache"
cd "$HOME/.winetrickscache"
 
# checking if ffdshow is in winetricks cache if not then download
if [ ! -e "ffdshow_beta5_rev2033_20080705_clsid.exe" ]
then
POL_SetupWindow_download "PlayOnLinux is downloading ffdshow" "ffdshow3" "http://downloads.sourceforge.net/ffdshow-tryout/ffdshow_beta5_rev2033_20080705_clsid.exe"
fi
 
# checking if xvid is in winetricks cache if not then download
if [ ! -e "Xvid-1.1.3-27042008.exe" ]
then
POL_SetupWindow_download "PlayOnLinux is downloading Xvid" "Xvid" "http://www.videohelp.com/download/Xvid-1.1.3-27042008.exe?r=wrBFlLlqw"
fi
 
# checking if Intel is in winetricks cache if not then download
if [ ! -e "codinstl.exe" ]
then
POL_SetupWindow_download "PlayOnLinux is downloading Intel Codecs (Indeo)" "Intel Codecs (Indeo)" "https://members.driverguide.com/director/get.php/codinstl.exe?msl=9efac0403f7dcfb031b0305eb9733259%2C16017_967753411&time=1646989668&auth=8b216c6b3017517e1b1a5a9585ae3963&file=codinstl.exe"
fi
 
cd "$REPERTOIRE/ressources"
#downloading winetricks
if [ ! -e "winetricks" ]
then
wget https://raw.githubusercontent.com/tiagochiavericosta/open-sapi/master/open-sapi/installer/winetricks.sh --output-document=winetricks
fi
 
POL_SetupWindow_wait_next_signal "PlayOnLinux is installing video codecs on your prefix" "$TYTUL"
bash winetricks -q icodecs xvid ffdshow
POL_SetupWindow_detect_exit
 
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
 
POL_SetupWindow_wait_next_signal "Installation in progress..." "$TYTUL"
cd $CDROM
wine "setup.exe"
POL_SetupWindow_detect_exit
 
POL_SetupWindow_message "$TYTUL has been installed successfully" "$TYTUL"
 
POL_SetupWindow_textbox "What version of CATIA V5 do you have got?
For example if you've got \"CATIA V5R16\" then enter \"16\" into text entry" "Text zone"
CATVER=$APP_ANSWER
 
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/Dassault Systemes/B$CATVER/intel_a/code/bin/" "catstart.exe" "" "$TYTUL" "" "-run \"CNEXT.exe\" -env CATIA.V5R$CATVER.B$CATVER -direnv \"C:\\users\\Public\\$APPDATA\\DassaultSystemes\\CATEnv\" -nowindow"
 
#cleaning temp
cd "$WINEPREFIX/drive_c/windows/temp/"
rm -rf *
 
POL_SetupWindow_message "$TYTUL has been installed successfully" "$TYTUL"
 
POL_SetupWindow_Close
exit