mirror of
https://github.com/winapps-org/winapps.git
synced 2025-06-02 13:17:19 +02:00
Fixed Issue #71.
This commit is contained in:
parent
44b1a70996
commit
57e17c8555
@ -212,7 +212,12 @@ Get-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\*" |
|
||||
Where-Object {$_."(default)" -ne $null} |
|
||||
ForEach-Object {
|
||||
$Exe = $_."(default)".Trim('"')
|
||||
$Name = (Get-Item $Exe).VersionInfo.FileDescription.Trim() -replace " "," "
|
||||
$Item = Get-Item $Exe
|
||||
if ($Item.VersionInfo.FileDescription) {
|
||||
$Name = $Item.VersionInfo.FileDescription.Trim() -replace " ", " "
|
||||
} else {
|
||||
$Name = [System.IO.Path]::GetFileNameWithoutExtension($Exe)
|
||||
}
|
||||
$Icon = Get-Icon -Path $Exe -ToBase64
|
||||
#Get-ItemProperty $Exe -Name VersionInfo
|
||||
"NAMES+=(""$Name"")"
|
||||
|
Loading…
x
Reference in New Issue
Block a user