This's copied from InstallApplication, anyway I will change them both.