Application install function changed to try 3 different methods.