Skip to content

clintcarr/qlik-sense-automated-install

Repository files navigation

qlik-sense-automated-install

Installation of Qlik Sense via Powershell

Pre-reqs

  1. Unrestricted Execution Policy
  2. Internet Access

qs32sr4_silent.ps1

This file installs Qlik Sense 3.1.2 and newer using Shared Persistence. It is recommended that this file be used, older versions should be ignored and are kept for historical reasons.

install-qs.ps1

This script installs Qlik Sense 3.1.1 with the following:

  1. Qlik Sense 3.1.1 downloaded to local directory
  2. Qlik-CLI downloaded to local directory
  3. Qlik-CLI installed into PowerShell Modules
  4. Service Account added to local administrators group
  5. Qlik Sense 3.1.1 installed as a Central Node
  6. Qlik Sense licensed

Utilises Qlik-CLI (https://github.com/ahaydon/Qlik-Cli) to perform license step.

User Account

Note: If you set the config file to createuser = 1 a user will be created. Local only

Postgres

Note: If running non-interactively the installation may fail due to Postgres needing to write to a location that doesn't yet exist. In order to resolve this consider creating an environment variable (PGPASSWORD) with the password of the Super User. This is commented out in the code. (https://www.postgresql.org/docs/9.3/static/libpq-envars.html)

Usage

  1. Edit the config file C:\installation\qlik-sense-automated-install-master\install-qs-cfg.xml with your config
  2. Launch Powershell (As administrator)
  3. Execute: Set-ExecutionPolicy Unrestricted
  4. Execute the following code (line by line or enter into a local PS script and execute):

Qlik Sense 3.1.2 (With Shared Persistence)

Files

  1. qs_install_3.1.2.ps1
  2. sp_config.xml
  3. install-qs-cfg.xml

Note: The sp_config file contains information required for the Shared Persistence installation

Installation

Powershell 5

  New-Item -ItemType directory -Path C:\installation\ -force
  $source = 'https://github.com/clintcarr/qlik-sense-automated-install/archive/master.zip'
  $destination = 'c:\installation\master.zip'
  Invoke-WebRequest $source -OutFile $destination
  Expand-Archive c:\installation\master.zip -dest c:\installation\

Powershell 4 or less

  New-Item -ItemType directory -Path C:\installation\ -force
  $source = 'https://github.com/clintcarr/qlik-sense-automated-install/archive/master.zip'
  $destination = 'c:\installation\master.zip'
  Invoke-WebRequest $source -OutFile $destination
  $shell = New-Object -ComObject shell.application
  $zip = $shell.NameSpace("C:\installation\master.zip")
  foreach ($item in $zip.items()) {
   $shell.Namespace("c:\installation\").CopyHere($item)}
  1. using Powershell enter c:\installation\qlik-sense-automated-install-master\
  2. Execute: .\install-qs.ps1 path .\install-qs-cfg.xml

Usage Example

install-qs.ps1 c:\installation\install-qs-cfg.xml

install-qs-cfg.xml

XML Configuration file for installer

dl_install_qlikcli.ps1

This script downloads and installs Qlik-CLI.

Acknowledgements

Adam Haydon (https://github.com/ahaydon/Qlik-Cli)

Leigh Kennedy (Heartbeat of QPS code)

License

This software is made available "AS IS" without warranty of any kind. Qlik support agreement does not cover support for this script.

About

Installation of Qlik Sense via Powershell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages