refactor: scipt and request
This commit is contained in:
1 parent
00a8715e58
commit
93cb662282
4 files changed
+14
-11
No files matched your search
@@ -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 {
|
||||
throw "get QQ path error: $_"
|
||||
|
||||
@@ -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 {
|
||||
throw "get QQ path error: $_"
|
||||
|
||||
Reference in new issue
Block a user