Failed to install platform: stm32duino:STM32F1.
Error: 2 UNKNOWN: installing tool arduino:email@example.com: moving extracted archive to destination dir: rename c:\Users\XXXX\AppData\Local\Arduino15\tmp\package-898950573\gcc-arm-none-eabi-4.8.3-2014q1 c:\Users\kourd\AppData\Local\Arduino15\packages\arduino\tools\arm-none-eabi-gcc\4.8.3-2014q1: Access is denied.
This sort of error could be caused by your antivirus software. Try TEMPORARILY disabling your antivirus for a single compilation to see if the problem goes away, then turn the antivirus back on.
If the problem doesn't occur with the antivirus off you will need to adjust the settings of your antivirus to put the appropriate file, folder, or process on the "allow list" so it doesn't interfere with compilation.
Please be cautious about working without an antivirus. This is only about temporarily disabling it for a quick test. If you don't feel comfortable doing that, fine. You can try going straight to configuring the antivirus to not interfere with the Arduino software.