Cinema 4D Commandline Installation

Cinema 4D 命令线安装

Introduction

引言

There are two ways to install Cinema 4D:

安装 Cinema 4D 有两种方法:

  1. The ‘auto’ installer that loads all components from the Internet during runtime. 在运行时从互联网加载所有组件的“自动”安装程序
    By default, the auto installer has a reduced UI and is not interactive unless a dialog window appears to inform the user of an issue, most often to make a ‘yes / no’ choice. The auto installer requires Internet access in order to download the files it will install. After successful installation, the auto installer will launch the Cinema 4D version it has installed (you simply double-click the installer icon and then let it run). 默认情况下,自动安装程序有一个简化的用户界面,并且不是交互式的,除非出现一个对话框窗口通知用户某个问题,通常是做出“是/否”的选择。自动安装程序需要互联网接入才能下载将要安装的文件。安装成功后,自动安装程序将启动已安装的C4D 版本(您只需双击安装程序图标,然后让它运行)

  2. The ‘full’ installer that comes with all components already included. 完整的安装程序包含了所有已经包含的组件
    By default, this installer has an interactive dialog-based GUI that the user must interact with to install the product, with at least the install path appearing as a configurable option. It contains all files needed to install the product. No Internet connection is required. After successful installation, a final dialog window appears from which you can launch the product or not. You can then click on the Finish button to end the installation process. 默认情况下,这个安装程序有一个交互式的基于对话框的 GUI,用户必须与之交互才能安装产品,至少安装路径显示为可配置选项。它包含安装产品所需的所有文件。不需要互联网连接。安装成功后,将出现最后一个对话框窗口,您可以从中启动产品或不启动产品。然后,您可以单击 Finish 按钮来结束安装过程

There is an additional method for running the full installer: You can use the operating system’s command line to execute the installer application. By doing so you can also add optional parameters, if desired.

还有一个运行完整安装程序的额外方法: 您可以使用操作系统的命令行来执行安装程序应用程序。通过这样做,您还可以添加可选参数,如果需要的话。

For example, a command line installation (CLI) can be used to install Cinema 4D simultaneously on multiple computers using remote applications. This is done most easily when all computers have the same user and the same password, and the application is installed to the same location on every machine.

例如,可以使用命令行安装(CLI)在使用远程应用程序的多台计算机上同时安装 Cinema 4D。当所有计算机具有相同的用户和相同的密码,并且应用程序被安装到每台计算机的相同位置时,这样做最容易。

Tip: 提示:
Note that respective rights need to be set up for remote access and for the installation on the computers. 请注意,需要为远程访问和计算机上的安装设置相应的权限

The CLI could also be used to install the Team Render Client on ‘headless’ computers. The installation process is almost completely automated and requires no additional interactivity. A user interface on the remote computer is not absolutely necessary.

CLI 还可用于在“无头”计算机上安装 teamrender 客户端。安装过程几乎完全自动化,不需要额外的交互性。远程计算机上的用户界面并非绝对必要。

This document describes how to call the CLI as well as all the various parameters that are possible by doing so.

本文档描述了如何调用 CLI 以及通过这样做可以调用的所有参数。

Important note: 重要提示:
If you are not an expert in using the command line, this type of installation should be done by someone knowledgeable in the field or an expert who is familiar with all necessary steps. 如果你不是使用命令行的专家,这种类型的安装应该由该领域的专家或熟悉所有必要步骤的专家来完成

Using the CLI

使用 CLI

Differences between macOS and Windows

macOS 和 Windows 的区别

File paths are system-specific. In the following you will find two examples that are applied to the subsequent explanations.

文件路径是特定于系统的。

macOS file path:

文件路径:

/Users/<Username>/Desktop/Cinema 4D Full Installer

/Users/< username >/Desktop/Cinema 4D Full Installer

Windows file path:

文件路径:

Remote applications

远程应用程序

For macOS:

对于 macOS:

For Windows:

对于 Windows:

Running the CLI

运行 CLI

In the Finder (macOS) or Explorer (Windows), open the directory where the installer application is located.

在 Finder (macOS)或 Explorer (Windows)中,打开安装程序所在的目录。

