Executing Install and Uninstall Commands
- Updated2025-04-10
- 2 minute(s) read
Executing Install and Uninstall Commands
Follow these steps to add a custom execute:
- Select a package from the Packages pane.
- Navigate to Custom executes in the Properties pane and click the […] button to open the Manage Custom Executes dialog box.
- Select Post Install or Pre Uninstall from the drop-down menu.
- Click the New button to create a new custom execute.
- Configure the path of the command, arguments, and additional settings for the custom execute.
Note
- Post Install and Post Uninstall commands do not execute if the package installation or removal fails.
- A package does not uninstall if a Pre Uninstall command fails to execute.
- Refer to Instructions XML for File Packages for more information on Post All commands.
Related Information
- Packages Pane Properties
You can change package properties by selecting the package in the Packages pane. Use the Properties pane to edit settings efficiently.
- Manage Custom Execute Dialog
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.
- Adding Registry Keys
- Setting Environment Variables
- Running Non-Package MSI Distributions
- Post-Install License Activation
- Running Non-Package EXE Distributions
- Registering COM ActiveX Servers
- Adding a VLM Server
- Importing MAX Hardware Configuration
- Adding an Assembly to the Global Assembly Cache
Register .NET assemblies in the Global Assembly Cache (GAC) for your programs.
- Common Tasks
Refer to the following tasks for step-by-step guidance for creating or editing a new or existing package-based distribution.