From 09bd6f5e4bf6f55c8c972ee5152d39681cc7696b Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sun, 28 Feb 2021 22:17:02 +0100 Subject: [PATCH] . --- scripts/autoconfig-all.cmd | 7 +++++-- scripts/install-teams.cmd | 3 +++ scripts/install-totalcommander.cmd | 2 +- scripts/install-windowsterminal.ps1 | 2 +- scripts/install-xnview.cmd | 3 +++ scripts/unpack-vnc.cmd | 2 +- 6 files changed, 14 insertions(+), 5 deletions(-) diff --git a/scripts/autoconfig-all.cmd b/scripts/autoconfig-all.cmd index f9d2c40..e85d507 100644 --- a/scripts/autoconfig-all.cmd +++ b/scripts/autoconfig-all.cmd @@ -167,6 +167,9 @@ echo. call install-xnview.cmd echo. +rem add full access rights to all users on public icons! +icacls %PUBLIC%\Desktop\*.lnk /grant Users:F + echo ##################### echo ### DISABLE tasks ### echo ##################### @@ -205,8 +208,8 @@ rem echo ENABLE firewall ... rem netsh advfirewall set allprofiles state on rem echo. -echo rebooting ... -shutdown -g -t 0 +rem echo rebooting ... +rem shutdown -g -t 0 echo. date /t diff --git a/scripts/install-teams.cmd b/scripts/install-teams.cmd index f311d79..b9b561b 100644 --- a/scripts/install-teams.cmd +++ b/scripts/install-teams.cmd @@ -13,4 +13,7 @@ echo installing Microsoft Teams ... %EXE% -s timeout /T 10 +echo renaming and moving Teams desktop link ... +move /Y "%USERPROFILE%\Desktop\Microsoft Teams.lnk" "%PUBLIC%\Desktop\Teams.lnk" + echo ####### %0 ####### diff --git a/scripts/install-totalcommander.cmd b/scripts/install-totalcommander.cmd index 6ffef6d..a6b8ea0 100644 --- a/scripts/install-totalcommander.cmd +++ b/scripts/install-totalcommander.cmd @@ -15,7 +15,7 @@ echo installing TotalCommander ... rem this runs in the background - we have to wait 10 seconds for it to complete ... timeout /T 10 -echo renaming TotalCommander desktop link ... +echo renaming and moving TotalCommander desktop link ... move /Y "%USERPROFILE%\Desktop\Total Commander*" "%PUBLIC%\Desktop\Total Commander.lnk" echo ####### %0 ####### diff --git a/scripts/install-windowsterminal.ps1 b/scripts/install-windowsterminal.ps1 index 65bda0a..40769f3 100644 --- a/scripts/install-windowsterminal.ps1 +++ b/scripts/install-windowsterminal.ps1 @@ -9,6 +9,6 @@ if (! (Test-Path $MSIBUNDLE)) { write-host '#######',(split-path $PSCommandPath -Leaf),'#######' $ErrorActionPreference = "SilentlyContinue" -Add-AppXPackage -path "$MSIBUNDLE" +Add-AppXPackage -allusers -path "$MSIBUNDLE" write-host '#######',(split-path $PSCommandPath -Leaf),'#######' diff --git a/scripts/install-xnview.cmd b/scripts/install-xnview.cmd index 8e51696..b472379 100644 --- a/scripts/install-xnview.cmd +++ b/scripts/install-xnview.cmd @@ -11,4 +11,7 @@ taskkill /F /IM xnviewmp.exe 2>nul echo installing XnView ... %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS +echo renaming and moving XnView desktop link ... +move /Y "%USERPROFILE%\Desktop\XnViewMP.lnk" "%PUBLIC%\Desktop" + echo ####### %0 ####### diff --git a/scripts/unpack-vnc.cmd b/scripts/unpack-vnc.cmd index 6d337ec..99a7c7a 100644 --- a/scripts/unpack-vnc.cmd +++ b/scripts/unpack-vnc.cmd @@ -25,6 +25,6 @@ del /S /Q /A %T%\%MSI% 1>nul 2>nul rd /S /Q %T%\PFiles rem create symbolic link ... -mklink %TOOLS%\tvnviewer.exe %TOOLS%\vnc.exe 2>nul +mklink %TOOLS%\vnc.exe %TOOLS%\tvnviewer.exe 2>nul echo ####### %0 #######