Jun 27, 2014 at 3:29 AM
Edited Jun 27, 2014 at 4:55 AM
Thanks sintaxasn, that has helped me immensely!
Edit: Actually, it throws an error "Cannot convert the "System.Object" value of type "System.Object" to type "System.Version"
Can this code be placed in the Pre-Installation phase so that it does the detection before Show-InstallationWelcome?
Edit 2: I just tried the code again but detecting a different app title and it worked??
And I will answer my own question, yes, it can be placed in the Pre-Installation phase:
[version]$yourAppVersion = Get-InstalledApplication "Symantec Desktop Encryption" | select "DisplayVersion" -expand "DisplayVersion"
If ($yourAppVersion -lt [version]"220.127.116.11" -or $yourAppVersion -eq $null)
# Show Welcome Message, close Internet Explorer if required, allow up to 3 deferrals, verify there is enough disk space to complete the install and persist the prompt
Show-InstallationWelcome -CloseApps "iexplore" -AllowDefer -DeferTimes 10 -CheckDiskSpace -PersistPrompt
# Show Progress Message (with the default message)