Skip to content

Commit 59af039

Browse files
Document the changes
1 parent 4b1eac3 commit 59af039

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Diff for: docs/platform-specification.md

+18
Original file line numberDiff line numberDiff line change
@@ -1559,3 +1559,21 @@ software is in use:
15591559
- **Arduino CLI**: (since 0.12.0) runs the script for any installed platform when Arduino CLI is in "interactive" mode.
15601560
This behavior
15611561
[can be configured](https://arduino.github.io/arduino-cli/latest/commands/arduino-cli_core_install/#options)
1562+
1563+
## Pre-uninstall script
1564+
1565+
Before Boards Manager starts uninstalling a platform, it checks for the presence of a script named:
1566+
1567+
- `pre_uninstall.bat` - when running on Windows
1568+
- `pre_uninstall.sh` - when running on any non-Windows operating system
1569+
1570+
If present, the script is executed.
1571+
1572+
This script may be used to configure the user's system for the removal of drivers, stopping background programs and
1573+
execute any action that should be performed before the platform files are removed.
1574+
1575+
The circumstances under which the pre-uninstall script will run are different depending on which Arduino development
1576+
software is in use:
1577+
1578+
- **Arduino CLI**: runs the script for any installed platform when Arduino CLI is in "interactive" mode. This behavior
1579+
[can be configured](https://arduino.github.io/arduino-cli/latest/commands/arduino-cli_core_install/#options)

0 commit comments

Comments
 (0)