First working version
This commit is contained in:
1
README.md
Normal file
1
README.md
Normal file
@@ -0,0 +1 @@
|
||||
## IServ Package to enable/disable the Windows Wireless Display Feature (previously MiraCast) through DISM
|
||||
9
control
Normal file
9
control
Normal 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
20
install.ins
Normal 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
|
||||
20
remove.ins
Normal file
20
remove.ins
Normal 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
|
||||
Reference in New Issue
Block a user