Installer, new code Environment-specific code

Environment is in use, so some code must be rewritten.