Note that this may also be your antivirus (in our case CrowdStrike) killing the pgAdmin installation midway through. You may need to whitelist as appropriate.