Adding canUseInstaller common function.
Adding canUseInstaller to package.js.