diff --git a/scripts/autoconfig-all.cmd b/scripts/autoconfig-all.cmd index 60c8b94..b2eaccc 100644 --- a/scripts/autoconfig-all.cmd +++ b/scripts/autoconfig-all.cmd @@ -43,7 +43,6 @@ rem copy some other stuff ... call copy-exefiles.cmd echo. -echo. echo ####################### echo ### MODIFICATIONS ### echo ####################### @@ -175,6 +174,10 @@ rem ... stupid os problem #2 call cleanup-startmenu.cmd echo. +rem ... stupid os problem #3 +call cleanup-programlist.cmd +echo. + echo rebooting ... shutdown -g -t 0 echo. diff --git a/scripts/cleanup-programlist.cmd b/scripts/cleanup-programlist.cmd new file mode 100644 index 0000000..7049bc8 --- /dev/null +++ b/scripts/cleanup-programlist.cmd @@ -0,0 +1,22 @@ +@echo off + +echo ####### %0 ####### + +echo. +echo trying to remove stale entries from program list ... +for %%K in ( + + "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" + "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" + +) do ( + + echo %%K + setacl -on %%K -ot reg -actn setowner -ownr "n:Administrators" 1>nul 2>nul + setacl -on %%K -ot reg -actn ace -ace "n:Administrators;p:full" 1>nul 2>nul + reg delete %%K /f + +) + +echo ####### %0 ####### + diff --git a/scripts/uninstall-edge.cmd b/scripts/uninstall-edge.cmd index 57e01cc..aa60301 100644 --- a/scripts/uninstall-edge.cmd +++ b/scripts/uninstall-edge.cmd @@ -26,22 +26,6 @@ echo block edge updates ... reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\EdgeUpdate" ^ /v "DoNotUpdateToEdgeWithChromium" /d 1 /t REG_DWORD /f -echo. -echo trying to remove stale entries from software list ... -for %%K in ( - - "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" - "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Microsoft Edge" - -) do ( - - echo %%K - SetACL.exe -on %%K -ot reg -actn setowner -ownr "n:Administrators" 1>nul 2>nul - SetACL.exe -on %%K -ot reg -actn ace -ace "n:Administrators;p:full" 1>nul 2>nul - reg delete %%K /f - -) - echo. echo ####### %0 #######