Enablement Pack Setup Scripts

The Enablement Pack Install process is entirely driven by scripts. The following table outlines these scripts, their purpose and if Run as Administrator is required. 


ScriptDescriptionRun As AdministratorUse
1Setup_Enablement_Pack.ps1

Setup and configure a RED Metadata Repository for target database If RED repository exists then updates the repository with:

  1. Templates
  2. Scripts
  3. Extended Properties
  4. Datatype Mappings
  5. UI Configurations
YesNew and Existing installations
2install_WslPython_Modules.batInstalls or updates WslPython Modules and required Python libraries on this machine.YesNew and Existing installations
3import_python_templates.ps1Imports or updates the Python Templates to a RED Metadata Repository. Also includes any Script ImportsNo*Existing installations
4set_default_templates.ps1Applies the RED Connection defaults in a RED Metadata Repository for Python or Powershell templates.No*Existing installations


Note

Note that on some systems the execution Windows Powershell scripts is disabled by default, see the troubleshooting section for workarounds.

Each Powershell script in the table above provides some help at the command line, to view this information pass the -help parameter to the script. For example, > .\Setup_Enablement_Pack.ps1 -help  

Step-By-Step Guide

Setup and configure RED Metadata Repository

Run Powershell as Administrator:         

  • Script 1 > Powershell -ExecutionPolicy Bypass -File .\Setup_Enablement_Pack.ps1 

Important Upgrade Notes

If RED repository exists, it will prompt to upgrade the repository.

This enablement pack will overwrite any existing Source Enablement Pack UI Configs:

Connection UI ConfigLoad UI Config
Amazon S3Load From Amazon S3
Azure Data Lake Storage Gen2Load From Azure Data Lake Storage Gen2
Google CloudLoad From Google Cloud

To ensure existing Source Enablement Pack connections and associated Load Tables continue to browse and load, go into UI Configuration Maintenance in RED before installing this Enablement Pack and rename the affected UI Configurations.

While the updated Load Template will work with previous Source Enablement Pack's we recommend moving these previous versions of Load Tables to newly created Parser-based connections following this install. The earlier versions of the Source Enablement Pack will be deprecated following this release.  

Install or Update WhereScape Python Modules      

Run the Script as Administrator         

  • Script 2 > install_WslPython_Modules.bat    

This script performs two tasks:                 

  1. Installs the WhereScape WslPython modules to C:\Program Data\WhereScape\Modules\      
  2. Uses PIP to download or update required Python libraries - for offline install please see the required library list for Python in the Troubleshooting section.

Install or Update WhereScape Python Templates (For Existing Installations)

Run these scripts as Administrator          

  • Script 2 > install_WslPython_Modules.bat          
  • Script 3 > . .\import_python_templates.ps1          
  • Script 4 > . .\set_default_templates.ps1

Note

Skip this step for new installations.

Set Connection defaults for a Template Set (For Existing Installations)

  • Script 4 > . .\set_default_templates.ps1
  • Choose Python when prompted.