installing Mac OS X 10.7.x Lion onto a new virtual machine and installing the app there
This would be in violation of the SLA as it specifies that you can only run a copy of your currently installed OS as a VM - not a different version - see page 2 of the SLA (Section 2 B, iii):
https://www.apple.com/legal/sla/docs/macosx107.pdf
That is true but the installer won’t let you proceed with an installation that won’t boot your Mac.
I was not referring to an installer - I was referring to a bootable clone. I much prefer a fully and independent bootable clone which can be used to boot into and then format a disk and clone back the OS (which can have all the apps you installed, etc). I have a plethora of bootable clones going all the way back to Snow Leopard and all created from out-of-the-box fresh installs (some with/without added applications); but, they all need a machine that will support booting with them.