The code editors in the Install / Uninstall / Repair phases include two productivity tools:
Cmdlet autocomplete #
Built into every PowerShell code editor. No setup required.
- Cmdlet suggestion — type any prefix (e.g.
Start-ADT) and the editor proposes matching cmdlets from the PSADT v4 library. Accepting a suggestion inserts the cmdlet with a snippet for each required parameter. - Parameter suggestion — after a cmdlet name, type a space and
-to see all parameters with type, required flag, description, and valid values (if any). - Works across every phase editor and the Function Builder modal’s code preview.
Function builder modal #
Click the Function Builder icon in any phase editor toolbar. A modal opens showing a category sidebar and a function list.
Categories:
| Category | Typical cmdlets | Free edition |
|---|---|---|
| All | — | Always visible |
| Process | Start-ADTProcess, Start-ADTProcessAsUser, Get-ADTRunningProcesses, Stop-ADTProcesses, … | Enabled |
| MSI/MSP | Start-ADTMsiProcess, Uninstall-ADTApplication, Get-ADTMsiTableProperty, … | Enabled |
| Files | Copy-ADTFile, Remove-ADTFile, New-ADTFolder, … | Locked |
| Registry | Set-ADTRegistryKey, Remove-ADTRegistryKey, Get-ADTRegistryKey, … | Locked |
| UI/Dialogs | Show-ADTInstallationPrompt, Show-ADTWelcomePrompt, Show-ADTBalloonTip, … | Locked |
| Services | Start-ADTService, Stop-ADTService, Set-ADTServiceStartMode, … | Locked |
| App Mgmt | Get-ADTApplication, Uninstall-ADTApplication, … | Locked |
| Environment | Get-ADTEnvironmentVariable, Set-ADTEnvironmentVariable, … | Locked |
| Shortcuts | New-ADTShortcut, Remove-ADTShortcut, … | Locked |
| System | Get-ADTFreeDiskSpace, Get-ADTWindowTitle, … | Locked |
| Logging | Write-ADTLogEntry, Close-ADTSession, … | Locked |
Locked cmdlet cards still display (with the lock badge) so you can see what exists, but selecting them does nothing. Cmdlet autocomplete in the editor includes all cmdlets regardless of category, so typing them directly works even in the free edition — only the visual builder is gated.
For each function card:
- Name and short description
- A visual parameter editor (text inputs, dropdowns for validate sets, switches for
SwitchParameter) - A file-path picker for parameters named
FilePath,Path,Destination,StubExePath,TargetPath,IconLocation,WorkingDirectory— populated from your uploaded package files - Live code preview of the generated snippet
- Insert — drops the snippet at the cursor in the current code editor