commit 652e469ccee369a55655c8d742fd9709ad921400 Author: jonas Date: Fri Feb 17 23:11:22 2023 +0100 First working version diff --git a/README.md b/README.md new file mode 100644 index 0000000..17cb660 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +## IServ Package to enable/disable the Windows Wireless Display Feature (previously MiraCast) through DISM diff --git a/control b/control new file mode 100644 index 0000000..6197580 --- /dev/null +++ b/control @@ -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 \ No newline at end of file diff --git a/install.ins b/install.ins new file mode 100644 index 0000000..38cb562 --- /dev/null +++ b/install.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 diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..f0f95cd Binary files /dev/null and b/logo.png differ diff --git a/remove.ins b/remove.ins new file mode 100644 index 0000000..9395412 --- /dev/null +++ b/remove.ins @@ -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