The installer would have to support using command line switches.
You can try
progname.exe /? or
progname.exe -? to see if it will list any, or contact the author to see if it's supported.
If you know what installer the program is using, you can check their website for info.
InstallShield Microsoft Windows Installer CCleaner
Doing a search for
ProgramName command line switches or
ProgramName command line parameters will often locate the info.
For example,
ccleaner command line switches finds the above link as the first one.
So for CCleaner you would use:
ccsetup222 /S /L=1033
to silently install to the default path in English. (222 is the latest version)