The code editors in the Install, Uninstall and Repair phases include three helpers.
Cmdlet autocomplete #
Built into every code editor; no setup is needed.
- Cmdlets. Type a prefix such as
Start-ADTto see matching PSADT v4 cmdlets. When you accept a suggestion, the cmdlet is inserted with placeholders for its required parameters. - Parameters. After a cmdlet name, type a space and
-to see all its parameters. Each one shows its type, whether it is required, a description and the allowed values. - All editions. Autocomplete covers all cmdlets in every edition.
Function Builder #
Click Insert Function in an editor’s toolbar. A window opens with categories on the left and the matching functions.
| Category | Examples | Free |
|---|---|---|
| Process | Start-ADTProcess, Stop-ADTProcesses | ✅ |
| MSI/MSP | Start-ADTMsiProcess, Get-ADTMsiTableProperty | ✅ |
| Files | Copy-ADTFile, Remove-ADTFile | Pro |
| Registry | Set-ADTRegistryKey, Remove-ADTRegistryKey | Pro |
| UI/Dialogs | Show-ADTInstallationPrompt, Show-ADTBalloonTip | Pro |
| Services | Start-ADTService, Stop-ADTService | Pro |
| App Mgmt | Get-ADTApplication, Uninstall-ADTApplication | Pro |
| Environment | Get-ADTEnvironmentVariable, Set-ADTEnvironmentVariable | Pro |
| Shortcuts | New-ADTShortcut | Pro |
| System | Get-ADTFreeDiskSpace | Pro |
| Logging | Write-ADTLogEntry | Pro |
Each function offers:
- a form for its parameters, with text fields, drop-downs and switches
- a file picker filled with your uploaded files, for path parameters
- a live preview of the code
- Insert, which puts the code at the cursor
Locked functions are shown with a lock badge so you can see what exists.
Detect Command #
Pick an installer from your uploaded files in the Main editor and click Detect Command. The silent install, uninstall or repair command is inserted for you.