Remember, this only works with "some programs". The list of said programs began to decline in 1995 with Windows 95 and continues to this day.
I know with Windows 7 I was able just to move a program folder
over instead of having to install.
One of these programs was an old pinball game called 3D Pinball
which was really old and won't install the program with the disc
Can you do this with Windows 10 with some programs?

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic