Installing on Windows/zh-cn: Difference between revisions

From FreeCAD Documentation
No edit summary
(Updating to match new version of source page)
 
(45 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<languages/>
最简单的把 FreeCAD 安装到 Windows的方式是下面的安装器:

{{Docnav
|[[Feature_list|Feature list]]
|[[Installing_on_Linux|Installing on Linux]]
}}


{{TOCright}}
{{DownloadWindowsStable}}


== Standard Installation ==

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

<div class="mw-translate-fuzzy">
如果你想下载一个 64 位或者不稳定的开发版本,请参考 [[Download/zh-cn|下载]] 页。
</div>

<div class="mw-translate-fuzzy">
下载完 .msi (微软安装文件格式) 文件,只需要双击它以启动安装过程。
下载完 .msi (微软安装文件格式) 文件,只需要双击它以启动安装过程。
</div>


<div class="mw-translate-fuzzy">
下面是更多关于技术选项的信息。
下面是更多关于技术选项的信息。
如果它看起来很吓人,不要紧张!绝大部分 Windows 用户只需要使用 .msi 安装 FreeCAD 和 阅读 '''[[Getting started/zh-cn|入门]]'''!
如果它看起来很吓人,不要紧张!绝大部分 Windows 用户只需要使用 .msi 安装 FreeCAD 和 阅读 '''[[Getting started/zh-cn|入门]]'''!
</div>


== 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:
=== 简单微软安装器安装过程 ===
: {{FileName|C:\Users\<username>\AppData\Local\Programs\FreeCAD X.YY}}
'''在 Windows 上安装 FreeCAD'''的最简单方式是使用上面的安装器。此节描述了'''微软安装器'''更多安装选项的使用和特性。


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.
如果你想下载一个 64 位或者不稳定的开发版本,请参考 [[Download/zh-cn|下载]] 页。


If installed for all users, the default installation path is:
: {{FileName|C:\Program Files\FreeCAD X.YY}}


=== 命令行安装 ===
== Silent Installation ==
通过 ''msiexec.exe'' 命令行工具,可以获得额外的特性,例如非交互模式安装和管理员模式安装。


To install FreeCAD silently, you can execute the installer from the command line:
==== 非交互模式安装 ====
通过命令
msiexec /i FreeCAD<version>.msi
安装过程能够被程序化发起。额外的参数附加到这个命令行的尾部,就像
{{Code|code=
msiexec /i FreeCAD-2.5.msi TARGETDIR=r:\FreeCAD25
}}
==== 有限的用户交互 ====
安装器可以通过 /q 参数控制能显示的用户界面,特别地:

* /qn - 无用户交互
* /qb - 基本用户交互——只显示一个过程对话框。
* /qb! - 像 /qb,但是隐藏撤销按钮。
* /qr - 减少接口 - 显示所有不需要用户交互的对话框(跳过所有强制回应对话框)。
* /qn+ - 像 /qn,但是最后显示“安装完成”对话框。
* /qb+ - 像 /qb,但是最后显示“安装完成”对话框。


{{Code|lang=text|code=
==== Target directory ====
FreeCAD-~.exe /S
The property TARGETDIR determines the root directory of the FreeCAD installation. For example, a different installation drive can be specified with
{{Code|code=
TARGETDIR=R:\FreeCAD25
}}
}}
Default settings will be used for all options. A custom installation path can be specified in this manner:
The default TARGETDIR is [WindowsVolume\Programm Files\]FreeCAD<version>.


{{Code|lang=text|code=
==== Installation for All Users ====
FreeCAD-~.exe /S /D=A path to FreeCAD with spaces
Adding
{{Code|code=
ALLUSERS=1
}}
}}
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.


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:
==== Feature Selection ====
A number of properties allow selection of features to be installed, reinstalled, or removed. The set of features for the FreeCAD installer is


{{Code|lang=text|code=
* DefaultFeature - install the software proper, plus the core libraries
FreeCAD-~.exe /S /NCRC
* Documentation - install 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 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

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.


Note that this {{Incode|/NCRC}} flag is '''not recommended''' since the corruption check assures that the installer was e.g. completely downloaded.
=== Uninstallation ===
With
{{Code|code=
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.


== Chocolatey ==
=== 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).


Using the [https://chocolatey.org/install Chocolatey] package manager is currently not recommended as that repository is no longer kept up-to-date.
Currently, there is no user interface for administrative installations, so the target directory must be passed on the command line.


<span id="Uninstallation"></span>
There is no specific uninstall procedure for an administrative install - just delete the target directory if no client uses it anymore.
=== 卸载 ===
使用


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:
=== Advertisement ===
: {{FileName|Uninstall-FreeCAD.exe}}
With
You can find it in the folder where FreeCAD is installed.
{{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 uninstaller can also be executed silently using the command line:
The FreeCAD installer currently supports just advertisement of start menu entries, but no advertisement of shortcuts.


{{Code|lang=text|code=
=== Automatic Installation on a Group of Machines ===
Uninstall-FreeCAD.exe /S}}
With Windows Group Policy, it is possible to automatically install FreeCAD an 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 the FreeCAD to be deinstalled if the computer leaves the scope of the policy.


Note that (silent) uninstallation will fail if there is a running instance of FreeCAD, even if that instance is not the version being uninstalled.
Group policy propagation typically takes some time - to reliably deploy the package, all machines should be rebooted.


=== Installation on Linux using Crossover Office ===


<div class="mw-translate-fuzzy">
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:":
{{docnav|Feature list/zh-cn|Install on Unix/zh-cn}}
{{Code|code=
</div>
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]].


{{Userdocnavi{{#translation:}}}}
{{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.

如果你想下载一个 64 位或者不稳定的开发版本,请参考 下载 页。

下载完 .msi (微软安装文件格式) 文件,只需要双击它以启动安装过程。

下面是更多关于技术选项的信息。 如果它看起来很吓人,不要紧张!绝大部分 Windows 用户只需要使用 .msi 安装 FreeCAD 和 阅读 入门!

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.

卸载

使用

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/zh-cn
Install on Unix/zh-cn