How long does HIV live in semen and is dried cum still infectious?

Varies. It depends upon physical factors like how rapidly the semen dries, the temperature, where the semen is deposited, etc. This virus seldom survives long outside of the body unless it has a cell carrier. Semen can provide that as long as it remains wet. Once it is completely dry the virus will die.