Skip to Main Content
Patch My PC Ideas & Feedback

A community where customers and the community can provide feedback to make a better product for everyone! For more details on how we prioritize requests, please see:

4 VOTE
Status SUBMITTED
Categories Patch My PC Cloud
Created by Melissa McDonald
Created on Jun 13, 2025

Add additional variables for pre/post scripts

Currently there is a variable for %ProductName% which pulls the App Name, %VendorName% and %Version%. Request would be to add a variable for 'Apps & Features' name to be able to pass that information into a pre/post script for a Custom App deployment

  • Attach files
  • Guest
    Aug 13, 2025

    Hello,

    in PSADT (version 4.x), there is this object:

    $adtSession = @{
    # App variables.
    AppVendor = ''
    AppName = ''
    AppVersion = ''
    AppArch = ''
    AppLang = 'EN'
    AppRevision = '01'
    AppSuccessExitCodes = @(0)
    AppRebootExitCodes = @(1641, 3010)
    AppScriptVersion = '1.0.0'
    AppScriptDate = '2000-12-31'
    AppScriptAuthor = '<author name>'

    # Install Titles (Only set here to override defaults set by the toolkit).
    InstallName = ''
    InstallTitle = ''

    # Script variables.
    DeployAppScriptFriendlyName = $MyInvocation.MyCommand.Name
    DeployAppScriptVersion = '4.0.6'
    DeployAppScriptParameters = $PSBoundParameters

    }


    I would suggest making these variables available.

    I have already submitted a feature request to PSADT to include AppEdition as well.
    https://github.com/PSAppDeployToolkit/PSAppDeployToolkit/discussions/1557
    This would make it possible to distinguish between Visio Standard and Visio Professional, for example.

    Many thanks.

  • +2