How to install 3rd party applications silently using Leapwork

How to install 3rd party applications silently using Leapwork

Introduction
Product Installation and Upgrade testing is always a challenge in automation, Leapwork enables the user to perform such operations easily by altering the registry items and running the silent installation script.

Installation
The process below defines how to achieve that.

If WScript.Arguments.length = 0 Then
    Set objShell = CreateObject("Shell.Application")
    'Pass a bogus argument, say [ uac]
    objShell.ShellExecute "wscript.exe", Chr (34) & WScript.ScriptFullName & Chr(34) & " uac", "", "runas", 1
Else 'Add your code here
    WScript.Echo("Usage:elevate Application Arguments")
    Set WSHShell = WScript.CreateObject("WScript.Shell")
    strApp = "C:\Installers\Setup.exe /q"
    WSHShell.Exec(strApp)
End If

The installer will run silently as desired, the user can use this mechanism to install or upgrade their application under test.

For any clarification, please contact our Priority Support.