Installing on Windows: Difference between revisions

From FreeCAD Documentation
No edit summary
(Marked this version for translation)
 
(41 intermediate revisions by 9 users not shown)
Line 3: Line 3:


<!--T:38-->
<!--T:38-->
{{Docnav
{{docnav|Feature list|Install on Unix}}
|[[Feature_list|Feature list]]
|[[Installing_on_Linux|Installing on Linux]]
}}


</translate>
<!--T:1-->
{{TOCright}}
You can install FreeCAD on Windows by downloading one of the installers below:
<translate>


<!--T:37-->
== Standard Installation == <!--T:55-->
{{DownloadWindowsStable}}


<!--T:2-->
<!--T:43-->
The easiest way to install the latest stable version of FreeCAD is to use the installer, see the [[Download|Download]] page.
After downloading the .msi (Microsoft Installer) file, double-click on it to start the installation process.


<!--T:5-->
If you would like to download a development version, which may be unstable, see the [https://github.com/FreeCAD/FreeCAD-Bundle/releases/tag/weekly-builds Weekly builds download] page.


<!--T:2-->
After downloading the installer, double-click it to start the installation process.


<!--T:3-->
<!--T:3-->
Below is more information about technical options. If it looks daunting, don't worry! Most Windows users will not need anything more than the above .msi to install FreeCAD and '''[[Getting started | Get started]]'''!
Below is more information about some technical options. But most users don't need more than the installer. Head to [[Getting_started|Getting started]] once installation is complete.


== Installation for all users of the Windows system == <!--T:56-->


<!--T:57-->
=== Simple Microsoft Installer Installation === <!--T:4-->
By default FreeCAD will be installed for the user that executes the installer. If this user only has user permissions, the default installation path is:
The easiest way to '''install FreeCAD on Windows''' is by using the downloadable installer bundle above. This page describes the usage and features of the ''Microsoft Installer'' for more installation options.
: {{FileName|C:\Users\<username>\AppData\Local\Programs\FreeCAD X.YY}}


<!--T:5-->
<!--T:58-->
If the installer is executed by an admin user, or you execute it as admin, you can choose if FreeCAD should be installed for all users of the system or just for you. The default is for all users.
If you would like to download a development version (which may be unstable), see the [[Download]] page.


<!--T:59-->
=== Chocolatey ===
If installed for all users, the default installation path is:
However, it is highly recommended that you use a package manager such as Chocolatey to keep your software updated. You can installed Chocolatey following [https://chocolatey.org/install these instructions] and then open a PowerShell terminal as admin and run:
: {{FileName|C:\Program Files\FreeCAD X.YY}}


== Silent Installation == <!--T:60-->
{{Code|code=
choco install freecad
}}


<!--T:61-->
every once in a while you can update your software with
To install FreeCAD silently, you can execute the installer from the command line:


</translate>
{{Code|code=
{{Code|lang=text|code=
choco upgrade freecad
FreeCAD-~.exe /S
}}
}}<translate>


<!--T:62-->
to get the latest version available on Chocolatey repository. If there are any issues with the chocolatey package, you may contact maintainers on [https://chocolatey.org/packages/freecad this page].
Default settings will be used for all options. A custom installation path can be specified in this manner:



=== Command Line Installation === <!--T:6-->
With the ''msiexec.exe'' command line utility, additional features such as non-interactive installation and administrative installation are available. See examples below.

==== Non-interactive Installation ==== <!--T:7-->
With the command line
</translate>
msiexec /i FreeCAD<version>.msi
<translate>
<!--T:8-->
installation can be initiated programmatically. Additional parameters can be passed at the end of the command line, for example
</translate>
</translate>
{{Code|code=
{{Code|lang=text|code=
FreeCAD-~.exe /S /D=A path to FreeCAD with spaces
msiexec /i FreeCAD-2.5.msi TARGETDIR=R:\FreeCAD25
}}
}}
<translate>
<translate>
==== Limited user interface ==== <!--T:9-->
The amount of user control permitted by the installer can be controlled with /q options:


<!--T:10-->
<!--T:63-->
By default, even with silent installations, there will be a short popup when the installer is checked for corruption. This so-called cyclic redundancy check only takes a few seconds at most. To disable this corruption check:
* /qn - No interface
* /qb - Basic interface - display only a progress dialog with Cancel button
* /qb! - Like /qb, but hide the Cancel button
* /qr - Reduced interface - display all dialogs that do not require user interaction (skip all modal dialogs)
* /qn+ - Like /qn, but display "Completed" dialog at the end
* /qb+ - Like /qb, but display "Completed" dialog at the end


==== Target directory ==== <!--T:11-->
The property TARGETDIR determines the root directory of the FreeCAD installation. For example, a different installation drive can be specified with
</translate>
</translate>
{{Code|code=
{{Code|lang=text|code=
FreeCAD-~.exe /S /NCRC
TARGETDIR=R:\FreeCAD25
}}
}}
<translate>
<translate>
<!--T:12-->
The default TARGETDIR is [WindowsVolume\Programm Files\]FreeCAD<version>.


<!--T:64-->
==== Installation for All Users ==== <!--T:13-->
Note that this {{Incode|/NCRC}} flag is '''not recommended''' since the corruption check assures that the installer was e.g. completely downloaded.
Adding
</translate>
{{Code|code=
ALLUSERS=1
}}
<translate>
<!--T:14-->
causes an installation usable by all users. By default, a non-interactive (/i) installation makes the package usable by the current user (the one performing the installation) only; an interactive installation presents a dialog which defaults to "all users" if the user performing the installation is sufficiently privileged.


==== Feature Selection ==== <!--T:15-->
== Chocolatey == <!--T:40-->
A number of properties allow selection of features to be installed, reinstalled, or removed. The set of features for the FreeCAD installer is


<!--T:16-->
<!--T:68-->
Using the [https://chocolatey.org/install Chocolatey] package manager is currently not recommended as that repository is no longer kept up-to-date.
* DefaultFeature - install the software proper, plus the core libraries
* Documentation - install the documentation
* Source code - install the sources
* ... ToDo


<!--T:17-->
== Uninstallation == <!--T:22-->
In addition, ALL specifies all features. All features depend on DefaultFeature, so installing any feature automatically installs the default feature as well. The following properties control features to be installed or removed


<!--T:18-->
<!--T:65-->
To uninstall FreeCAD it is preferable to use the Windows tools for uninstalling software. Alternatively you can execute the uninstaller directly. This is the file:
* ADDLOCAL - list of features to be installed on the local machine
: {{FileName|Uninstall-FreeCAD.exe}}
* REMOVE - list of features to be removed from the local machine
You can find it in the folder where FreeCAD is installed.
* ADDDEFAULT - list of features added in their default configuration (which is local for all FreeCAD features)
* REINSTALL - list of features to be reinstalled/repaired
* ADVERTISE - list of features for which to perform an advertise installation


<!--T:19-->
<!--T:66-->
The uninstaller can also be executed silently using the command line:
There are a few additional properties available; see the MSDN documentation for details.


<!--T:20-->
With these options, adding
</translate>
</translate>
{{Code|code=
{{Code|lang=text|code=
Uninstall-FreeCAD.exe /S}}
ADDLOCAL=Extensions
}}
<translate>
<translate>
<!--T:21-->
installs the interpreter itself and registers the extensions, but does not install anything else.


=== Uninstallation === <!--T:22-->
<!--T:67-->
Note that (silent) uninstallation will fail if there is a running instance of FreeCAD, even if that instance is not the version being uninstalled.
With
</translate>
{{Code|code=
msiexec /x FreeCAD<version>.msi
}}
<translate>
<!--T:23-->
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 === <!--T:24-->
With
</translate>
{{Code|code=
msiexec /a FreeCAD<version>.msi
}}
<translate>
<!--T:25-->
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).


<!--T:26-->
<!--T:35-->
{{Docnav
Currently, there is no user interface for administrative installations, so the target directory must be passed on the command line.
|[[Feature_list|Feature list]]

|[[Installing_on_Linux|Installing on Linux]]
<!--T:27-->
There is no specific uninstall procedure for an administrative install - simply delete the target directory if no client uses it anymore.

=== Advertisement === <!--T:28-->
With
</translate>
{{Code|code=
msiexec /jm FreeCAD<version>.msi
}}
}}
<translate>
<!--T:29-->
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.

<!--T:30-->
The FreeCAD installer currently only supports advertisement of start menu entries, but no advertisement of shortcuts.

=== Automatic Installation on a Group of Machines === <!--T:31-->
With Windows Group Policy, it is possible to automatically install FreeCAD on a group of machines. To do so, perform the following steps:
#Log on to the domain controller
#Copy the MSI file into a folder that is shared with access granted to all target machines.
#Open the MMC snapin "Active Directory users and computers"
#Navigate to the group of computers that need FreeCAD
#Open Properties
#Open Group Policies
#Add a new policy, and edit it
#In Computer Configuration/Software Installation, choose New/Package
#Select the MSI file through the network path
#Optionally, select that you want FreeCAD to be de-installed if the computer leaves the scope of the policy.

<!--T:32-->
Group policy propagation typically takes some time - to reliably deploy the package, all machines should be rebooted.

=== Installation on Linux using Crossover Office === <!--T:33-->

<!--T:34-->
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 the install package is in the "software" directory on drive "Y:":
{{Code|code=
msiexec /i Y:\\software\\FreeCAD<version>.msi
}}

<!--T:39-->
FreeCAD is running, but it has been reported that the OpenGL display does not work, like with other programs running under [[wikipedia:Wine (software)|Wine]] i.e. Google [[wikipedia:SketchUp|SketchUp]].

<!--T:35-->
{{docnav|Feature list|Install on Unix}}


<!--T:36-->
[[Category:User Documentation]]
[[Category:Administration]]
</translate>
</translate>
{{Userdocnavi{{#translation:}}}}

Latest revision as of 19:59, 26 January 2024

Standard Installation

The easiest way to install the latest stable version of FreeCAD is to use the installer, see the Download page.

If you would like to download a development version, which may be unstable, see the Weekly builds download page.

After downloading the installer, double-click it to start the installation process.

Below is more information about some technical options. But most users don't need more than the installer. Head to Getting started once installation is complete.

Installation for all users of the Windows system

By default FreeCAD will be installed for the user that executes the installer. If this user only has user permissions, the default installation path is:

C:\Users\<username>\AppData\Local\Programs\FreeCAD X.YY

If the installer is executed by an admin user, or you execute it as admin, you can choose if FreeCAD should be installed for all users of the system or just for you. The default is for all users.

If installed for all users, the default installation path is:

C:\Program Files\FreeCAD X.YY

Silent Installation

To install FreeCAD silently, you can execute the installer from the command line:

FreeCAD-~.exe /S

Default settings will be used for all options. A custom installation path can be specified in this manner:

FreeCAD-~.exe /S /D=A path to FreeCAD with spaces

By default, even with silent installations, there will be a short popup when the installer is checked for corruption. This so-called cyclic redundancy check only takes a few seconds at most. To disable this corruption check:

FreeCAD-~.exe /S /NCRC

Note that this /NCRC flag is not recommended since the corruption check assures that the installer was e.g. completely downloaded.

Chocolatey

Using the Chocolatey package manager is currently not recommended as that repository is no longer kept up-to-date.

Uninstallation

To uninstall FreeCAD it is preferable to use the Windows tools for uninstalling software. Alternatively you can execute the uninstaller directly. This is the file:

Uninstall-FreeCAD.exe

You can find it in the folder where FreeCAD is installed.

The uninstaller can also be executed silently using the command line:

Uninstall-FreeCAD.exe /S

Note that (silent) uninstallation will fail if there is a running instance of FreeCAD, even if that instance is not the version being uninstalled.