[Initial]
Message=Entferne das Wireless Display Feature...
DefVar $ExitCode$

[Actions]
ShowBitmap "%ScriptPath%\logo.png" "Wireless Display Feature"
DosInAnIcon_RemoveFeature
Sub_HandleExitCode

[DosInAnIcon_RemoveFeature]
@echo off
dism /Online /Remove-Capability /Quiet /CapabilityName:App.WirelessDisplay.Connect~~~~0.0.1.0

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