Installing Java without unticking a checkbox is an example. Or installing a Chrome extension that at a later time is bought by someone who silently updates it to do harm. Or installing Hola VPN. Etc.
a) Use ninite.com
b) Don't install stupid shit, and pay attention when it all of a sudden says "I need more permissions"
c) If it sounds too good to be true, it probably is.