How are computer system infections created?

How are computer system infections created?

Computer viruses are produced by individuals who desire to cause harm to others, or who desire to gain control over somebody else's computer system.  https://romanquarterconsultation.co.uk/?p=334 Once the infection is running, it can do anything its creator desires it to, including erasing files, taking information, or sending spam.