added code to keep the app running and also modify registry and also create scheduled tasks