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.

Includes the following topics:

Update PowerShell App Deploy Toolkit v3
Update PowerShell App Deploy Toolkit v4

Update PowerShell App Deploy Toolkit v3

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

To update PowerShell App Deploy Toolkit v3:

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:
a. 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}'

b. Update the installation values by adding the below code:

{InstallPackage}

{InstallPatch}

c. Update UnInstallation values by adding the below code

{UnInstallPackage}

d. Update the repair values by adding the below code

{RepairPackage}

Note:Repair action type support is available from v3.8.1.

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

Update PowerShell App Deploy Toolkit v4

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

To update PowerShell App Deploy Toolkit v4:

1. Download the desired PowerShell Toolkit version from https://psappdeploytoolkit.com and extract it. The extracted file opens.
2. From the extracted file, open Invoke-AppDeployToolkit.ps1 file, and modify it as mentioned below:
a. Update variable declaration values by adding the below code:

AppVendor = '{appVendor}'

AppName = "{appName}"

AppVersion = '{appVersion}'

AppArch = '{appArch}'

AppLang = '{appLang}'

AppScriptDate = '{appScriptDate}'

AppIconFile = '{appIconFile}'

AppDescription = '{appDescription}'

AppUserDocumentation = '{appUserDocumentation}'

AppClassification = '{appClassification}'

AppFlexeraIdentifier = '{appFlexeraIdentifier}'

AppPackageCode = '{appPackageCode}'

AppProductCode = '{appProductCode}'

AppUpgradeCode = '{appUpgradeCode}'

AppTransforms = '{appTransforms}'

AppPatches = '{appPatches}'

b. Update the installation values by adding the below code:

{InstallPackage}

{InstallPatch}

c. Update UnInstallation values by adding the below code

{UnInstallPackage}

d. Update the repair values by adding the below code

{RepairPackage}

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