You can for the most part (I've done exactly that for the dependencies of a windows-developed system). Almost all installers support an unattended or 'silent' installation mode through a command line switch, though it can be a bit of a pain to get them to work the way you want.