This extension should do what you’re asking, but I don’t know if it uses getInstallSourceInfo().
getInstallSourceInfo()