Skip to main content

Updating PowerShell App Deploy Toolkit

The PowerShell App Deployment Toolkit provides a set of functions to perform common application deployment tasks and to interact with the user during a deployment. It simplifies the complex scripting challenges of deploying applications in the enterprise, provides a consistent deployment experience and improves installation success rates.

To update PowerShell App Deploy Toolkit, perform the following steps:

To update PowerShell App Deploy Toolkit:

  1. Download the desired PowerShell Toolkit version from https://psappdeploytoolkit.com and extract it. The extracted file opens.
  2. From the extracted file, open Deploy-Application.ps1 file, and modify it as mentioned below:
  3. Update variable declaration values by adding the below code:
    • [string]$appVendor = '\{appVendor\}'

    • [string]$appName = '\{appName\}'

    • [string]$appVersion = '\{appVersion\}'

    • [string]$appArch = '\{appArch\}'

    • [string]$appLang = '\{appLang\}'

    • [string]$appScriptDate = '\{appScriptDate\}'

      ![](/images/PowerShell App deployment toolkit_update variable.PNG)

  4. Update the installation values by adding the below code:
    • \{InstallPackage\}

    • \{InstallPatch\}

      ![](/images/PowerShell App deployment toolkit_update installation values.PNG)

  5. Update UnInstallation values by adding the below code
    • \{UnInstallPackage\}

      ![](/images/PowerShell App deployment toolkit_update uninstallation values.PNG)

  6. Update the repair values by adding the below code
    • \{RepairPackage\}

      ![](/images/PowerShell App deployment toolkit_update repair values.PNG)

      note

      Repair action type support is available from v3.8.1.

  7. After modifying, change the Template Directory for Wrap Options (Application Manager > Options >Wrap Options) to the folder containing modified Deploy-Application.ps1 file.

[string]$appVendor = '\{appVendor\}'

[string]$appName = '\{appName\}'

[string]$appVersion = '\{appVersion\}'

[string]$appArch = '\{appArch\}'

[string]$appLang = '\{appLang\}'

[string]$appScriptDate = '\{appScriptDate\}'

\{InstallPackage\}

\{InstallPatch\}

\{UnInstallPackage\}

\{RepairPackage\}