Installare in Windows

From FreeCAD Documentation
Revision as of 17:55, 4 December 2013 by Renatorivo (talk | contribs) (Created page with "Per la disinstallazione, non è necessario disporre del file MSI; in alternativa, può anche essere specificato il codice del pacchetto o del prodotto. Per trovare il codice ...")

Il modo più semplice per installare FreeCAD su Windows è quello di scaricare il sottostante programma di installazione.

Template:DownloadWindowsStable

Dopo aver scaricato il file .msi (Microsoft Installer), è sufficiente fare doppio clic su di esso per avviare il processo di installazione automatica.

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!


Semplice installazione con Microsoft Installer

Per scaricare una versione a 64 bit o una versione instabile di sviluppo, vedere la pagina Download (it) oppure la pagina originale Download (en).


Installazione da riga di comando

Con l'utility a riga di comando msiexec.exe, sono disponibili funzioni aggiuntive, quali l'installazione non interattiva e l'installazione amministrativa.

Installazione non interattiva

L'installazione si avvia con il comando:

 msiexec /i FreeCAD<version>.msi

Alla fine di questa riga di comando è possibile fornire i parametri aggiuntivi, come nel caso in cui si vuole specificare la directory di destinazione:

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

Limitazione dell'interfaccia utente

La dimensione dell'interfaccia utente che visualizza installazione può essere controllata con le opzioni /q, in particolare:

  • /qn - Senza interfaccia
  • /qb - Interfaccia di base - solo una piccola finestra che mostra l'avanzamento
  • /qb! - Come /qb, ma nasconde il pulsante Annulla
  • /qr - Interfaccia ridotta - visualizza tutte le finestre di dialogo che non richiedono interazione da parte dell'utente (salta tutte le finestre modali)
  • /qn+ - Come /qn, ma visualizzare la finestra "Completed" alla fine
  • /qb+ - Come /qb, ma visualizzare la finestra "Completed" alla fine

Directory di destinazione

La proprietà TARGETDIR determina la directory principale di installazione di FreeCAD.

Ad esempio, si può specificare una diversa unità di installazione con

TARGETDIR=R:\FreeCAD25

La cartella di destinazione predefinita (TARGETDIR di default) è [WindowsVolume\Programm Files\]FreeCAD<version>.

Installazione per tutti gli utenti

Aggiungendo

 ALLUSERS=1

si realizza una installazione per tutti gli utenti.

Come impostazioni predefinite, l'installazione non interattiva installa il pacchetto solo per l'utente corrente mentre l'installazione interattiva mostra una finestra di dialogo che ha come impostazione predefinita "Tutti gli utenti" se l'utente attuale ha, in Windows, i permessi necessari.

Selezione delle caratteristiche

Varie proprietà permettono la selezione delle funzioni da installare, reinstallare, o rimuovere.

Il set di funzioni dell'installatore di FreeCAD è:

  • DefaultFeature - Installa il software appropriato, più le librerie di base
  • Documentation - Installa la documentazione
  • Source code - Installa il codice sorgente
  • ... ToDo

Inoltre, ALL specifica (installa) tutte le funzioni.

Tutte le funzioni dipendono da DefaultFeature, quindi installando qualsiasi funzione si installano automaticamente anche le funzione di default.

Le seguenti proprietà controllano le operazioni di installazione o di rimozione:

  • ADDLOCAL - Elenco delle funzioni da installare sulla macchina locale
  • REMOVE - Elenco delle funzioni da eliminare
  • ADDDEFAULT - Elenco delle funzioni aggiunte nella loro configurazione di default (che è locale per tutte le funzioni di FreeCAD)
  • REINSTALL - Elenco delle funzioni da reinstallare o riparare
  • ADVERTISE - Elenco delle funzioni per cui fornire un avviso di installazione

Ci sono alcune altre proprietà aggiuntive disponibili, vedere la documentazione MSDN per i dettagli.

Con queste opzioni, aggiungendo

 ADDLOCAL=Extensions

installa l'interprete e registra le estensioni, ma non installa niente altro.

Disinstallazione

Si può disinstallare FreeCAD con:

 msiexec /x FreeCAD<version>.msi

Per la disinstallazione, non è necessario disporre del file MSI; in alternativa, può anche essere specificato il codice del pacchetto o del prodotto.

Per trovare il codice del prodotto, esplorare le proprietà del collegamento per la disinstallazione che FreeCAD installa nel menu di Avvio.

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