let say my setup project deploys three executables and i create a new version of my software. in the next installation i want to detect which components are deployed with previous installation.

what is the best way to do that?