写这脚本真是麻烦,ai都救不了
$softexekey = (dir "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths" -Recurse -include *chrome* | Get-ItemProperty | select "(default)")."(default)"
$currentVersion = (Get-Item $softexekey).VersionInfo.ProductVersion
Write-Host $currentVersion
Write-Host $softexekey