Cannot be done, in most cases.....
On install an application places pointers on how it functions in the Windows registry. Without the pointers Windows cannot access the application.
You talk to the application
Application talks to Windows
Windows talks to the hardware then back to you (Simplifed)
How can I install all components of a program in a partion on my hard drive so I do not have to reinstall them, when I format C:/Drive?