Merge topic 'fix-installscripts-gen' into release-3.31

ca5e6dadb5 install: Generate InstallScripts.json in consistent location

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10168