Under macOS

在 macOS 之下

First - and this is important! - open the downloaded DMG and copy the .app into a directory you can access in a Terminal (e.g., the user’s desktop).

首先,这一点很重要!- 打开下载的 DMG 并复制。应用程序进入一个目录,你可以访问终端(例如,用户的桌面)。

Right-click on the Cinema 4D Full Installer file and select Show Package Content from the context menu. Move to the Contents > macOS directory. Its content will look as follows:

右键单击 Cinema 4D Full Installer 文件,并从上下文菜单中选择 Show Package Content。移动到目录 > macOS 目录。其内容如下:

Open the Terminal by either entering ‘terminal’ in the search function or by opening the application under Applications > Utilities > Terminal.

通过在搜索功能中输入‘ Terminal’或在应用程序 > 实用程序 > Terminal 下打开应用程序来打开终端。

To enter CLI parameters, drag the installbuilder.sh file into the console window (alternatively you can enter the file’s path manually). A space character should follow the path to separate the path from the parameters.

要输入 CLI 参数,可以将 installbuilder.sh 文件拖到控制台窗口中(或者你也可以手动输入文件的路径)。空格字符应该遵循路径以将路径与参数分离。

Under Windows

在 Windows 下

Open the console by right-clicking the Windows Start button and selecting Run from the context menu. In the dialog, enter ‘cmd’ and press Enter (alternatively you can use the Windows search function. Enter ‘cmd’ to have Windows find the console application for you).

通过右键单击 Windows Start 按钮并从上下文菜单中选择 Run 打开控制台。在对话框中,输入“ cmd” ,然后按下回车键(或者你可以使用 Windows 搜索功能)。输入‘ cmd’让 Windows 为你找到控制台应用。

To enter CLI parameters, drag the executable Cinema 4D Full Installer.exe file into the console window (alternatively you can enter the file’s path manually). A space character should always follow to separate the path from the parameters.

要输入 CLI 参数,请将可执行的 Cinema 4D Full Installer.exe 文件拖到控制台窗口(或者您可以手动输入该文件的路径)。为了将路径与参数分开,应该始终使用空格字符。

CLI Parameters

参数

Tip: 提示:
  1. Every parameter you enter must be introduced by a double hyphen ‘--’; the parameter’s name follows directly afterward (no space). 您输入的每个参数都必须由一个双连字符‘ -- ’引入; 参数的名称紧随其后(没有空格)
  2. An option must be separated from its parameter by a space. 选项与其参数之间必须用空格隔开
  3. All parameters that should be executed sequentially must be separated by a space. 所有应该按顺序执行的参数必须用空格分隔

--help

-- 救命

This parameter shows a list of all available commands.

此参数显示所有可用命令的列表。

--version

-- 版本

This parameter shows some product version information. This might be helpful in case you need to contact Maxon support.

此参数显示了一些产品版本信息。如果您需要联系 Maxon 支持,这可能会有帮助。

--prefix <Path>

-- 前缀 < path >

This parameter is used to set a different installation location from the default path.

此参数用于设置与默认路径不同的安装位置。

Tip: 提示:
If the path contains spaces it needs to be enclosed in double quotes (see examples below) 如果路径包含空格,则需要用双引号括起来(参见下面的示例)

Default on macOS:

默认的 macOS:

/Applications/Maxon Cinema 4D <Rel.-Number>

/申请书/域迅Cinema 4D < 档案ー编号 >

Default on Windows:

Windows 的默认设置:

C:\Applications\Maxon Cinema 4D <Rel.-Number>

C: 应用程序 Maxon Cinema 4D < rel- number >

--unattendedmodeui <UI-Mode>

-- unattendedmodeui < ui-mode >

This parameter sets the state of the installer’s user interface if the mode (see below) has been set to ‘unattended’.

如果模式(见下文)被设置为“无人参与” ,此参数将设置安装程序的用户界面状态。

Options:

选择:

Default:

违约:

minimalWithDialogs

4. minimalWithDialogs

--mode <Mode>

-- mode < mode >

This parameter sets the installation mode.

此参数设置安装模式。

