First working version
commit
652e469cce
@ -0,0 +1 @@
|
|||||||
|
## IServ Package to enable/disable the Windows Wireless Display Feature (previously MiraCast) through DISM
|
||||||
@ -0,0 +1,9 @@
|
|||||||
|
[Product]
|
||||||
|
type: localboot
|
||||||
|
id: wireless-display-feature
|
||||||
|
name: Wireless Display Feature
|
||||||
|
description: Dieses Paket fügt Windows via DISM das Wireless Display Feature hinzu
|
||||||
|
version: 1.0
|
||||||
|
packageVersion: 1.0
|
||||||
|
setupScript: install.ins
|
||||||
|
uninstallScript: remove.ins
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
[Initial]
|
||||||
|
Message=Installiere das Wireless Display Feature...
|
||||||
|
DefVar $ExitCode$
|
||||||
|
|
||||||
|
[Actions]
|
||||||
|
ShowBitmap "%ScriptPath%\logo.png" "Wireless Display Feature"
|
||||||
|
DosInAnIcon_AddFeature
|
||||||
|
Sub_HandleExitCode
|
||||||
|
|
||||||
|
[DosInAnIcon_AddFeature]
|
||||||
|
@echo off
|
||||||
|
dism /Online /Add-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
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
[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
|
||||||
Loading…
Reference in New Issue