From 5e7686953f8e28734ef7e631063b4b5ac64a2700 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" <michael@schmidt2.de> Date: Sun, 28 Feb 2021 23:52:39 +0100 Subject: [PATCH] . --- scripts/install-receiver.cmd | 1 - scripts/install-windowsterminal.ps1 | 5 ++++- tools/optional/install-spotify.cmd | 17 +++++++++++++++++ 3 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 tools/optional/install-spotify.cmd diff --git a/scripts/install-receiver.cmd b/scripts/install-receiver.cmd index 9f44300..82bc1a4 100644 --- a/scripts/install-receiver.cmd +++ b/scripts/install-receiver.cmd @@ -20,4 +20,3 @@ reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\S /v "Redirector" /d 030000005e06c842d402d701 /t REG_BINARY /f echo ####### %0 ####### - diff --git a/scripts/install-windowsterminal.ps1 b/scripts/install-windowsterminal.ps1 index 65bda0a..d0312db 100644 --- a/scripts/install-windowsterminal.ps1 +++ b/scripts/install-windowsterminal.ps1 @@ -1,6 +1,7 @@ # Install Windows Terminal ... -$MSIBUNDLE="..\software\windowsterminal-setup.msixbundle" +cd ..\software +$MSIBUNDLE="windowsterminal-setup.msixbundle" if (! (Test-Path $MSIBUNDLE)) { write-host "ERROR: $MSIBUNDLE not found!" exit 1 @@ -10,5 +11,7 @@ write-host '#######',(split-path $PSCommandPath -Leaf),'#######' $ErrorActionPreference = "SilentlyContinue" Add-AppXPackage -path "$MSIBUNDLE" +DISM.EXE /Online /Add-ProvisionedAppxPackage /PackagePath:$MSIBUNDLE /SkipLicense +cd ..\scripts write-host '#######',(split-path $PSCommandPath -Leaf),'#######' diff --git a/tools/optional/install-spotify.cmd b/tools/optional/install-spotify.cmd new file mode 100644 index 0000000..c5adf30 --- /dev/null +++ b/tools/optional/install-spotify.cmd @@ -0,0 +1,17 @@ +@echo off + +set EXE=..\..\software\spotify-setup.exe + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing Spotify for user %USERNAME% ... +%EXE% + +echo ####### %0 ####### +timeout /T 3 +