Quantcast
Channel: psappdeploytoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1769

New Post: A parameter cannot be found that matches parameter name 'eq'.

$
0
0
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
Show-InstallationPrompt -Message 'The installation of '$appName' '$appVersion' complete.' -ButtonRightText 'OK' -Icon Information -NoWait
Or
Show-InstallationPrompt -Message "The installation of $appName $appVersion complete." -ButtonRightText 'OK' -Icon Information -NoWait

Viewing all articles
Browse latest Browse all 1769

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>