One way to have your install programs automatically reinstalled with a high degree of success and carry them over from one OS to another, or from an old PC to a new PC, is to use a 3rd party tool. Easeus and Laplink both do one: a one time license fee. The cost is worth it if you have a lot to reinstall and configure.

The easier way is to
a. create a disk image of your existing system
b. reset/clean install Windows
c. Install and use the Easeus or Laplink tool, which uses the disk image you created as a source: these then 'reinstall' the programs and other settings.

I've used this 3 times over the years with considerable success, with a LOT of programs installed. Perhaps 95% + success- a few needed the license applying or reinstalling.