Warning · Logic
Neither check protects the verified file through process creation.
Impact
A concurrent file change can cause the installer to execute bytes that were never verified.
Recommended action
Hash each executable while preventing writes and replacement, and keep that protection in place through process creation.