Solved
The powershell solution is sure interesting, but insufficient for the checks I want to do (just check for it to be valid is not enough).
I ended up doing it the old fashioned way: opened File Explorer, browsed (since I could not paste the path on the address bar) to the installer location, opened Properties dialog and checked everything I needed.
Thanks anyway for the suggestions!