- 发行说明
- 入门指南
- 硬件和软件要求
- 设置和配置
- 使用 Task Capture
- 其他资源
在本部分中,您可以找到可用于 Task Capture 应用程序的命令行参数。
安装命令行参数说明
It is possible to install or update Task Capture using the below-mentioned command lines if you have the task-capture-setup.msi installer. The table below lists all the available parameters you can use, paired with some examples.
- Setup command-line arguments cannot be used and do not work on TaskCapture.exe.
- This package natively supports all msiexec commands.
- 需要管理员权限才能执行这些命令。
| 项目 | 命令 | 描述 |
|---|---|---|
| 安装选项 | /i | 用于正常安装 |
| - | /a | 用于管理员安装 |
| - | /x | 用于卸载包 |
| - | APPLICATIONROOTDIRECTORY='{folder_path}' | 用于更改安装目录 |
| 显示选项 | /quiet | 安静模式 |
| - | /passive | 无人值守模式 |
| - | /q[n|b|r|f] | 设置用户界面级别,如下所示:f - 完整用户界面(默认),b - 基本用户界面,r - 减少的用户界面,n - 无用户界面 |
| 重新启动选项 | /norestart | 安装完成后,不会重新启动计算机。 |
| - | /promptrestart | 如果需要重新启动,将提示用户 |
| - | /forcerestart | 安装完成后,不会重新启动计算机。 |
| 自定义参数 | LICENSECODE=1111-1111-1111-1111或 LICENSECODE=offline_activation_string | 通过许可证代码或许可证激活字符串(用于离线激活)激活独立版应用程序。 |
| - | TEMPLATES=template1.ssword;template2.ssword;... | 默认安装自定义模板。 |
| - | PROXYCONFIG="config.json" 以及配置文件的路径 | 配置代理设置。 |
| - | SHOWSIGNIN=1 (默认) | Show the user profile icon and allows to login to UiPath Cloud. Use SHOWSIGNIN=0 to hide the sign-in dialog on the application UI. |
| 遥测参数 | TELEMETRYENABLED=1 (默认) | Telemetry is enabled by default. Use TELEMETRYENABLED=0 to disable telemetry. |
| - | SHOWTELEMETRYTOGGLE=1 (默认) | The telemetry toggle option is shown by default. Use SHOWTELEMETRYTOGGLE=0 to hide the telemetry option toggle. |
- 使用空格传递值时,需要使用双引号将这些值引用起来。
- 请记住,双引号需要转义。
- 在需要转义的字符前使用反引号`(适用于 PowerShell)以及^(适用于命令提示符)。
- The template file should be in .ssword format. Please see Export and Publish to find out how to create the file using Task Capture
示例:
下面的示例演示了该工具的静默安装 (q) 与基本用户界面 (b) 和许可证激活 (LICENSECODE):
In the msiexec /i ${task-capture-setup.msi} /qb LICENSECODE=${license_code} the following elements are avaialble:
-
${task-capture-setup.msi} the path to the .msi installer file,
例如“C:\user.name\Downloads\task-capture-setup.msi”
-
${license_code} is one of the following:
- 在线激活的许可证代码,例如 1111-1111-1111-1111
- 离线激活字符串: 的最后阶段使用的字符串。
The following example illustrates how to install your pre-defined custom templates by using the TEMPLATES parameter:
We'll start with the following:msiexec /i task-capture-setup.msi /qb TEMPLATES=^"C:\Users\username\Documents\MyTemplate.ssword^" - for CMDmsiexec /i task-capture-setup.msi /qb TEMPLATES="C:\Users\username\Documents\MyTemplate.ssword" - for POWERSHELLthe following elements are available:
- task-capture-setup.msi the path to the .msi installer file
- TEMPLATES= parameter contains the following information:
- ^"C:\Users\username\Documents\MyTemplate.ssword^ (CMD) or
"C:\Users\username\Documents\MyTemplate.ssword" (POWERSHELL) the path towards the pre-defined custom template that you set up.
- ^"C:\Users\username\Documents\MyTemplate.ssword^ (CMD) or
应用程序命令行参数说明
Task Capture 的可执行文件接受以下 CLI 参数:
- 当使用 LICENSECODE 或 TEMPLATES 参数调用安装程序时,这些参数将用于 .msi 安装过程。
- 通过使用它,无需打开其他窗口即可静默调用 Task Capture。
许可证激活参数:
--activate=${license}, where ${license} has one of the following values:
-
在线激活的许可证代码,
e.g. --activate=1111-1111-1111-1111
-
离线激活字符串:Task Capture 离线激活的最后阶段使用的字符串。
许可证停用参数:
--deactivatethat deactivates active license(s). Through it, Task Capture sends a deactivation request to the License Server and removes the license file.
默认安装自定义模板:
--import-templates={template1};{template2};... adds the selected templates into the installation folder.
- 若有多个模板,请使用分号 (;) 作为分隔符。
- Task Capture 会尝试导入每个给定模板。
- 如果无法导入其中某个所选模板,系统将显示代码 1。
- 所有错误都将写入日志文件。
用法:
适用于 MSI 版本的某些操作可能需要管理员权限。
The executable file name is Task Capture.exe and, depending on the installation type is locates in:
- %localappdata%/Programs/task-capture folder for the .exe installer;
- %programfiles%/Task Capture folder for .msi installer.
由于文件和文件夹的名称包含空格,因此请不要忘记使用双引号将可执行文件的路径引用起来。
示例:
- "%programfiles%/Task Capture/Task Capture.exe" --activate=1111-1111-1111-1111 activates the .msi version.
- %localappdata%/Programs/task-capture/Task Capture.exe” --deactivate - deactivates the .exe version.