msi option, printer

Signed-off-by: fufesou <linlong1266@gmail.com>
This commit is contained in:
fufesou 2025-03-27 15:55:24 +08:00
parent 80bff84d33
commit d395b4c495
2 changed files with 38 additions and 4 deletions

View File

@ -44,6 +44,23 @@ Whether to create a desktop shortcut.
| 3 | `Y` | Yes, same as `1` |
| 4 | `N` | No, same as `0` |
### INSTALLPRINTER
Whether to install a printer. The printer is used to execute the print jobs of the controlled side locally.
Since version `1.3.9`.
**Default**:
1. Install. Defaults to `1`.
2. Upgrade. Defaults to the last installed options.
| No | Value | Desc |
| :---: | :---: | :---: |
| 1 | `1` | Yes |
| 2 | `0` | No |
| 3 | `Y` | Yes, same as `1` |
| 4 | `N` | No, same as `0` |
## Examples
**Caution**: For versions prior to `2024-08-05`, there are issues with silent installation and silent repair. Please uninstall first, then install.
@ -53,7 +70,7 @@ Whether to create a desktop shortcut.
Silent installation, set the installation path, do not create a desktop shortcut, create a start menu shortcut.
```
msiexec /i RustDesk-1.msi /qn INSTALLFOLDER="D:\Program Files\RustDesk" CREATESTARTMENUSHORTCUTS="Y" CREATEDESKTOPSHORTCUTS="N" /l*v install.log
msiexec /i RustDesk-1.msi /qn INSTALLFOLDER="D:\Program Files\RustDesk" CREATESTARTMENUSHORTCUTS="Y" CREATEDESKTOPSHORTCUTS="N" INSTALLPRINTER="N" /l*v install.log
```
**Note**: `/l*v install.log` means printing the execution log to `install.log`.
@ -69,5 +86,5 @@ msiexec /i RustDesk-2.msi /qn /l*v install.log
### Upgrade, modify installation options
```
msiexec /i RustDesk-1.msi /qn INSTALLFOLDER="C:\Program Files\RustDesk" CREATESTARTMENUSHORTCUTS="N" CREATEDESKTOPSHORTCUTS="N" /l*v install.log
msiexec /i RustDesk-1.msi /qn INSTALLFOLDER="C:\Program Files\RustDesk" CREATESTARTMENUSHORTCUTS="N" CREATEDESKTOPSHORTCUTS="N" INSTALLPRINTER="N" /l*v install.log
```

View File

@ -45,6 +45,23 @@ MSI 安装支持命令行参数,以方便静默安装。
| 3 | `Y` | 是,同 `1` |
| 4 | `N` | 否,同 `0` |
### INSTALLPRINTER
是否安装打印机。打印机用于本地执行被控端的打印作业。
`1.3.9` 版本开始支持。
**默认**:
1. 安装。默认为 `1`
2. 升级。默认为上次安装时的选项。
| 编号 | 值 | 说明 |
| :---: | :---: | :---: |
| 1 | `1` | 是 |
| 2 | `0` | 否 |
| 3 | `Y` | 是,同 `1` |
| 4 | `N` | 否,同 `0` |
## 示例
**注意**: 对于 `2024-08-05` 之前的版本,执行 静默安装 和 静默修复 时会有问题。请先执行卸载,再执行安装。
@ -54,7 +71,7 @@ MSI 安装支持命令行参数,以方便静默安装。
静默安装,设置安装路径,不创建桌面快捷方式,创建 start menu 快捷方式。
```
msiexec /i RustDesk-1.msi /qn INSTALLFOLDER="D:\Program Files\RustDesk" CREATESTARTMENUSHORTCUTS="Y" CREATEDESKTOPSHORTCUTS="N" /l*v install.log
msiexec /i RustDesk-1.msi /qn INSTALLFOLDER="D:\Program Files\RustDesk" CREATESTARTMENUSHORTCUTS="Y" CREATEDESKTOPSHORTCUTS="N" INSTALLPRINTER="N" /l*v install.log
```
**注**: `/l*v install.log` 表示打印执行日志到 `install.log` 中。
@ -70,5 +87,5 @@ msiexec /i RustDesk-2.msi /qn /l*v install.log
### 升级,修改安装参数
```
msiexec /i RustDesk-2.msi /qn INSTALLFOLDER="C:\Program Files\RustDesk" CREATESTARTMENUSHORTCUTS="N" CREATEDESKTOPSHORTCUTS="N" /l*v install.log
msiexec /i RustDesk-1.msi /qn INSTALLFOLDER="C:\Program Files\RustDesk" CREATESTARTMENUSHORTCUTS="N" CREATEDESKTOPSHORTCUTS="N" INSTALLPRINTER="N" /l*v install.log
```