Options on macOS:

macOS 的选项:

osx

This option shows the user interface (dialogs, etc.).

此选项显示用户界面(对话框等)。

unattended

无人照管的

Here, no user interface will appear. Use this for silent installations.

在这里,不会出现用户界面。使用此选项进行静默安装。

Options on Windows:

Windows 上的选项:

win32

胜32

This option shows the user interface (dialogs, etc.).

此选项显示用户界面(对话框等)。

unattended

无人照管的

Here, no user interface will appear. Use this for silent installations.

在这里,不会出现用户界面。使用此选项进行静默安装。

Default on macOS:

默认的 macOS:

osx

Default on Windows:

Windows 的默认设置:

win32

胜32

--installer-language <Language shortcut>

-- 安装程式语言 < 语言捷径 >

This parameter sets the language of the installer’s user interface.

此参数设置安装程序用户界面的语言。

Options

选择

ar, es_AR, az, pt_BR, bg, ca, zh_CN, cs, cy, da, de, el, en, es, et, eu, fa, fi, fr, he, hr, hu, id, it, ja, kk, ko, lt, lv, nl, no, pl, pt, ro, ru, sk, sl, sr, sq, sv, th, tk, tr, zh_TW, va, vi

Ar,az,pt,br,bg,ca,zh,cn,cs,cy,da,de,el,en,es,et,eu,fa,fi,fr,he,hr,hu,id,it,ja,kk,ko,lt,lv,nl,no,pl,pt,ro,ru,sk,sl,sr,sv,th,tk,tr,zh,tw,va,vi

Default: Language of your operating system if available, ‘en’ otherwise.

默认值: 如果操作系统语言可用,则为“ en”。

Examples

例子

Completely invisible/silent installation (macOS):

完全隐形/静音安装(macOS) :

Cinema 4D Full Installer.app/Contents/macOS/installbuilder.sh --mode unattended --unattendedmodeui none

Cinema 4D Full Installer.app/Contents/macOS/installbuilder.sh -- mode unattended modeui none

Installation to a different folder and have the installer language set to Simplified Chinese (Windows):

安装到另一个文件夹,并将安装程序语言设置为简体中文文件夹(Windows) :

Cinema 4D Full Installer.exe --prefix "D:\Graphics\Maxon\My C4D Folder" --installer-language zh_CN

Cinema 4D Full Installer.exe ——前缀“ d: Graphics Maxon My C4D Folder”—— installer-language zh _ cn

De-Installation (Windows only)

取消安装(只适用于视窗)

The following parameters are available for the uninstall application that is located in the Cinema 4D installation folder. Please see above for a description.

下面的参数可用于位于 Cinema 4D 安装文件夹中的卸载应用程序。请看上面的描述。

--help

-- 救命

--version

-- 版本

--mode <Mode>

-- mode < mode >

--installer-language <Language shortcut>

-- 安装程式语言 < 语言捷径 >

Log files

日志文件

When the installer copies Cinema 4D onto your hard disk it writes one or more log files. Such a log file contains all occurences during an installation, e.g.. the creation of a new folder, copying files, and in case something could not be installed, error messages. In case something goes wrong during an installation it is a good idea to have a look at these files:

当安装程序将 Cinema 4D 复制到你的硬盘上时,它会写入一个或多个日志文件。这样的日志文件包含安装过程中发生的所有事件,例如。创建一个新的文件夹,复制文件,并在某些情况下无法安装,错误消息。如果在安装过程中出现问题,最好查看一下这些文件:

/tmp/bitrock_installer.log

/tmp/bitrock _ installer.log

/tmp/bitrock_installer_<Number>.log

/tmp/bitrock _ installer _ < number > . log

Under Windows you will find the log files here:

在 Windows 下,你可以在这里找到日志文件:

C:\Users\<Username>\AppData\Local\Temp\bitrock_installer.log

C: 用户名 < 用户名 > AppData Local Temp bitrock _ installer. log

C:\Users\<Username>\AppData\Local\Temp\bitrock_installer_<Number>.log

C: 用户名 < 用户名 > AppData Local Temp bitrock _ installer _ < number > . log