I would like to get the package names of all installed applications, is there a way to do that?

I can get a list with all installed applications (with RApaLsSession), but this is not the same as all installed sis files.
I need to know each application to which sis file belongs, is there a public API for that?