Automaticallly checking the file to compile when install; check file existence before uninstalling

...hen uninstall