How to install / uninstall / activate PowerPack from command line (Silent installation)

Home Page Forums FAQs – SSIS Tips and Tricks How to install / uninstall / activate PowerPack from command line (Silent installation)

This topic contains 0 replies, has 1 voice, and was last updated by  ZappySys 6 years ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2154

    ZappySys
    Keymaster

    This post will cover how to automate installation / uninstall / license activation from command line or script (e.g. PowerShell / DOS / Python script). We will use SSIS PowerPack as an example but same applies to ODBC PowerPack too.

    Silent Installation from Command line

    MSI installer supports many command line options to perform automated install / uninstall.

    Install

    msiexec /i  "c:\downloads\ssispowerpack_64bit.msi" /q  /L*V "C:\downloads\install-pp-log.txt"

    Uninstall

    msiexec /x  "c:\downloads\ssispowerpack_64bit.msi" /q  /L*V! "C:\downloads\uninstall-pp-log.txt"

    Using PowerShell Script

    Install

    Write-Host "Installing PowerPack..." -ForegroundColor Cyan
    & "msiexec.exe" /i "c:\downloads\ssispowerpack_64bit.msi" /quiet /L*V "C:\test\install-pp-log.txt" | Out-Null

    Uninstall

    Write-Host "Un-Installing PowerPack..." -ForegroundColor Cyan 
    & "msiexec.exe" /x  "c:\downloads\ssispowerpack_64bit.msi" /q  /L*V! "C:\downloads\uninstall-pp-log.txt" | Out-Null

    Register / Unregister License from Command line

    Once Product is installed and if you like activate / de-activate license from command line then use below command.

    Syntax

    LicenseManager.exe 
      -p | --product {SSISPowerPack | ODBCPowerPack | ZappyShell}
      -r | --register [your_license_code] 
      -u | --unregister
      -i | --info
      -l | --logfile [file_path]
    

    -r = Register the product with purchased license key or trial extension key
    -u = Unregister all active license keys for specified product type (-p [product_code] )
    -i = Display all active license information for current system.

    Register license

    "C:\Program Files (x86)\ZappySys\SSIS PowerPack (64 bit)\LicenseManager.exe" -p SSISPowerPack --register "lgGAAO0QmCxxxxxxxxxxxxxxxxWSxczM="
    

    Register license (log result in file)

    "C:\Program Files (x86)\ZappySys\SSIS PowerPack (64 bit)\LicenseManager.exe" -p SSISPowerPack --register "lgGAAO0QmCxxxxxxxxxxxxxxxxWSxczM=" --logfile "c:\temp\powerpack_register_log.txt"
    

    If you like deactivate license from command line after installation then use below command.

    Unregister license (Log info on console)

    "C:\Program Files (x86)\ZappySys\SSIS PowerPack (64 bit)\LicenseManager.exe" -p SSISPowerPack --unregister
    

    Unregister license (Log info to file)

    "C:\Program Files (x86)\ZappySys\SSIS PowerPack (64 bit)\LicenseManager.exe" -p SSISPowerPack --unregister --logfile "c:\temp\powerpack_un_register_log.txt"
    

    Display license information (Log info to file)
    If you like list license information for current system then use below command.

    "C:\Program Files (x86)\ZappySys\SSIS PowerPack (64 bit)\LicenseManager.exe" -i -l "c:\temp\sysinfo_log.txt"
    
Viewing 1 post (of 1 total)

The forum ‘FAQs – SSIS Tips and Tricks’ is closed to new topics and replies.