Message : A parameter cannot be found that matches parameter name 'eq'.
InnerException :
I think you have a closing bracket missing - it's assuming you have -eq as a parameter of Get-InstalledApplication. I would suspect your issue is here:
if (((Get-InstalledApplication -Name "Wireshark 1.12.3 (64-bit)">>)<< -eq $appName) -and ($appDisplayVersion -eq $appVersion))
Re variables not being expanded, this is because you are using single quotes, which don't expand variables unlike double quotes.. You would need to use
InnerException :
I think you have a closing bracket missing - it's assuming you have -eq as a parameter of Get-InstalledApplication. I would suspect your issue is here:
if (((Get-InstalledApplication -Name "Wireshark 1.12.3 (64-bit)">>)<< -eq $appName) -and ($appDisplayVersion -eq $appVersion))
Re variables not being expanded, this is because you are using single quotes, which don't expand variables unlike double quotes.. You would need to use
Show-InstallationPrompt -Message 'The installation of '$appName' '$appVersion' complete.' -ButtonRightText 'OK' -Icon Information -NoWait
OrShow-InstallationPrompt -Message "The installation of $appName $appVersion complete." -ButtonRightText 'OK' -Icon Information -NoWait