It's only possible if your applications are installed on the default location.
Best practice against this vulnerabilities and some others : change the default path when installing all your programs, for instance on another partition in a dedicated folder
Cheers,