From 25f947968c15a6f440bf0af166d9b7e8935c5eeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Fri, 17 May 2024 19:55:12 +0800 Subject: [PATCH] fix: typo --- script/napcat-utf8.ps1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/script/napcat-utf8.ps1 b/script/napcat-utf8.ps1 index 7ea11c49..7d2955f6 100644 --- a/script/napcat-utf8.ps1 +++ b/script/napcat-utf8.ps1 @@ -2,7 +2,6 @@ function Get-QQpath { try { $key = Get-ItemProperty -Path "HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\QQ" $uninstallString = $key.UninstallString - throw "get QQ path error:" return [System.IO.Path]::GetDirectoryName($uninstallString) + "\QQ.exe" } catch { @@ -13,8 +12,8 @@ function Select-QQPath { Add-Type -AssemblyName System.Windows.Forms [System.Windows.Forms.Application]::EnableVisualStyles() - $dialogTitle = "Select an EXE File" - + $dialogTitle = "Select QQ.exe" + $filePicker = New-Object System.Windows.Forms.OpenFileDialog $filePicker.Title = $dialogTitle $filePicker.Filter = "Executable Files (*.exe)|*.exe|All Files (*.*)|*.*"