【发布时间】:2022-07-21 16:13:22
【问题描述】:
我一直在寻找一个选项,以不提示用户接受 EULA 或显示任何其他令人分心的提示的方式打包适用于 Windows 的 TeamViewerQS。解决方案如下。
【问题讨论】:
标签: powershell package teamviewer
我一直在寻找一个选项,以不提示用户接受 EULA 或显示任何其他令人分心的提示的方式打包适用于 Windows 的 TeamViewerQS。解决方案如下。
【问题讨论】:
标签: powershell package teamviewer
此处是 Powershell 示例,用于在 TeamViewerQS 开始/结束期间禁用任何提示。每个 REG 条目用于不同版本的工具:
# prepare registry for startup:
$reg = "HKCU:\\Software\TeamViewer"
if (!(Test-Path $reg)) {New-Item -Path $reg -Force -ea 0}
$null = New-ItemProperty -Path $reg -Name 'TeamViewerTermsOfUseAcceptedQS' -PropertyType 'DWord' -Value 1 -Force -ea 0
$null = New-ItemProperty -Path $reg -Name 'EulaByUserAccepted_QS' -PropertyType 'DWord' -Value 1 -Force -ea 0
$null = New-ItemProperty -Path $reg -Name 'IntroShown' -PropertyType 'DWord' -Value 1 -Force -ea 0
# disable exit-popup for v11:
$hta = "$env:temp\TeamViewer\TeamViewer11_Exit.hta"
$null = New-Item -Path $hta -Force -ea 0
$null = Set-ItemProperty -Path $hta -Name IsReadOnly -Value $true
包装愉快!这是一个很棒的工具!
【讨论】: