Malware is software. It gets installed just like any other software on a computer.
Can you order the steps for installing malware on your computer?
Woah! Did you ever notice how much access you grant to software on your computer?
The installer requests access to parts of your computer, starts the installation process, then requests more access.