Manage Custom Execute Dialog
- Updated2025-04-10
- 2 minute(s) read
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:
- Pre Install: Runs before a single package installs.
- Post Install: Runs after a single package installs.
- Post All Install: Runs after all packages in an install transaction have completed.
- Pre Uninstall: Runs before a single package uninstalls.
- Post Uninstall: Runs after a single package uninstalls.
- 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.