First working version

This commit is contained in:
2023-02-17 23:11:22 +01:00
commit 652e469cce
5 changed files with 50 additions and 0 deletions

1
README.md Normal file
View File

@@ -0,0 +1 @@
## IServ Package to enable/disable the Windows Wireless Display Feature (previously MiraCast) through DISM

9
control Normal file
View File

@@ -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

20
install.ins Normal file
View File

@@ -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

BIN
logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

20
remove.ins Normal file
View File

@@ -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