@ -139,15 +139,15 @@ function Show-GUI() {
$RemoveXbox = New-Button -Text " Remove Xbox " -Width $PanelElementWidth -Height $ButtonHeight -LocationX $PanelElementX -ElementBefore $RemoveOneDrive -MarginTop $DistanceBetweenElements -ForeColor $WarningYellow
$PictureBox1 = New-PictureBox -ImageLocation " $PSScriptRoot \src\assets\script-logo.png " -Width $PanelElementWidth -Height ( ( $BBHeight * 2 ) + $DistanceBetweenElements ) -LocationX $PanelElementX -ElementBefore $RemoveXbox -MarginTop $DistanceBetweenElements -SizeMode 'Zoom'
$Cl SystemApps = New-Label -Text " System Apps" -Width $PanelWidth -Height $CaptionLabelHeight -LocationX 0 -ElementBefore $PictureBox1
$EnableHEVCSupport = New-Button -Text " Get H.265 video codec " -Width $PanelElementWidth -Height $CheckBoxHeight -LocationX $PanelElementX -ElementBefore $Cl SystemApps
$InstallDolbyAudio = New-Button -Text " Install Dolby Audio" -Width $PanelElementWidth -Height $ButtonHeight -LocationX $PanelElementX -ElementBefore $EnableHEVCSupport -MarginTop $DistanceBetweenElements
$InstallOneDrive = New-Button -Text " Install OneDrive" -Width $PanelElementWidth -Height $ButtonHeight -LocationX $PanelElementX -ElementBefore $InstallDolbyAudio -MarginTop $DistanceBetweenElements
$InstallPaintPaint3D = New-Button -Text " Install Paint + Paint 3D" -Width $PanelElementWidth -Height $CheckBoxHeight -LocationX $PanelElementX -ElementBefore $InstallOneDrive
$InstallSoundRecorder = New-Button -Text " Install Sound Recorder" -Width $PanelElementWidth -Height $CheckBoxHeight -LocationX $PanelElementX -ElementBefore $InstallPaintPaint3D
$InstallTaskbarWidgets = New-Button -Text " Install Taskbar Widgets" -Width $PanelElementWidth -Height $CheckBoxHeight -LocationX $PanelElementX -ElementBefore $InstallSoundRecorder
$InstallUWPWMediaPlayer = New-Button -Text " Install W. Media Player (UWP)" -Width $PanelElementWidth -Height $ButtonHeight -LocationX $PanelElementX -ElementBefore $InstallTaskbarWidgets -MarginTop $DistanceBetweenElements
$InstallXbox = New-Button -Text " Install Xbox" -Width $PanelElementWidth -Height $ButtonHeight -LocationX $PanelElementX -ElementBefore $InstallUWPWMediaPlayer -MarginTop $DistanceBetweenElements
$Cl Install SystemApps = New-Label -Text " Install System Apps" -Width $PanelWidth -Height $CaptionLabelHeight -LocationX 0 -ElementBefore $PictureBox1
$EnableHEVCSupport = New-Button -Text " Get H.265 video codec " -Width $PanelElementWidth -Height $CheckBoxHeight -LocationX $PanelElementX -ElementBefore $Cl Install SystemApps
$InstallDolbyAudio = New-Button -Text " Dolby Audio" -Width $PanelElementWidth -Height $ButtonHeight -LocationX $PanelElementX -ElementBefore $EnableHEVCSupport -MarginTop $DistanceBetweenElements
$InstallOneDrive = New-Button -Text " OneDrive" -Width $PanelElementWidth -Height $ButtonHeight -LocationX $PanelElementX -ElementBefore $InstallDolbyAudio -MarginTop $DistanceBetweenElements
$InstallPaintPaint3D = New-Button -Text " Paint + Paint 3D" -Width $PanelElementWidth -Height $CheckBoxHeight -LocationX $PanelElementX -ElementBefore $InstallOneDrive
$InstallSoundRecorder = New-Button -Text " Sound Recorder" -Width $PanelElementWidth -Height $CheckBoxHeight -LocationX $PanelElementX -ElementBefore $InstallPaintPaint3D
$InstallTaskbarWidgets = New-Button -Text " Taskbar Widgets" -Width $PanelElementWidth -Height $CheckBoxHeight -LocationX $PanelElementX -ElementBefore $InstallSoundRecorder
$InstallUWPWMediaPlayer = New-Button -Text " Windows Media Player (UWP)" -Width $PanelElementWidth -Height $ButtonHeight -LocationX $PanelElementX -ElementBefore $InstallTaskbarWidgets -MarginTop $DistanceBetweenElements
$InstallXbox = New-Button -Text " Xbox" -Width $PanelElementWidth -Height $ButtonHeight -LocationX $PanelElementX -ElementBefore $InstallUWPWMediaPlayer -MarginTop $DistanceBetweenElements
$ClOtherTools = New-Label -Text " Other Tools " -Width $PanelElementWidth -Height $CaptionLabelHeight -LocationX $PanelElementX -LocationY 0 -ElementBefore $InstallXbox
$ReinstallBloatApps = New-Button -Text " Reinstall Pre-Installed Apps " -Width $PanelElementWidth -Height $ButtonHeight -LocationX $PanelElementX -ElementBefore $ClOtherTools -MarginTop $DistanceBetweenElements
@ -171,8 +171,9 @@ function Show-GUI() {
$ClOptionalFeatures = New-Label -Text " Optional Features " -Width $PanelWidth -Height $CaptionLabelHeight -LocationX 0 -ElementBefore $CbXboxGameBarDVR
$CbPrintToPDFServices = New-CheckBox -Text " Printing-PrintToPDFServices-Features " -Width $PanelElementWidth -Height $CheckBoxHeight -LocationX $PanelElementX -ElementBefore $ClOptionalFeatures
$CbPrintingXPSServices = New-CheckBox -Text " Printing-XPSServices-Features " -Width $PanelElementWidth -Height $CheckBoxHeight -LocationX $PanelElementX -ElementBefore $CbPrintToPDFServices
$CbWindowsMediaPlayer = New-CheckBox -Text " Windows Media Player " -Width $PanelElementWidth -Height $CheckBoxHeight -LocationX $PanelElementX -ElementBefore $CbPrintingXPSServices
$ClMiscFeatures = New-Label -Text " Miscellaneous Features " -Width $PanelWidth -Height $CaptionLabelHeight -LocationX 0 -ElementBefore $Cb PrintingXPSServices
$ClMiscFeatures = New-Label -Text " Miscellaneous Features " -Width $PanelWidth -Height $CaptionLabelHeight -LocationX 0 -ElementBefore $Cb WindowsMediaPlayer
$CbEncryptedDNS = New-CheckBox -Text " Enable Encrypted DNS " -Width $PanelElementWidth -Height $CheckBoxHeight -LocationX $PanelElementX -ElementBefore $ClMiscFeatures
$CbGodMode = New-CheckBox -Text " Enable God Mode " -Width $PanelElementWidth -Height $CheckBoxHeight -LocationX $PanelElementX -ElementBefore $CbEncryptedDNS
$CbTakeOwnership = New-CheckBox -Text " Enable Take Ownership menu " -Width $PanelElementWidth -Height $CheckBoxHeight -LocationX $PanelElementX -ElementBefore $CbGodMode
@ -385,10 +386,10 @@ function Show-GUI() {
$TabSoftwareInstall . Controls . AddRange ( @ ( $TlSoftwareInstall , $ClSoftwareInstall , $T2Panel1 , $T2Panel2 , $T2Panel3 , $T2Panel4 ) )
# Add Elements to each Tab Panel
$T1Panel1 . Controls . AddRange ( @ ( $ClDebloatTools , $ApplyTweaks , $UndoTweaks , $RemoveOneDrive , $RemoveXbox , $PictureBox1 ) )
$T1Panel1 . Controls . AddRange ( @ ( $Cl SystemApps, $EnableHEVCSupport , $InstallDolbyAudio , $InstallOneDrive , $InstallPaintPaint3D , $InstallTaskbarWidgets , $InstallUWPWMediaPlayer , $InstallSoundRecorder , $InstallXbox ) )
$T1Panel1 . Controls . AddRange ( @ ( $Cl Install SystemApps, $EnableHEVCSupport , $InstallDolbyAudio , $InstallOneDrive , $InstallPaintPaint3D , $InstallTaskbarWidgets , $InstallUWPWMediaPlayer , $InstallSoundRecorder , $InstallXbox ) )
$T1Panel1 . Controls . AddRange ( @ ( $ClOtherTools , $ReinstallBloatApps , $RepairWindows , $ShowDebloatInfo ) )
$T1Panel2 . Controls . AddRange ( @ ( $ClCustomizeFeatures , $CbDarkTheme , $CbActivityHistory , $CbBackgroundsApps , $CbClipboardHistory , $CbCortana , $CbOldVolumeControl , $CbPhotoViewer , $CbSearchAppForUnknownExt , $CbTelemetry , $CbWSearchService , $CbXboxGameBarDVR ) )
$T1Panel2 . Controls . AddRange ( @ ( $ClOptionalFeatures , $CbPrintToPDFServices , $CbPrintingXPSServices ))
$T1Panel2 . Controls . AddRange ( @ ( $ClOptionalFeatures , $CbPrintToPDFServices , $CbPrintingXPSServices , $CbWindowsMediaPlayer ))
$T1Panel2 . Controls . AddRange ( @ ( $ClMiscFeatures , $CbEncryptedDNS , $CbGodMode , $CbTakeOwnership , $CbFastShutdownPCShortcut ) )
$T2Panel1 . Controls . AddRange ( @ ( $UpgradeAll ) )
@ -644,6 +645,16 @@ function Show-GUI() {
}
} )
$CbWindowsMediaPlayer . Add_Click ( {
If ( $CbWindowsMediaPlayer . CheckState -eq " Checked " ) {
Enable-WindowsMediaPlayer
$CbWindowsMediaPlayer . Text = " [ON] Windows Media Player * "
} Else {
Disable-WindowsMediaPlayer
$CbWindowsMediaPlayer . Text = " [OFF] Windows Media Player "
}
} )
$CbEncryptedDNS . Add_Click ( {
If ( $CbEncryptedDNS . CheckState -eq " Checked " ) {
Enable-EncryptedDNS