mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
fix: typo
This commit is contained in:
parent
cad824dcbc
commit
25f947968c
@ -2,7 +2,6 @@ function Get-QQpath {
|
|||||||
try {
|
try {
|
||||||
$key = Get-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ"
|
$key = Get-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ"
|
||||||
$uninstallString = $key.UninstallString
|
$uninstallString = $key.UninstallString
|
||||||
throw "get QQ path error:"
|
|
||||||
return [System.IO.Path]::GetDirectoryName($uninstallString) + "\QQ.exe"
|
return [System.IO.Path]::GetDirectoryName($uninstallString) + "\QQ.exe"
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
@ -13,7 +12,7 @@ function Select-QQPath {
|
|||||||
Add-Type -AssemblyName System.Windows.Forms
|
Add-Type -AssemblyName System.Windows.Forms
|
||||||
[System.Windows.Forms.Application]::EnableVisualStyles()
|
[System.Windows.Forms.Application]::EnableVisualStyles()
|
||||||
|
|
||||||
$dialogTitle = "Select an EXE File"
|
$dialogTitle = "Select QQ.exe"
|
||||||
|
|
||||||
$filePicker = New-Object System.Windows.Forms.OpenFileDialog
|
$filePicker = New-Object System.Windows.Forms.OpenFileDialog
|
||||||
$filePicker.Title = $dialogTitle
|
$filePicker.Title = $dialogTitle
|
||||||
|
Loading…
x
Reference in New Issue
Block a user