diff --git a/Scripts/Update-SmartProjects.IsoBuster.ps1 b/Scripts/Update-SmartProjects.IsoBuster.ps1 index 9a114de..fc5dae9 100644 --- a/Scripts/Update-SmartProjects.IsoBuster.ps1 +++ b/Scripts/Update-SmartProjects.IsoBuster.ps1 @@ -16,7 +16,7 @@ $latestVersionUrl = $url -split " " | Select-Object -First 1 $DownloadFileName = "IsoBuster_installer.exe" Invoke-WebRequest -Uri $latestVersionUrl -OutFile $DownloadFileName $file = Get-ChildItem -Path $DownloadFileName -$versionInfo = $file.VersionInfo.ProductVersion +$versionInfo = $file.VersionInfo.ProductVersion.trim() if ($null -eq $versionInfo) { Write-Host "Could not find version info in file"