Applications

Choose a category

accessories
Accessories
development
Development
education
Education
games
Games
graphics
Graphics
internet
Internet
multimedia
Multimedia
office
Office
other
Other

A9CAD 2.2.1

#!/bin/sh

#Vérifier que PlayOnLinux est bien exécuté avant
if [ "$PLAYONLINUX" = "" ]
then
exit 0
fi

#Charger les librairies
source "$PLAYONLINUX/lib/sources"

#Verifier les dépendences
cfg_check

#Definition des variables
LONG_NAME="a9CAD 2.2.1"
NAME="a9CAD-2.2.1"
EDITOR="a9tech"
WEBSITE="http://www.a9tech.com"
AUTHOR="malownu"
TMPDIR=~/.PlayOnLinux/tmp/$NAME

DL_LINK="http://www.a9tech.com/download/A9CADV2Setup.exe"
DL_LINK_MFC="http://theorom2.free.fr/fichier-dll/mfc42.dll"

if [ "$POL_LANG" == "fr_FR.UTF-8" ]
then
TEXT_DL="Téléchargement de a9CAD 2.2.1"
TEXT_DL_MFC="Téléchargement de mfc42.dll"
else
TEXT_DL="Downloading a9CAD 2.2.1"
TEXT_DL_MFC="Downloading mfc42.dll"
fi


#Presentation
presentation "$LONG_NAME" "$EDITOR" "$WEBSITE" "$AUTHOR" "$NAME"

#Preparation de wine
mkdir -p $REPERTOIRE/wineprefix/$NAME
cd $REPERTOIRE/wineprefix/$NAME
select_prefixe "$(pwd)"
creer_prefixe

cd $WINEPREFIX/dosdevices
rm ./*
ln -s ../drive_c c:
ln -s / z:

#Configuration de wine
Set_OS "winxp"

#Creation du répertoire temporaire
mkdir -p $TMPDIR

#Téléchargement des fichiers nécessaires à l'installation
cd $TMPDIR
if [ ! -e "mfc42.dll" ]
then
telecharger "$TEXT_DL_MFC" "$DL_LINK_MFC" "" 1 2
fi

if [ ! -e "A9CADV2Setup.exe" ]
then
telecharger "$TEXT_DL" "$DL_LINK" "" 2 2
fi

#Lancement de l'installeur
wine $TMPDIR/A9CADV2Setup.exe

creer_lanceur "$NAME" "Program Files/A9Tech/A9CAD" "a9cad.exe" "" "$LONG_NAME"

rm -rf $TMPDIR

exit

Il n'y a rien à voir ici