Installing on Windows/sv: Difference between revisions

From FreeCAD Documentation
(Created page with "==== Målkatalog ==== Egenskapen TARGETDIR avgör FreeCAD installationens rotkatalog. Till exempel, en annan installationsenhet kan specificeras med")
(Updating to match new version of source page)
 
(50 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
Det lättaste sättet att '''installera FreeCAD på Windows''' är genom att använda installeraren. Denna sida beskriver hur man använder den och egenskaperna av ''Microsoft Installeraren'' för mer installationsalternativ.


{{Docnav
=== Enkel Installation ===
|[[Feature_list|Feature list]]
FreeCAD installeraren levereras i .msi (Windows Installer) format.
|[[Installing_on_Linux|Installing on Linux]]
}}


{{TOCright}}
Du kan ladda ned den senaste .msi filen från [http://sourceforge.net/project/showfiles.php?group_id=49159&package_id=206659 den officiella FreeCAD nedladdningssidan].


== Standard Installation ==
Efter att du har laddat ned filen, dubbelklicka på den för att starta installationsprocessen.


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, just double-click on it to start the installation process.


<div class="mw-translate-fuzzy">
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 '''[[Getting started | Get started]]'''!
If you would like to download either a 64 bit or unstable development version, see the [[Download]] page. [[Download/sv|Download/sv]]
</div>


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|Getting started]] once installation is complete.
=== 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 for all users of the Windows system ==
If you would like to download either a 64 bit or unstable development version, see the [[Download]] 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}}


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.
=== Kommandolinje Installation ===
Med ''msiexec.exe'' kommandolinje programmet, så finns ytterligare funktioner tillgängliga, som o-interaktiv installation och administrativ installation.


If installed for all users, the default installation path is:
==== O-interaktiv Installation ====
: {{FileName|C:\Program Files\FreeCAD X.YY}}
Med kommandoraden
msiexec /i FreeCAD<version>.msi
installation kan startas via ett program. Extra parametrar kan läggas till i slutet på denna kommandorad, som
msiexec /i FreeCAD-2.5.msi TARGETDIR=r:\FreeCAD25
==== Begränsat användargränssnitt====
Det användargränssnitt som installeraren visar kan kontrolleras med /q alternativ, som:


== Silent Installation ==
* /qn - Inget gränssnitt
* /qb - Grundläggande gränssnitt - endast en liten förloppsdialog
* /qb! - Som /qb, men göm Avbryt knappen
* /qr - Reducerat gränssnitt - visar alla dialoger som inte kräver svar från användaren (skippa alla modala dialoger)
* /qn+ - Like /qn, men visa "Färdig" dialogen vid slutet
* /qb+ - Like /qb, men visa "Färdig" dialogen vid slutet


To install FreeCAD silently, you can execute the installer from the command line:
==== Målkatalog ====
Egenskapen TARGETDIR avgör FreeCAD installationens rotkatalog. Till exempel, en annan installationsenhet kan specificeras med
TARGETDIR=R:\FreeCAD25
The default TARGETDIR is [WindowsVolume\Programm Files\]FreeCAD<version>.


{{Code|lang=text|code=
==== Installation for All Users ====
FreeCAD-~.exe /S
Adding
}}
ALLUSERS=1
Default settings will be used for all options. A custom installation path can be specified in this manner:
causes an installation for all users. By default, the non-interactive installation install the package just for the current user, and the interactive installation offers a dialog which defaults to "all users" if the user is sufficiently privileged.


{{Code|lang=text|code=
==== Feature Selection ====
FreeCAD-~.exe /S /D=A path to FreeCAD with spaces
A number of properties allow selection of features to be installed, reinstalled, or removed. The set of features for the FreeCAD installer is
}}


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:
* DefaultFeature - install the software proper, plus the core libraries
* Documentation - install documentation
* Source code - install the sources
* ... ToDo


{{Code|lang=text|code=
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
FreeCAD-~.exe /S /NCRC
}}


Note that this {{Incode|/NCRC}} flag is '''not recommended''' since the corruption check assures that the installer was e.g. completely downloaded.
* ADDLOCAL - list of feature to be installed on the local machine
* REMOVE - list of features to be removed
* 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 feature for which to perform an advertise installation


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


Using the [https://chocolatey.org/install Chocolatey] package manager is currently not recommended as that repository is no longer kept up-to-date.
With these options, adding
ADDLOCAL=Extensions
installs the interpreter itself and registers the extensions, but does not install anything else.


=== Uninstallation ===
<span id="Uninstallation"></span>
=== Avinstallering ===
With
Med
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.


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:
=== Administrative installation ===
: {{FileName|Uninstall-FreeCAD.exe}}
With
You can find it in the folder where FreeCAD is installed.
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).


The uninstaller can also be executed silently using the command line:
Currently, there is no user interface for administrative installations, so the target directory must be passed on the command line.


{{Code|lang=text|code=
There is no specific uninstall procedure for an administrative install - just delete the target directory if no client uses it anymore.
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.
=== Advertisement ===
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.


<div class="mw-translate-fuzzy">
=== Automatic Installation on a Group of Machines ===
{{docnav/sv|Feature list/sv|Install on Unix/sv}}
With Windows Group Policy, it is possible to automatically install FreeCAD an a group of machines. To do so, perform the following steps:
</div>
#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 the FreeCAD to be deinstalled if the computer leaves the scope of the policy.


{{Userdocnavi{{#translation:}}}}
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 [[wikipedia:Wine (software)|Wine]] i.e. Google [[wikipedia:SketchUp|SketchUp]].

{{docnav|Feature list|Install on Unix}}

[[Category:User Documentation]]
<languages/>

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 either a 64 bit or unstable development version, see the Download page. Download/sv

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.

Avinstallering

Med

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.


Feature list/sv
Install on Unix/sv