Difference between revisions of "Installing on Windows/uk"

From FreeCAD Documentation
Jump to navigation Jump to search
(Updating to match new version of source page)
(Updating to match new version of source page)
 
(4 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
}}
 
}}
  
You can install FreeCAD on Windows by downloading one of the installers below:
+
{{TOCright}}
  
{{DownloadWindowsStable}}
+
== Standard Installation ==
  
After downloading the .exe (NSIS Installer) file, double-click on it to start the installation process.
+
The easiest way to install the latest stable version of FreeCAD is to use the installer:
  
Below is more information about some technical options. Nevertheless, most users don't need more than the above .exe files. Head to [[Getting started|Get started]] after installation is complete.
+
{{DownloadWindowsStable}}
 
 
== Simple NSIS Installer Installation ==
 
 
 
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 ''NSIS Installer'' for more installation options.
 
 
 
If you would like to download a development version (which may be unstable), see the [[Download|Download]] page.
 
 
 
== Chocolatey ==
 
  
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:
+
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.
  
{{Code|code=
+
After downloading the installer, double-click it to start the installation process.
choco install freecad
 
}}
 
  
every once in a while you can update your software with
+
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.
  
{{Code|code=
+
== Installation for all users of the Windows system ==
choco upgrade freecad
 
}}
 
  
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].  
+
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:
 +
: {{FileName|C:\Users\<username>\AppData\Local\Programs\FreeCAD X.YY}}
  
== Command line installation ==
+
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.
  
With the ''msiexec.exe'' command line utility, additional features such as non-interactive installation and administrative installation are available.  See examples below.
+
If installed for all users, the default installation path is:
 +
: {{FileName|C:\Program Files\FreeCAD X.YY}}
  
=== Non-interactive installation ===
+
== Silent Installation ==
  
With the command line
+
To install FreeCAD silently, you can execute the installer from the command line:
  
{{Code|code=
+
{{Code|lang=text|code=
msiexec /i FreeCAD<version>.msi
+
FreeCAD-~.exe /S
 
}}
 
}}
 +
Default settings will be used for all options. A custom installation path can be specified in this manner:
  
installation can be initiated programmatically. Additional parameters can be passed at the end of the command line, for example
+
{{Code|lang=text|code=
 
+
FreeCAD-~.exe /S /D=A path to FreeCAD with spaces
{{Code|code=
 
msiexec /i FreeCAD-2.5.msi TARGETDIR=R:\FreeCAD25
 
 
}}
 
}}
  
=== Limited user interface ===
+
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:
 
 
The amount of user control permitted by the installer can be controlled with /q options:
 
 
 
* /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
 
 
 
=== Target directory ===
 
 
 
The property TARGETDIR determines the root directory of the FreeCAD installation. For example, a different installation drive can be specified with
 
  
{{Code|code=
+
{{Code|lang=text|code=
TARGETDIR=R:\FreeCAD25
+
FreeCAD-~.exe /S /NCRC
 
}}
 
}}
  
The default TARGETDIR is [WindowsVolume\Programm Files\]FreeCAD<version>.
+
Note that this {{Incode|/NCRC}} flag is '''not recommended''' since the corruption check assures that the installer was e.g. completely downloaded.
  
=== Installation for All Users ===
+
== Chocolatey ==
  
Adding
+
It is highly recommended that you use a package manager such as Chocolatey to keep your software updated. You can install Chocolatey following [https://chocolatey.org/install these instructions] and then open a PowerShell terminal as admin and run:
  
{{Code|code=
+
{{Code|lang=text|code=
ALLUSERS=1
+
choco install freecad
}}
+
}}  
  
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.
+
Every once in a while you can update your software with:
  
=== Feature Selection ===
+
{{Code|lang=text|code=
 
+
choco upgrade freecad
A number of properties allow selection of features to be installed, reinstalled, or removed. The set of features for the FreeCAD installer is
 
 
 
* DefaultFeature - install the software proper, plus the core libraries
 
* Documentation - install the documentation
 
* Source code - install the sources
 
* ... ToDo
 
 
 
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
 
 
 
* ADDLOCAL - list of features to be installed on the local machine
 
* REMOVE - list of features to be removed from the local machine
 
* 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
 
 
 
There are a few additional properties available; see the MSDN documentation for details.
 
 
 
With these options, adding
 
 
 
{{Code|code=
 
ADDLOCAL=Extensions
 
 
}}
 
}}
  
installs the interpreter itself and registers the extensions, but does not install anything else.
+
This will get the latest version available from the Chocolatey repository. If there are any issues with the Chocolatey package, you can contact maintainers on [https://chocolatey.org/packages/freecad this page].  
  
 
== Uninstallation ==
 
== Uninstallation ==
  
With
+
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:
 
+
: {{FileName|Uninstall-FreeCAD.exe}}
{{Code|code=
+
You can find it in the folder where FreeCAD is installed.
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
 
 
 
{{Code|code=
 
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 - simply delete the target directory if no client uses it anymore.
 
 
 
== Advertisement ==
 
 
 
With
 
 
 
{{Code|code=
 
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 only supports 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 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.  
 
  
Group policy propagation typically takes some time - to reliably deploy the package, all machines should be rebooted.
+
The uninstaller can also be executed silently using the command line:
  
== Installation on Linux using Crossover Office ==
+
{{Code|lang=text|code=
 +
Uninstall-FreeCAD.exe /S}}
  
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:":
+
Note that (silent) uninstallation will fail if there is a running instance of FreeCAD, even if that instance is not the version being uninstalled.
 
 
{{Code|code=
 
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 [[wikipedia:Wine (software)|Wine]] i.e. Google [[wikipedia:SketchUp|SketchUp]].
 
  
 
{{Docnav
 
{{Docnav

Latest revision as of 09:31, 16 February 2022

Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Türkçe • ‎español • ‎français • ‎hrvatski • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎română • ‎svenska • ‎čeština • ‎български • ‎русский • ‎українська • ‎中文 • ‎中文(中国大陆)‎ • ‎日本語

Standard Installation

The easiest way to install the latest stable version of FreeCAD is to use the installer:

Windows.png Windows 64 bit (sha256)

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

It is highly recommended that you use a package manager such as Chocolatey to keep your software updated. You can install Chocolatey following these instructions and then open a PowerShell terminal as admin and run:

choco install freecad

Every once in a while you can update your software with:

choco upgrade freecad

This will get the latest version available from the Chocolatey repository. If there are any issues with the Chocolatey package, you can contact maintainers on this page.

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.