Installation sous Windows

From FreeCAD Documentation
Revision as of 19:37, 11 December 2013 by Renatorivo (talk | contribs) (Created page with "* ADDLOCAL - liste des fonctionnalités à installer sur la machine locale * REMOVE - liste des fonctionnalités à désinstaller * ADDDEFAULT - liste des fonctionnalités ajo...")

The easiest way to install FreeCAD on Windows is to download the installer below. Template:DownloadWindowsStable

La méthode la plus facile pour installer FreeCAD sous Windows est à l'aide de l'installeur. Cette page décrit l'utilisation et les fonctionnalités de l'Installeur Microsoft pour plus d'options d'installation.

After downloading the .msi (Microsoft Installer) file, just double-click on it to start the installation process.

Below is more information about technical options. If it looks daunting, don't worry! Most Windows users will not need anything more than the .msi to install FreeCAD and Get started!


=== Simple Microsoft Installer Installation === The easiest way to install FreeCAD on Windows is by using the installer above. This page describes the usage and the features of the Microsoft Installer for more installation options.

Installation simple

L'installeur FreeCAD est fourni au format .msi (Installeur Windows).

Vous pouvez télécharger le tout dernier fichier .msi de la page officielle de téléchargement FreeCAD. Après avoir téléchargé le fichier, faites un double-clic dessus pour démarrer le processus d'installation.

If you would like to download either a 64 bit or unstable development version, see the Download page.


Installation en ligne de commande

Avec l'utilitaire en ligne de commande msiexec.exe, des fonctionnalités supplémentaires sont disponibles, comme l'installation non-interactive et l'installation administrative.

Installation non-interactive

Avec la commande suivante :

 msiexec /i FreeCAD<version>.msi

L'installation peut être programmée. Des paramètres additionnels peuvent être ajoutés à la fin de la ligne de commande, par exemple

 msiexec /i FreeCAD-2.5.msi TARGETDIR=r:\FreeCAD25

Interface utilisateur réduite

Le niveau d'interface que l'installeur affiche peut être réglé avec les options /q, en particulier :

  • /qn - Pas d'interface
  • /qb - Interface basique - une barre de progression seulement
  • /qb! - Comme /qb, mais masque le bouton Cancel (Annuler)
  • /qr - Interface réduite - affiche tous les dialogues qui ne nécessitent pas d'interaction de l'utilisateur (skip all modal dialogs)
  • /qn+ - Comme /qn, mais affiche le dialogue "Completed" (Complété) à la fin
  • /qb+ - Comme /qb, mais affiche le dialogue "Completed" (Complété) à la fin

Répertoire de destination

La propriété TARGETDIR détermine le répertoire racine de l'installation FreeCAD. Par exemple, un disque d'installation différent peut être spécifié par

TARGETDIR=R:\FreeCAD25

La valeur TARGETDIR par défaut est [WindowsVolume\Programm Files\]FreeCAD<version>.

Installation pour tous les usagers

L'ajout de

 ALLUSERS=1

produit une installation pour tous les usagers. Par défaut, l'installation non-interactive n'installe le paquet que pour l'utilisateur courant, et l'installation interactive propose un dialogue réglé par défaut à « tous les utilisateurs » si l'utilisateur a des privilèges suffisants.

Sélection de fonctionnalités

Un certain nombre de propriétés permet la sélection des fonctionnalités à installer, réinstaller, ou supprimer. Le jeu de fonctionnalités de l'installeur FreeCAD est :

  • DefaultFeature - installe le logiciel, plus les bibliothèques principales
  • Documentation - installe la documentation
  • Source code - installe les sources
  • ... ToDo

De plus, « ALL » spécifie toutes les fonctionnalités. Toutes les fonctionnalités dépendent de DefaultFeature, l'installation de n'importe quelle fonctionnalité installe automatiquement les fonctionnalités par défaut. Les propriétés suivantes contrôlent les fonctionnalités à installer ou désinstaller :

  • ADDLOCAL - liste des fonctionnalités à installer sur la machine locale
  • REMOVE - liste des fonctionnalités à désinstaller
  • ADDDEFAULT - liste des fonctionnalités ajoutées dans leur configuration par défaut (qui est locale pour toutes les fonctionnalités FreeCAD)
  • REINSTALL - liste des fonctionnalités à réinstaller/réparer
  • ADVERTISE - liste des fonctionnalités pour lesquelles effectuer une installation advertise

There are a few additional properties available; see the MSDN documentation for details.

With these options, adding

 ADDLOCAL=Extensions

installs the interpreter itself and registers the extensions, but does not install anything else.

Uninstallation

With

 msiexec /x FreeCAD<version>.msi

FreeCAD can be uninstalled. It is not necessary to have the MSI file available for uninstallation; alternatively, the package or product code can also be specified. You can find the product code by looking at the properties of the Uninstall shortcut that FreeCAD installs in the start menu.

Administrative installation

With

 msiexec /a FreeCAD<version>.msi

an "administrative" (network) installation can be initiated. The files get unpacked into the target directory (which should be a network directory), but no other modification is made to the local system. In addition, another (smaller) msi file is generated in the target directory, which clients can then use to perform a local installation (future versions may also offer to keep some features on the network drive altogether).

Currently, there is no user interface for administrative installations, so the target directory must be passed on the command line.

There is no specific uninstall procedure for an administrative install - just delete the target directory if no client uses it anymore.

With

 msiexec /jm FreeCAD<version>.msi

it would be possible, in principle, to "advertise" FreeCAD to a machine (with /ju to a user). This would cause the icons to appear in the start menu, and the extensions to become registered, without the software actually being installed. The first usage of a feature would cause that feature to be installed.

The FreeCAD installer currently supports just advertisement of start menu entries, but no advertisement of shortcuts.

Automatic Installation on a Group of Machines

With Windows Group Policy, it is possible to automatically install FreeCAD an a group of machines. To do so, perform the following steps:

  1. Log on to the domain controller
  2. Copy the MSI file into a folder that is shared with access granted to all target machines.
  3. Open the MMC snapin "Active Directory users and computers"
  4. Navigate to the group of computers that need FreeCAD
  5. Open Properties
  6. Open Group Policies
  7. Add a new policy, and edit it
  8. In Computer Configuration/Software Installation, choose New/Package
  9. Select the MSI file through the network path
  10. Optionally, select that you want the FreeCAD to be deinstalled if the computer leaves the scope of the policy.

Group policy propagation typically takes some time - to reliably deploy the package, all machines should be rebooted.

Installation on Linux using Crossover Office

You can install the windows version of FreeCAD on a Linux system using CXOffice 5.0.1. Run msiexec from the CXOffice command line, assuming that the install package is placed in the "software" directory which is mapped to the drive letter "Y:":

msiexec /i Y:\\software\\FreeCAD<version>.msi

FreeCAD is running, but it has been reported that the OpenGL display does not work, like with other programs running under Wine i.e. Google SketchUp.

Feature list
Install on Unix