Skip to main content

Unattended Installation and Upgrade

OutSystems

Unattended Installation and Upgrade

This article applies to:OutSystems 10.0

The goal of this document is to describe the unattended or automated processes of installing or updating OutSystems Platform Server, and adding a new front-end server.

Overview

OutSystems allows performing silent or automated Platform Server installations and upgrades, as well as adding a new front-end server.

The process for installing or upgrading OutSystems Platform Server in unattended mode involves the following high-level steps:

  1. Install the OutSystems platform prerequisites;
  2. Install or upgrade the Platform Server binaries;
  3. Only for Oracle and MySQL: create the database users;
  4. Update the server.hsconf configuration file;
  5. Run Configuration Tool and install Service Center;
  6. Publish System Components;
  7. Upload license file (requires manual intervention);
  8. Publish LifeTime;
  9. Publish OutSystems Now;
  10. Only for upgrades and updates: republish the entire factory.

The following sections present detailed instructions on how to install, upgrade, and add front-end servers in unattended mode for .NET, check here for other stacks.

Before You Start

  • Download the "Installation Checklist" for the .NET stack from OutSystems website;

  • To publish OutSystems Now you will need to download OutSystems Now from Forge;

  • The default paths used in the procedures below are the following:

    platform_path =  C:\Program Files\OutSystems\Platform Server
    outsystems_common_path =  C:\Program Files\Common Files\OutSystems\10.0

    Adjust them if necessary.

First Install

  1. Install the OutSystems platform prerequisites

    Follow the instructions in the Pre-installation checklist section of the "Installation Checklist".

  2. Install the Development Environment binaries

    Run the OutSystems Development Environment installation package as follows:
    DevelopmentEnvironment-M.m.R.p.exe /S [/D=development_environment_path]

    The optional /D switch specifies the path where the Development Environment is installed

  3. Install the Platform Server binaries

    Run the OutSystems Platform Server installation package as follows:

    PlatformServer-M.m.R.p.exe /S [/D=platform_path]
    

    The optional /D switch specifies the path where the OutSystems Platform Server is installed.

  4. Only for Oracle and MySQL: create the database users

    Follow the instructions in the Database section of the Installation Checklist.

  5. Update the server.hsconf configuration file

    Replace the default platform_path\server.hsconf file with a customized template containing your specific configurations.

    To help create specific server configuration files, Configuration Tool can automatically generate different configuration file templates for each database engine on which OutSystems can run on. The templates refer to the operating system and application server where the Configuration Tool is running. You can check the description of each parameter in the server.hsconf file here.

    Templates can be automatically generated before proceeding with the configuration steps of the unattended installation process (or even before the installation of the platform in the new machine, if you already have another machine where the platform is already installed), by using the following command line which will save them to the directory platform_path\docs:

    platform_path\ConfigurationTool.com /GenerateTemplates
    

    Keep in mind that configuration settings differ between OutSystems platform database.

    To easily add a front-end later, the CompilerServerHostname parameter must include the name or IP of the machine and not localhost. The same applies to other parameters that refer hostnames.

    Ensure that usernames and passwords are stored with the correct casing.

  6. Run Configuration Tool and install Service Center

    For SQL Server:

    platform_path\ConfigurationTool.com /SetupInstall db_elevated_user db_elevated_pass /RebuildSession session_db_admin_user session_db_admin_pass /SCInstall
    

    For Oracle and MySQL:

    platform_path\ConfigurationTool.com /SetupInstall /RebuildSession session_db_admin_user session_db_admin_pass /SCInstall
    
  7. Publish System Components

    outsystems_common_path\OSPTool.com /Publish "platform_path\System_Components.osp" hostname username password
    
  8. Upload license file (requires manual intervention)

    Manually obtain a valid OutSystems platform license from www.outsystems.com/licensing using the environment activation code.

    platform_path\ConfigurationTool.com /UploadLicense license_file.lic
    
  9. Publish LifeTime

    outsystems_common_path\OSPTool.com /Publish "platform_path\LifeTime.osp" hostname username password
    
  10. Publish OutSystems Now

    Requires downloading OutSystems Now from Forge.

    outsystems_common_path\OSPTool.com /Publish "OutSystemsNow-version.oap" hostname username password
    

Upgrade

  1. Install the OutSystems platform prerequisites

    The platform prerequisites do not change when upgrading to a new revision, so it is only necessary to do this when upgrading between major versions (e.g. from 9.1 to 10). Follow the instructions in the Pre-installation Checklist section of the Installation Checklist.

  2. Install the Development Environment binaries

    Run the OutSystems Development Environment installation package as follows:
    DevelopmentEnvironment-M.m.R.p.exe /S [/D=development_environment_path]

    The optional /D switch specifies the path where the Development Environment is installed

  3. Install the Platform Server binaries

    Run the OutSystems Platform Server installation package as follows:

    PlatformServer-M.m.R.p.exe /S [/D=platform_path]
    

    The optional /D switch specifies the path where the OutSystems Platform Server is installed.

  4. Update the server.hsconf configuration file

    Skip this step if no changes are necessary to the running configuration and that configuration file templates haven’t changed.

  5. Run Configuration Tool and install Service Center

    platform_path\ConfigurationTool.com /UpgradeInstall [/RebuildSession session_db_admin_user session_db_admin_pass] /SCInstall
    
  6. Publish System Components

    outsystems_common_path\OSPTool.com /Publish "platform_path\System_Components.osp" hostname username password
    
  7. Upload license file (requires manual intervention)

    Skip this step if the existing license is valid for the OutSystems version you’re upgrading to.

    Manually obtain a valid OutSystems platform license from www.outsystems.com/licensing using the environment activation code.

    platform_path\ConfigurationTool.com /UploadLicense license_file.lic
    
  8. Publish LifeTime

    outsystems_common_path\OSPTool.com /Publish "platform_path\LifeTime.osp" hostname username password
    
  9. Publish OutSystems Now

    Requires downloading OutSystems Now from Forge.

    outsystems_common_path\OSPTool.com /Publish "OutSystemsNow-version.oap" hostname username password
    
  10. Republish the entire factory

    outsystems_common_path\OSPTool.com /PublishFactory hostname username password
    

Adding a Front-End

  1. Install the Platform Server binaries

    Implies execution of the steps described in the Pre-installation Checklist (e.g. server roles and features, services options).

    Run the OutSystems Platform Server installation package as follows:

    PlatformServer-M.m.R.p.com /S [/D=platform_path]
    

    The optional /D switch specifies the path where the OutSystems Platform Server is installed.

  2. Copy the configuration files from the controller node to the front-end

    In order for this step to be successful, the server.hsconf file in the deployment controller machine must not refer to localhost in any hostname parameter, namely the deployment controller hostname. If that is not true, you will need to run the Configuration Tool on the controller machine and change that address, before continuing with this step.

    Copy the following files from the controller machine to the front-end machine, keeping the same path:
    – platform_path\private.key;
    – platform_path\server.hsconf.

  3. Run Configuration Tool

    For SQL Server:

    platform_path\ConfigurationTool.com /SetupInstall db_elevated_user db_elevated_pass
    

    For Oracle and MySQL:

    platform_path\ConfigurationTool.com /SetupInstall