That totally depends on the installer you're trying to use.
Unfortunately, Windows installers aren't all .msi packages, and the
executables all have different switches.
You could check out Chocolatey, which certainly has loads of silent install
scripts for installing apps (and everything's done with PowerShell
scripts), including packages for Notepad++ and Notepad2, etc.