Table Of Contents

Manage Custom Execute Dialog

Last Modified: March 3, 2020

Click the dialog button next to Custom Executes in the Package Properties Pane to configure custom commands for a package to execute when installing and uninstalling a package.

Select from the following options in the drop-down to specify when to use a custom execute:

  1. Pre Install: Runs before a single package installs.
  2. Post Install: Runs after a single package installs.
  3. Post All Install: Runs after all packages in an install transaction have completed.
  4. Pre Uninstall: Runs before a single package uninstalls.
  5. Post Uninstall: Runs after a single package uninstalls.
  6. Post All Uninstall: Runs after all packages in an uninstallation transaction have completed.

Use the following fields under Edit Custom Execute to further configure custom executes:

Root Root directory for the executable or script the command executes.
Relative Executable Path Relative directory in the root directory for the executable or script the command executes.
Arguments Arguments to pass to the command.
Wait to complete Instructs NI Package Manager to wait for the command to complete before continuing install or uninstall operations.
Ignore errors Instructs NI Package Manager to ignore errors returned from the command.
Show console windows Displays a console window to show any logged messages generated by the command.

Considerations When Using Custom Execute Commands

  • Post Install and Post Uninstall commands do not run if the package fails to install.
  • A package does not uninstall if a Pre Uninstall command fails when the Ignore errors option is unchecked in the dialog.
  • See Instructions XML for File Packages in the NI Package Manager manual for more information on Post All commands.

Recently Viewed Topics