[Initial]
Message=Entferne Windows Benutzerverzeichnisse...
DefVar $ExitCode$

[Actions]
ShowBitmap "%ScriptPath%\logo.png" "Windows Benutzerverzeichnisse entfernen"
DosInAnIcon_ClearUserDirectories
Sub_HandleExitCode

[DosInAnIcon_ClearUserDirectories]
@echo off
powershell -ExecutionPolicy Bypass -File %ScriptPath%\RemoveUserDirectories.ps1

[Sub_HandleExitCode]
Set $ExitCode$ = GetLastExitCode
comment "Script exit code: " + $ExitCode$
if not($ExitCode$ = "0")
    LogError "Fatal: Script quit with exit code " + $ExitCode$
    IsFatalError
endif
