diff --git a/optional/config/office2019-standard.xml b/optional/config/office2019-standard.xml new file mode 100644 index 0000000..1128891 --- /dev/null +++ b/optional/config/office2019-standard.xml @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/optional/install-ausweisapp.cmd b/optional/install-ausweisapp.cmd index ac3b0b7..214ab86 100644 --- a/optional/install-ausweisapp.cmd +++ b/optional/install-ausweisapp.cmd @@ -1,31 +1,31 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set OPT=..\optional -set SOFTWARE=..\software -set MSI=ausweisapp-setup.msi - -if NOT EXIST %SOFTWARE%\%MSI% ( - echo ERROR: %SOFTWARE%\%MSI% not found! - exit /b -) - -echo ####### %0 ####### - -echo installing Ausweisapp ... -cd %SOFTWARE% -@echo on -msiexec /i %MSI% /quiet -@echo off -cd %OPT% - -echo removing Ausweisapp Desktop icon ... -del /F /Q %PUBLIC%\Desktop\AusweisApp.lnk 2>nul - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set OPT=..\optional +set SOFTWARE=..\software +set MSI=ausweisapp-setup.msi + +if NOT EXIST %SOFTWARE%\%MSI% ( + echo ERROR: %SOFTWARE%\%MSI% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing Ausweisapp ... +cd %SOFTWARE% +@echo on +msiexec /i %MSI% /quiet +@echo off +cd %OPT% + +echo removing Ausweisapp Desktop icon ... +del /F /Q %PUBLIC%\Desktop\AusweisApp.lnk 2>nul + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo ####### %0 ####### +pause + diff --git a/optional/install-chrome.cmd b/optional/install-chrome.cmd index 11a89d6..5b46efe 100644 --- a/optional/install-chrome.cmd +++ b/optional/install-chrome.cmd @@ -1,50 +1,50 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set OPT=..\optional -set SOFTWARE=..\software -set MSI=chrome-setup.msi -set CONFIG=config\chrome.reg -set SCRIPTS=..\scripts - -if NOT EXIST %SOFTWARE%\%MSI% ( - echo ERROR: %SOFTWARE%\%MSI% not found! - exit /b -) - -echo ####### %0 ####### - -cd %SOFTWARE% -msiexec /uninstall %MSI% /passive -@echo on -msiexec /i %MSI% /passive -@echo off -cd %OPT% - -echo importing registry settings ... -reg import %CONFIG% - -rem unpin chrome icon from taskbar ... -echo. -call %SCRIPTS%\unpin-taskbar-icons.cmd -echo. - -echo disabling update tasks ... -powershell -Command "get-scheduledtask | where TaskName -like 'Google*' | Disable-ScheduledTask" - -echo renaming chrome desktop shortcut ... -move /Y %PUBLIC%\Desktop\"Google Chrome.lnk" %PUBLIC%\Desktop\Chrome.lnk 2>nul - -echo sleeping 5 seconds ... -ping 127.0.0.1 -n 5 > NUL 2>&1 - -echo cleanup ... -del /F /Q "%USERPROFILE%\Desktop\Google Chrome.lnk" 2>nul - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set OPT=..\optional +set SOFTWARE=..\software +set MSI=chrome-setup.msi +set CONFIG=config\chrome.reg +set SCRIPTS=..\scripts + +if NOT EXIST %SOFTWARE%\%MSI% ( + echo ERROR: %SOFTWARE%\%MSI% not found! + exit /b +) + +echo ####### %0 ####### + +cd %SOFTWARE% +msiexec /uninstall %MSI% /passive +@echo on +msiexec /i %MSI% /passive +@echo off +cd %OPT% + +echo importing registry settings ... +reg import %CONFIG% + +rem unpin chrome icon from taskbar ... +echo. +call %SCRIPTS%\unpin-taskbar-icons.cmd +echo. + +echo disabling update tasks ... +powershell -Command "get-scheduledtask | where TaskName -like 'Google*' | Disable-ScheduledTask" + +echo renaming chrome desktop shortcut ... +move /Y %PUBLIC%\Desktop\"Google Chrome.lnk" %PUBLIC%\Desktop\Chrome.lnk 2>nul + +echo sleeping 5 seconds ... +ping 127.0.0.1 -n 5 > NUL 2>&1 + +echo cleanup ... +del /F /Q "%USERPROFILE%\Desktop\Google Chrome.lnk" 2>nul + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo ####### %0 ####### +pause + diff --git a/optional/install-citrixworkspace.cmd b/optional/install-citrixworkspace.cmd index 068218b..dbf388f 100644 --- a/optional/install-citrixworkspace.cmd +++ b/optional/install-citrixworkspace.cmd @@ -1,58 +1,58 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set EXE=..\software\citrixworkspace-setup.exe -set EXE2=..\software\nsepa_setup.exe -set MSI=ICAWebWrapper.msi -set CITRIXROOT="%ProgramFiles(x86)%\Citrix" - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - echo GOTO: https://www.citrix.com/de-de/downloads/workspace-app/workspace-app-for-windows-long-term-service-release - echo and save the file as "citrixworkspace-setup.exe" in folder "software"! - echo. - pause - exit /b -) - -if NOT EXIST %EXE2% ( - echo ERROR: %EXE2% not found! - echo get the file and save it in folder "software"! - echo. - pause - exit /b -) - -echo ####### %0 ####### - -echo installing Citrix Workspace LTS ... -start /wait %EXE% /silent /noreboot /AutoUpdateCheck=disabled - -echo disabling autostart for Citrix Workspace ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run32" ^ - /v "ConnectionCenter" /d 0300000065d2d743d402d701 /t REG_BINARY /f - -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run32" ^ - /v "Redirector" /d 030000005e06c842d402d701 /t REG_BINARY /f - -echo installing Citrix gateway endpoint Analysis Plug-in ... -start /wait %EXE2% - -echo installing Citrix ICA web wrapper ... -cd %CITRIXROOT%\"Citrix Workspace*" - -if NOT EXIST %MSI% ( - echo ERROR: %MSI% not found! - echo ####### %0 ####### - pause - exit /b -) - -@echo on -msiexec /i %MSI% /quiet -@echo off - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set EXE=..\software\citrixworkspace-setup.exe +set EXE2=..\software\nsepa_setup.exe +set MSI=ICAWebWrapper.msi +set CITRIXROOT="%ProgramFiles(x86)%\Citrix" + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + echo GOTO: https://www.citrix.com/de-de/downloads/workspace-app/workspace-app-for-windows-long-term-service-release + echo and save the file as "citrixworkspace-setup.exe" in folder "software"! + echo. + pause + exit /b +) + +if NOT EXIST %EXE2% ( + echo ERROR: %EXE2% not found! + echo get the file and save it in folder "software"! + echo. + pause + exit /b +) + +echo ####### %0 ####### + +echo installing Citrix Workspace LTS ... +start /wait %EXE% /silent /noreboot /AutoUpdateCheck=disabled + +echo disabling autostart for Citrix Workspace ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run32" ^ + /v "ConnectionCenter" /d 0300000065d2d743d402d701 /t REG_BINARY /f + +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run32" ^ + /v "Redirector" /d 030000005e06c842d402d701 /t REG_BINARY /f + +echo installing Citrix gateway endpoint Analysis Plug-in ... +start /wait %EXE2% + +echo installing Citrix ICA web wrapper ... +cd %CITRIXROOT%\"Citrix Workspace*" + +if NOT EXIST %MSI% ( + echo ERROR: %MSI% not found! + echo ####### %0 ####### + pause + exit /b +) + +@echo on +msiexec /i %MSI% /quiet +@echo off + +echo ####### %0 ####### +pause + diff --git a/optional/install-dbbrowser.cmd b/optional/install-dbbrowser.cmd index 3c9997e..dd70188 100644 --- a/optional/install-dbbrowser.cmd +++ b/optional/install-dbbrowser.cmd @@ -1,29 +1,29 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set OPT=..\optional -set SOFTWARE=..\software -set MSI=dbbrowser-setup.msi -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %SOFTWARE%\%MSI% ( - echo ERROR: %SOFTWARE%\%MSI% not found! - exit /b -) - -echo ####### %0 ####### - -echo installing DB-Browser ... -cd %SOFTWARE% -@echo on -msiexec /i %MSI% /passive -@echo off -cd %OPT% - -echo copying startmenu shortcut ... -copy /Y startmenu\SQLite-DBB.lnk %STARTMENU% - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set OPT=..\optional +set SOFTWARE=..\software +set MSI=dbbrowser-setup.msi +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %SOFTWARE%\%MSI% ( + echo ERROR: %SOFTWARE%\%MSI% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing DB-Browser ... +cd %SOFTWARE% +@echo on +msiexec /i %MSI% /passive +@echo off +cd %OPT% + +echo copying startmenu shortcut ... +copy /Y startmenu\SQLite-DBB.lnk %STARTMENU% + +echo ####### %0 ####### +pause + diff --git a/optional/install-drawio.cmd b/optional/install-drawio.cmd index 129d272..c898588 100644 --- a/optional/install-drawio.cmd +++ b/optional/install-drawio.cmd @@ -1,34 +1,34 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set SOFTWARE=..\software -set MSI=drawio-setup.msi -set STARTMENU=%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs -set STARTMENU_USER=%APPDATA%\Microsoft\Windows\Start Menu\Programs - -if NOT EXIST %SOFTWARE%\%MSI% ( - echo ERROR: %SOFTWARE%\%MSI% not found! - exit /b -) - -echo ####### %0 ####### - -echo installing Draw-IO ... -cd %SOFTWARE% -@echo on -msiexec /i %MSI% /passive -@echo off -cd %OPT% - -echo moving Draw-IO startmenu shortcut ... -move /Y "%STARTMENU_USER%\draw.io.lnk" "%STARTMENU%" -icacls "%STARTMENU%\draw.io.lnk" /grant Users:R - -echo moving Draw-IO desktop link to public desktop ... -move /Y "%USERPROFILE%\Desktop\draw.io.lnk" "%PUBLIC%\Desktop" -icacls "%PUBLIC%\Desktop\draw.io.lnk" /grant Users:R - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set SOFTWARE=..\software +set MSI=drawio-setup.msi +set STARTMENU=%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs +set STARTMENU_USER=%APPDATA%\Microsoft\Windows\Start Menu\Programs + +if NOT EXIST %SOFTWARE%\%MSI% ( + echo ERROR: %SOFTWARE%\%MSI% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing Draw-IO ... +cd %SOFTWARE% +@echo on +msiexec /i %MSI% /passive +@echo off +cd %OPT% + +echo moving Draw-IO startmenu shortcut ... +move /Y "%STARTMENU_USER%\draw.io.lnk" "%STARTMENU%" +icacls "%STARTMENU%\draw.io.lnk" /grant Users:R + +echo moving Draw-IO desktop link to public desktop ... +move /Y "%USERPROFILE%\Desktop\draw.io.lnk" "%PUBLIC%\Desktop" +icacls "%PUBLIC%\Desktop\draw.io.lnk" /grant Users:R + +echo ####### %0 ####### +pause + diff --git a/optional/install-emclient.cmd b/optional/install-emclient.cmd index 8f42af6..caac458 100644 --- a/optional/install-emclient.cmd +++ b/optional/install-emclient.cmd @@ -1,57 +1,57 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set OPT=..\optional -set SOFTWARE=..\software -set MSI=emclient-setup.msi -set EMSERVERIP=104.22.21.185,172.67.15.154,104.22.20.185 - -if NOT EXIST %SOFTWARE%\%MSI% ( - echo ERROR: %SOFTWARE%\%MSI% not found! - exit /b -) - -echo ####### %0 ####### - -echo installing em-Client ... -cd %SOFTWARE% -@echo on -msiexec /i %MSI% /quiet -@echo off -cd %OPT% - -echo removing autostart for em-Client ... -reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" ^ - /v "eM Client" /f - -taskkill /F /IM SystemSettings.exe 2>nul - -echo copying link to desktop ... -copy /Y "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\eM Client.lnk" ^ - %PUBLIC%\Desktop - -echo refreshing desktop ... -ie4uinit.exe -show - -echo disabling automatic updates via W10 firewall ... -rem delete old rule ... -netsh advfirewall firewall delete rule name="block_emclient_updates" 2>nul - -rem create new rule ... -netsh advfirewall firewall add rule name="block_emclient_updates" ^ - dir=out action=block protocol=tcp localip=any remoteip=%EMSERVERIP% ^ - remoteport=80,443 program="%ProgramFiles(x86)%\eM Client\MailClient.exe" 1>nul 2>nul - -rem show new rule ... -netsh advfirewall firewall show rule name="block_emclient_updates" - -echo ####### %0 ####### - -rem set filetypes ... -if EXIST ..\scripts\set-filetypes.cmd ( - call ..\scripts\set-filetypes.cmd -) - -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set OPT=..\optional +set SOFTWARE=..\software +set MSI=emclient-setup.msi +set EMSERVERIP=104.22.21.185,172.67.15.154,104.22.20.185 + +if NOT EXIST %SOFTWARE%\%MSI% ( + echo ERROR: %SOFTWARE%\%MSI% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing em-Client ... +cd %SOFTWARE% +@echo on +msiexec /i %MSI% /quiet +@echo off +cd %OPT% + +echo removing autostart for em-Client ... +reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" ^ + /v "eM Client" /f + +taskkill /F /IM SystemSettings.exe 2>nul + +echo copying link to desktop ... +copy /Y "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\eM Client.lnk" ^ + %PUBLIC%\Desktop + +echo refreshing desktop ... +ie4uinit.exe -show + +echo disabling automatic updates via W10 firewall ... +rem delete old rule ... +netsh advfirewall firewall delete rule name="block_emclient_updates" 2>nul + +rem create new rule ... +netsh advfirewall firewall add rule name="block_emclient_updates" ^ + dir=out action=block protocol=tcp localip=any remoteip=%EMSERVERIP% ^ + remoteport=80,443 program="%ProgramFiles(x86)%\eM Client\MailClient.exe" 1>nul 2>nul + +rem show new rule ... +netsh advfirewall firewall show rule name="block_emclient_updates" + +echo ####### %0 ####### + +rem set filetypes ... +if EXIST ..\scripts\set-filetypes.cmd ( + call ..\scripts\set-filetypes.cmd +) + +pause + diff --git a/optional/install-hakchi2.cmd b/optional/install-hakchi2.cmd index 4b9c284..a3f3ff0 100644 --- a/optional/install-hakchi2.cmd +++ b/optional/install-hakchi2.cmd @@ -1,30 +1,30 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set CONFIG=config\hakchi2_config.ini -set ZIP=..\software\hakchi2.zip -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %ZIP% ( - echo ERROR: %ZIP% not found! - exit /b -) - -echo ####### %0 ####### - -echo killing hakchi2 processes... -taskkill /F /IM hakchi.exe 2>nul - -echo unpacking Hakchi2 ... -7z x -y -aoa -o"%ProgramFiles(x86)%" %ZIP% - -echo copying config ... -mkdir "%ProgramFiles(x86)%\hakchi2\config" 2>nul -copy /Y %CONFIG% "%ProgramFiles(x86)%\hakchi2\config\config.ini" - -echo copy startmenu link ... -copy /Y startmenu\HakChi2.lnk %STARTMENU% - -echo ####### %0 ####### -pause +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set CONFIG=config\hakchi2_config.ini +set ZIP=..\software\hakchi2.zip +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %ZIP% ( + echo ERROR: %ZIP% not found! + exit /b +) + +echo ####### %0 ####### + +echo killing hakchi2 processes... +taskkill /F /IM hakchi.exe 2>nul + +echo unpacking Hakchi2 ... +7z x -y -aoa -o"%ProgramFiles(x86)%" %ZIP% + +echo copying config ... +mkdir "%ProgramFiles(x86)%\hakchi2\config" 2>nul +copy /Y %CONFIG% "%ProgramFiles(x86)%\hakchi2\config\config.ini" + +echo copy startmenu link ... +copy /Y startmenu\HakChi2.lnk %STARTMENU% + +echo ####### %0 ####### +pause diff --git a/optional/install-heidisql.cmd b/optional/install-heidisql.cmd index dc2bb8e..d6c73ea 100644 --- a/optional/install-heidisql.cmd +++ b/optional/install-heidisql.cmd @@ -1,34 +1,34 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set CONFIG=config\install-heidisql.txt -set EXE=..\software\heidisql-setup.exe -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - exit /b -) - -echo ####### %0 ####### - -echo installing Heidi SQL ... -start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS - -echo moving HeidiSQL startmenu shortcut ... -move /Y %STARTMENU%\"HeidiSQL\HeidiSQL.lnk" %STARTMENU% - -echo moving HeidiSQL desktop shortcut ... -move /Y "%USERPROFILE%\Desktop\HeidiSQL.lnk" "%PUBLIC%\Desktop" -icacls "%PUBLIC%\Desktop\HeidiSQL.lnk" /grant Users:R 2>nul - -echo cleanup ... -rd /S /Q %STARTMENU%\"HeidiSQL" - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set CONFIG=config\install-heidisql.txt +set EXE=..\software\heidisql-setup.exe +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing Heidi SQL ... +start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS + +echo moving HeidiSQL startmenu shortcut ... +move /Y %STARTMENU%\"HeidiSQL\HeidiSQL.lnk" %STARTMENU% + +echo moving HeidiSQL desktop shortcut ... +move /Y "%USERPROFILE%\Desktop\HeidiSQL.lnk" "%PUBLIC%\Desktop" +icacls "%PUBLIC%\Desktop\HeidiSQL.lnk" /grant Users:R 2>nul + +echo cleanup ... +rd /S /Q %STARTMENU%\"HeidiSQL" + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo ####### %0 ####### +pause + diff --git a/optional/install-horizon.cmd b/optional/install-horizon.cmd index bd51cbd..7306168 100644 --- a/optional/install-horizon.cmd +++ b/optional/install-horizon.cmd @@ -1,21 +1,21 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set EXE=..\software\horizon-setup.exe - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! -) - -echo ####### %0 ####### - -echo installing VMware Horizon client ... -start /wait %EXE% /silent /norestart AUTO_UPDATE_ENABLED=0 - -echo installing Desktop shortcut ... -move /Y "%PUBLIC%\Desktop\VMware Horizon Client.lnk" "%PUBLIC%\Desktop\Horizon.lnk" - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set EXE=..\software\horizon-setup.exe + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! +) + +echo ####### %0 ####### + +echo installing VMware Horizon client ... +start /wait %EXE% /silent /norestart AUTO_UPDATE_ENABLED=0 + +echo installing Desktop shortcut ... +move /Y "%PUBLIC%\Desktop\VMware Horizon Client.lnk" "%PUBLIC%\Desktop\Horizon.lnk" + +echo ####### %0 ####### +pause + diff --git a/optional/install-inkscape.cmd b/optional/install-inkscape.cmd index 159862a..42b584f 100644 --- a/optional/install-inkscape.cmd +++ b/optional/install-inkscape.cmd @@ -1,32 +1,32 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set EXE=..\software\inkscape-setup.exe -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - exit /b -) - -echo ####### %0 ####### - -echo killing INKSCAPE processes... -taskkill /F /IM inkscape.exe 2>nul - -echo installing INKSCAPE ... -start /wait %EXE% /S - -echo moving Inkscape startmenu shortcut ... -move /Y %STARTMENU%\"Inkscape\Inkscape.lnk" %STARTMENU%\Inkscape.lnk - -echo removing Inkscape startmenu folder ... -rd /S /Q %STARTMENU%\"Inkscape" 2>nul - -echo installing Inkscape desktop shortcut ... -copy /Y %STARTMENU%\"Inkscape.lnk" %PUBLIC%\Desktop 2>nul - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set EXE=..\software\inkscape-setup.exe +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo killing INKSCAPE processes... +taskkill /F /IM inkscape.exe 2>nul + +echo installing INKSCAPE ... +start /wait %EXE% /S + +echo moving Inkscape startmenu shortcut ... +move /Y %STARTMENU%\"Inkscape\Inkscape.lnk" %STARTMENU%\Inkscape.lnk + +echo removing Inkscape startmenu folder ... +rd /S /Q %STARTMENU%\"Inkscape" 2>nul + +echo installing Inkscape desktop shortcut ... +copy /Y %STARTMENU%\"Inkscape.lnk" %PUBLIC%\Desktop 2>nul + +echo ####### %0 ####### +pause + diff --git a/optional/install-java.cmd b/optional/install-java.cmd index 7f60671..8623e0c 100644 --- a/optional/install-java.cmd +++ b/optional/install-java.cmd @@ -1,20 +1,20 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set EXE=..\software\java-setup.exe - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - exit /b -) - -echo ####### %0 ####### - -echo installing JAVA ... -start /wait %EXE% INSTALL_SILENT=Enable AUTO_UPDATE=0 NOSTARTMENU=1 REBOOT=0 ^ - INSTALLDIR="%ProgramFiles%\java" - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set EXE=..\software\java-setup.exe + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing JAVA ... +start /wait %EXE% INSTALL_SILENT=Enable AUTO_UPDATE=0 NOSTARTMENU=1 REBOOT=0 ^ + INSTALLDIR="%ProgramFiles%\java" + +echo ####### %0 ####### +pause + diff --git a/optional/install-keepass2.cmd b/optional/install-keepass2.cmd index 79a8914..3d5bc14 100644 --- a/optional/install-keepass2.cmd +++ b/optional/install-keepass2.cmd @@ -1,26 +1,26 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set CONFIG=config\install-keepass2.txt -set EXE=..\software\keepass2-setup.exe - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - exit /b -) - -echo ####### %0 ####### - -echo killing KeePass 2 process ... -taskkill /F /IM KeePass.exe 2>nul - -echo installing KeePass 2 ... -start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set CONFIG=config\install-keepass2.txt +set EXE=..\software\keepass2-setup.exe + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo killing KeePass 2 process ... +taskkill /F /IM KeePass.exe 2>nul + +echo installing KeePass 2 ... +start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo ####### %0 ####### +pause + diff --git a/optional/install-mame.cmd b/optional/install-mame.cmd index 91e694e..644e3be 100644 --- a/optional/install-mame.cmd +++ b/optional/install-mame.cmd @@ -1,41 +1,41 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set T=%SystemDrive%\TEMP -set ZIP=..\software\mame64.7z -set TARGET=c:\MAME -set CONFIG=config\mame.ini -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %ZIP% ( - echo ERROR: %ZIP% not found! - exit /b -) - -echo ####### %0 ####### - -echo killing MAME64 processes... -taskkill /F /IM hakchi.exe 2>nul - -rem create directory ... -mkdir %TARGET% 2>nul - -echo unpacking MAME64 ... -7z x -y -aoa -o%T%\mame %ZIP% - -echo moving files ... -move /Y %T%\mame\mame64.exe %TARGET% -move /Y %T%\mame\mame64.sym %TARGET% -mkdir %TARGET%\roms 2>nul -rd /S /Q %T%\mame -echo. - -echo copy ini file ... -copy /Y %CONFIG% %TARGET% - -echo copy startmenu link ... -copy /Y startmenu\MAME64.lnk %STARTMENU% - -echo ####### %0 ####### -pause +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set T=%SystemDrive%\TEMP +set ZIP=..\software\mame64.7z +set TARGET=c:\MAME +set CONFIG=config\mame.ini +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %ZIP% ( + echo ERROR: %ZIP% not found! + exit /b +) + +echo ####### %0 ####### + +echo killing MAME64 processes... +taskkill /F /IM hakchi.exe 2>nul + +rem create directory ... +mkdir %TARGET% 2>nul + +echo unpacking MAME64 ... +7z x -y -aoa -o%T%\mame %ZIP% + +echo moving files ... +move /Y %T%\mame\mame64.exe %TARGET% +move /Y %T%\mame\mame64.sym %TARGET% +mkdir %TARGET%\roms 2>nul +rd /S /Q %T%\mame +echo. + +echo copy ini file ... +copy /Y %CONFIG% %TARGET% + +echo copy startmenu link ... +copy /Y startmenu\MAME64.lnk %STARTMENU% + +echo ####### %0 ####### +pause diff --git a/optional/install-moneyplex.cmd b/optional/install-moneyplex.cmd index f1218bf..1fbc48c 100644 --- a/optional/install-moneyplex.cmd +++ b/optional/install-moneyplex.cmd @@ -1,36 +1,36 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set CONFIG=config\install-moneyplex.txt -set EXE=..\software\moneyplex-setup.exe -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - exit /b -) - -echo ####### %0 ####### - -echo killing moneyplex processes... -taskkill /F /IM moneyplex.exe 2>nul - -echo installing moneyplex ... -start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS - -echo moving moneyplex startmenu shortcut ... -move /Y %STARTMENU%\"moneyplex\moneyplex.lnk" %STARTMENU%\"MoneyPlex.lnk" - -echo removing moneyplex startmenu folder ... -rd /S /Q %STARTMENU%\"moneyplex" 2>nul - -echo renaming moneyplex icon on desktop ... -move /Y "%PUBLIC%\Desktop\moneyplex.lnk" "%PUBLIC%\Desktop\MoneyPlex.lnk" - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set CONFIG=config\install-moneyplex.txt +set EXE=..\software\moneyplex-setup.exe +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo killing moneyplex processes... +taskkill /F /IM moneyplex.exe 2>nul + +echo installing moneyplex ... +start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS + +echo moving moneyplex startmenu shortcut ... +move /Y %STARTMENU%\"moneyplex\moneyplex.lnk" %STARTMENU%\"MoneyPlex.lnk" + +echo removing moneyplex startmenu folder ... +rd /S /Q %STARTMENU%\"moneyplex" 2>nul + +echo renaming moneyplex icon on desktop ... +move /Y "%PUBLIC%\Desktop\moneyplex.lnk" "%PUBLIC%\Desktop\MoneyPlex.lnk" + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo ####### %0 ####### +pause + diff --git a/optional/install-motorescue.cmd b/optional/install-motorescue.cmd index 63ae65d..b114a29 100644 --- a/optional/install-motorescue.cmd +++ b/optional/install-motorescue.cmd @@ -1,34 +1,34 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set EXE=..\software\motorescue-setup.exe -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" -set STARTMENU_USER=%APPDATA%\"Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - pause - exit /b -) - -echo ####### %0 ####### - -echo installing Motorola/Lenovo Smart Assistant ... -start /wait %EXE% - -echo removing Desktop icon ... -del /F "%USERPROFILE%\Desktop\Rescue and Smart Assistant.lnk" 2>nul - -echo moving Smart Assistant startmenu shortcut ... -move /Y %STARTMENU_USER%\"Lenovo\Rescue and Smart Assistant.lnk" %STARTMENU%\"Lenovo Smart Assistant.lnk" 2>nul - -echo removing Smart Assistant startmenu folder ... -rd /S /Q %STARTMENU_USER%\"Lenovo" 2>nul - -echo refreshing desktop (W10 style) ... -ie4uinit.exe -show - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set EXE=..\software\motorescue-setup.exe +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" +set STARTMENU_USER=%APPDATA%\"Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + pause + exit /b +) + +echo ####### %0 ####### + +echo installing Motorola/Lenovo Smart Assistant ... +start /wait %EXE% + +echo removing Desktop icon ... +del /F "%USERPROFILE%\Desktop\Rescue and Smart Assistant.lnk" 2>nul + +echo moving Smart Assistant startmenu shortcut ... +move /Y %STARTMENU_USER%\"Lenovo\Rescue and Smart Assistant.lnk" %STARTMENU%\"Lenovo Smart Assistant.lnk" 2>nul + +echo removing Smart Assistant startmenu folder ... +rd /S /Q %STARTMENU_USER%\"Lenovo" 2>nul + +echo refreshing desktop (W10 style) ... +ie4uinit.exe -show + +echo ####### %0 ####### +pause + diff --git a/optional/install-msoffice.cmd b/optional/install-msoffice.cmd new file mode 100644 index 0000000..8e73485 --- /dev/null +++ b/optional/install-msoffice.cmd @@ -0,0 +1,56 @@ +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set T=%SystemDrive%\TEMP +set TOOLS=%SystemDrive%\tools +set CONFIG=config\office2019-standard.xml +set ARCHIVE=..\software\office2019-standard.7z +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %ARCHIVE% ( + echo ERROR: %ARCHIVE% not found! + exit /b +) + +echo ####### %0 ####### + +echo unpacking office files ... +%TOOLS%\7z x -y -aoa -o%T% %ARCHIVE% + +echo starting MS-Office setup ... +@echo on +%TOOLS%\officedeploymenttool.exe /configure %CONFIG% +@echo off + +echo TEMP cleanup ... +rd /S /Q %T%\Office 2>nul + +echo renaming folder in startmenu ... +move /Y %STARTMENU%\"Microsoft Office Tools" %STARTMENU%\"Microsoft Office" 2>nul + +echo moving links in startmenu ... +move /Y %STARTMENU%\Word.lnk %STARTMENU%\"Microsoft Office" 2>nul +move /Y %STARTMENU%\Excel.lnk %STARTMENU%\"Microsoft Office" 2>nul +move /Y %STARTMENU%\PowerPoint.lnk %STARTMENU%\"Microsoft Office" 2>nul + +echo installing desktop icons ... +copy /Y %STARTMENU%\"Microsoft Office\Word.lnk" %PUBLIC%\Desktop +copy /Y %STARTMENU%\"Microsoft Office\Excel.lnk" %PUBLIC%\Desktop +copy /Y %STARTMENU%\"Microsoft Office\PowerPoint.lnk" %PUBLIC%\Desktop + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo cleaning startmenu ... +del /F /Q /A %STARTMENU%\"Microsoft Office\Telemetry*.lnk" 2>nul +del /F /Q /A %STARTMENU%\"Microsoft Office\Office Upload Center.lnk" 2>nul + +echo ####### %0 ####### + +rem set filetypes ... +rem if EXIST ..\scripts\set-filetypes.cmd ( +rem call ..\scripts\set-filetypes.cmd +rem ) + +pause diff --git a/optional/install-ntlite.cmd b/optional/install-ntlite.cmd index 9a9d435..4f2df62 100644 --- a/optional/install-ntlite.cmd +++ b/optional/install-ntlite.cmd @@ -1,32 +1,32 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set CONFIG=config\install-ntlite.txt -set EXE=..\software\ntlite-setup.exe -set STARTMENU=%PROGRAMDATA%\"Microsoft\Windows\Start Menu\Programs" -set STARTMENU_USER=%APPDATA%\"Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - exit /b -) - -echo ####### %0 ####### - -echo installing NTLite ... -start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS - -echo moving NTLite startmenu shortcut ... -mkdir %STARTMENU%\Tools 2>nul -move /Y %STARTMENU%\"NTLite\NTLite.lnk" %STARTMENU%\Tools 2>nul - -echo cleanup ... -rd /S /Q %STARTMENU%\"NTLite" 2>nul - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set CONFIG=config\install-ntlite.txt +set EXE=..\software\ntlite-setup.exe +set STARTMENU=%PROGRAMDATA%\"Microsoft\Windows\Start Menu\Programs" +set STARTMENU_USER=%APPDATA%\"Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing NTLite ... +start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS + +echo moving NTLite startmenu shortcut ... +mkdir %STARTMENU%\Tools 2>nul +move /Y %STARTMENU%\"NTLite\NTLite.lnk" %STARTMENU%\Tools 2>nul + +echo cleanup ... +rd /S /Q %STARTMENU%\"NTLite" 2>nul + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo ####### %0 ####### +pause + diff --git a/optional/install-obsstudio.cmd b/optional/install-obsstudio.cmd index ae79e28..407cb5f 100644 --- a/optional/install-obsstudio.cmd +++ b/optional/install-obsstudio.cmd @@ -1,29 +1,29 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set EXE=..\software\obsstudio-setup.exe -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - pause - exit /b -) - -echo ####### %0 ####### - -echo installing OBS Studio ... -start /wait %EXE% /S - -echo moving OBS Studio startmenu shortcut ... -move /Y %STARTMENU%\"OBS Studio\OBS*.lnk" %STARTMENU% - -echo removing OBS Studio startmenu folder ... -rd /S /Q %STARTMENU%\"OBS Studio" 2>nul - -echo refreshing desktop (W10 style) ... -ie4uinit.exe -show - -echo ####### %0 ####### -pause +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set EXE=..\software\obsstudio-setup.exe +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + pause + exit /b +) + +echo ####### %0 ####### + +echo installing OBS Studio ... +start /wait %EXE% /S + +echo moving OBS Studio startmenu shortcut ... +move /Y %STARTMENU%\"OBS Studio\OBS*.lnk" %STARTMENU% + +echo removing OBS Studio startmenu folder ... +rd /S /Q %STARTMENU%\"OBS Studio" 2>nul + +echo refreshing desktop (W10 style) ... +ie4uinit.exe -show + +echo ####### %0 ####### +pause diff --git a/optional/install-openvpn.cmd b/optional/install-openvpn.cmd index 36783b9..5242d04 100644 --- a/optional/install-openvpn.cmd +++ b/optional/install-openvpn.cmd @@ -1,39 +1,39 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set OPT=..\optional -set SOFTWARE=..\software -set MSI=openvpn-setup.msi - -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %SOFTWARE%\%MSI% ( - echo ERROR: %SOFTWARE%\%MSI% not found! - exit /b -) - -echo ####### %0 ####### - -echo installing OpenVPN ... -cd %SOFTWARE% -@echo on -msiexec /i %MSI% /q -@echo off -cd %OPT% - -echo moving OpenVPN startmenu shortcut ... -move /Y %STARTMENU%\"OpenVPN\OpenVPN GUI.lnk" %STARTMENU%\OpenVPN.lnk - -echo removing Inkscape startmenu folder ... -rd /S /Q %STARTMENU%\"OpenVPN" 2>nul - -echo removing Desktop icon ... -del /F /Q "%PUBLIC%\Desktop\OpenVPN GUI.lnk" 2>nul - -echo refreshing desktop (W10 style) ... -ie4uinit.exe -show - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set OPT=..\optional +set SOFTWARE=..\software +set MSI=openvpn-setup.msi + +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %SOFTWARE%\%MSI% ( + echo ERROR: %SOFTWARE%\%MSI% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing OpenVPN ... +cd %SOFTWARE% +@echo on +msiexec /i %MSI% /q +@echo off +cd %OPT% + +echo moving OpenVPN startmenu shortcut ... +move /Y %STARTMENU%\"OpenVPN\OpenVPN GUI.lnk" %STARTMENU%\OpenVPN.lnk + +echo removing Inkscape startmenu folder ... +rd /S /Q %STARTMENU%\"OpenVPN" 2>nul + +echo removing Desktop icon ... +del /F /Q "%PUBLIC%\Desktop\OpenVPN GUI.lnk" 2>nul + +echo refreshing desktop (W10 style) ... +ie4uinit.exe -show + +echo ####### %0 ####### +pause + diff --git a/optional/install-pdf24.cmd b/optional/install-pdf24.cmd index 30b0744..6bd9634 100644 --- a/optional/install-pdf24.cmd +++ b/optional/install-pdf24.cmd @@ -1,52 +1,52 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set OPT=..\optional -set SOFTWARE=..\software -set MSI=pdf24-setup.msi -set CONFIG=config\pdf24.reg -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %SOFTWARE%\%MSI% ( - echo ERROR: %SOFTWARE%\%MSI% not found! - exit /b -) - -echo ####### %0 ####### - -echo installing PDF24 ... -cd %SOFTWARE% -@echo on -msiexec /i %MSI% /q -@echo off -cd %OPT% - -echo tweaking PDF24 ... -reg import %CONFIG% - -echo removing Desktop icons ... -del /F /Q "%PUBLIC%\Desktop\PDF24 Toolbox.lnk" 2>nul -del /F /Q "%PUBLIC%\Desktop\PDF24 Launcher.lnk" 2>nul - -echo removing a Startmenu icon ... -del /F /Q %STARTMENU%"\PDF24 Launcher.lnk" 2>nul - -echo refreshing desktop (W10 style) ... -ie4uinit.exe -show - -echo ####### %0 ####### - -rem set filetypes ... -if EXIST ..\scripts\set-filetypes.cmd ( - call ..\scripts\set-filetypes.cmd -) - -rem remove the FAX printer ... -call remove-printer.cmd "PDF24 Fax" - -rem ... and remove the Microsoft fax printer ... -call remove-printer.cmd "Microsoft Print to PDF" - -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set OPT=..\optional +set SOFTWARE=..\software +set MSI=pdf24-setup.msi +set CONFIG=config\pdf24.reg +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %SOFTWARE%\%MSI% ( + echo ERROR: %SOFTWARE%\%MSI% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing PDF24 ... +cd %SOFTWARE% +@echo on +msiexec /i %MSI% /q +@echo off +cd %OPT% + +echo tweaking PDF24 ... +reg import %CONFIG% + +echo removing Desktop icons ... +del /F /Q "%PUBLIC%\Desktop\PDF24 Toolbox.lnk" 2>nul +del /F /Q "%PUBLIC%\Desktop\PDF24 Launcher.lnk" 2>nul + +echo removing a Startmenu icon ... +del /F /Q %STARTMENU%"\PDF24 Launcher.lnk" 2>nul + +echo refreshing desktop (W10 style) ... +ie4uinit.exe -show + +echo ####### %0 ####### + +rem set filetypes ... +if EXIST ..\scripts\set-filetypes.cmd ( + call ..\scripts\set-filetypes.cmd +) + +rem remove the FAX printer ... +call remove-printer.cmd "PDF24 Fax" + +rem ... and remove the Microsoft fax printer ... +call remove-printer.cmd "Microsoft Print to PDF" + +pause + diff --git a/optional/install-purebasic.cmd b/optional/install-purebasic.cmd index 9294c75..f8d7c57 100644 --- a/optional/install-purebasic.cmd +++ b/optional/install-purebasic.cmd @@ -1,78 +1,78 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set T=%SystemDrive%\TEMP - -set CONFIG=config\install-purebasic.txt -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -rem licensed version (exe contains key!) -set EXE=..\software\purebasic-setup.exe - -rem demo version (publically accessible) -set ZIP=..\software\purebasic.zip - -echo ####### %0 ####### - -echo killing PureBasic processes... -taskkill /F /IM PureBasic.exe 2>nul -taskkill /F /IM pbcompiler.exe 2>nul - -rem YES - this works. It is a "AND" construct... -if NOT EXIST %EXE% if NOT EXIST %ZIP% ( - echo WARNING: no PureBasic zipfile or exe-installer found! - goto END -) - -if EXIST %EXE% ( - - echo INFO: %EXE% found, installing licensed version ... - - echo installing purebasic ... - start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL ^ - /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS - - goto LINK - -) - -if EXIST %ZIP% ( - - echo INFO: %ZIP% found, installing demo version ... - - 7z e -y -aoa -o%T%\purebasic %ZIP% - move /Y %T%\purebasic\PureBasic*.exe %T%\purebasic\purebasic-setup.exe - - echo installing purebasic ... - start /wait %T%\purebasic\purebasic-setup.exe ^ - /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS - - echo cleanup ... - rd /S /Q %T%\purebasic 2>nul - - goto LINK - -) - -:LINK -echo removing old desktop links ... -del /F /Q /A "%PUBLIC%\Desktop\PureBasic*.lnk" 2>nul -del /F /Q /A "%USERPROFILE%\Desktop\PureBasic*.lnk" 2>nul - -echo copying new PureBasic link to public desktop ... -copy /Y %STARTMENU%\"PureBasic\PureBasic (x64).lnk" %PUBLIC%\Desktop\PureBasic.lnk - -echo moving PureBasic startmenu shortcut ... -move /Y %STARTMENU%\"PureBasic\PureBasic (x64).lnk" %STARTMENU%\PureBasic.lnk - -echo removing PureBasic startmenu folder ... -rd /S /Q %STARTMENU%\PureBasic 2>nul - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -:END -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set T=%SystemDrive%\TEMP + +set CONFIG=config\install-purebasic.txt +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +rem licensed version (exe contains key!) +set EXE=..\software\purebasic-setup.exe + +rem demo version (publically accessible) +set ZIP=..\software\purebasic.zip + +echo ####### %0 ####### + +echo killing PureBasic processes... +taskkill /F /IM PureBasic.exe 2>nul +taskkill /F /IM pbcompiler.exe 2>nul + +rem YES - this works. It is a "AND" construct... +if NOT EXIST %EXE% if NOT EXIST %ZIP% ( + echo WARNING: no PureBasic zipfile or exe-installer found! + goto END +) + +if EXIST %EXE% ( + + echo INFO: %EXE% found, installing licensed version ... + + echo installing purebasic ... + start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL ^ + /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS + + goto LINK + +) + +if EXIST %ZIP% ( + + echo INFO: %ZIP% found, installing demo version ... + + 7z e -y -aoa -o%T%\purebasic %ZIP% + move /Y %T%\purebasic\PureBasic*.exe %T%\purebasic\purebasic-setup.exe + + echo installing purebasic ... + start /wait %T%\purebasic\purebasic-setup.exe ^ + /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS + + echo cleanup ... + rd /S /Q %T%\purebasic 2>nul + + goto LINK + +) + +:LINK +echo removing old desktop links ... +del /F /Q /A "%PUBLIC%\Desktop\PureBasic*.lnk" 2>nul +del /F /Q /A "%USERPROFILE%\Desktop\PureBasic*.lnk" 2>nul + +echo copying new PureBasic link to public desktop ... +copy /Y %STARTMENU%\"PureBasic\PureBasic (x64).lnk" %PUBLIC%\Desktop\PureBasic.lnk + +echo moving PureBasic startmenu shortcut ... +move /Y %STARTMENU%\"PureBasic\PureBasic (x64).lnk" %STARTMENU%\PureBasic.lnk + +echo removing PureBasic startmenu folder ... +rd /S /Q %STARTMENU%\PureBasic 2>nul + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +:END +echo ####### %0 ####### +pause + diff --git a/optional/install-python2.cmd b/optional/install-python2.cmd index 21a1510..eab5700 100644 --- a/optional/install-python2.cmd +++ b/optional/install-python2.cmd @@ -1,24 +1,24 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set OPT=..\optional -set SOFTWARE=..\software -set MSI=python2-setup.msi - -if NOT EXIST %SOFTWARE%\%MSI% ( - echo ERROR: %SOFTWARE%\%MSI% not found! - exit /b -) - -echo ####### %0 ####### - -cd %SOFTWARE% -@echo on -msiexec /i %MSI% /passive -@echo off -cd %OPT% - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set OPT=..\optional +set SOFTWARE=..\software +set MSI=python2-setup.msi + +if NOT EXIST %SOFTWARE%\%MSI% ( + echo ERROR: %SOFTWARE%\%MSI% not found! + exit /b +) + +echo ####### %0 ####### + +cd %SOFTWARE% +@echo on +msiexec /i %MSI% /passive +@echo off +cd %OPT% + +echo ####### %0 ####### +pause + diff --git a/optional/install-seafile.cmd b/optional/install-seafile.cmd index e8268f4..b58e7c4 100644 --- a/optional/install-seafile.cmd +++ b/optional/install-seafile.cmd @@ -1,70 +1,70 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set OPT=..\optional -set SOFTWARE=..\software -set MSI=seafile-setup.msi -set CUSTOM_SETTINGS=..\custom\settings.cmd -set seafile_server_url=0 -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %SOFTWARE%\%MSI% ( - echo ERROR: %SOFTWARE%\%MSI% not found! - exit /b -) - -echo ####### %0 ####### - -rem =================== -rem CONFIGFILE CHECK -rem =================== - -echo. -echo searching for CUSTOM settings ... -if NOT EXIST %CUSTOM_SETTINGS% ( - echo INFO: config file %CUSTOM_SETTINGS% NOT FOUND -) else ( - echo OK. Loading CUSTOM settings ... - call %CUSTOM_SETTINGS% -) - -echo installing SeaFile ... -cd %SOFTWARE% -@echo on -msiexec /i %MSI% /qn -@echo off -cd %OPT% - -echo restarting explorer ... -taskkill /f /im explorer.exe 1>nul 2>nul -start explorer.exe - -echo removing SeaFile Desktop icon ... -del /F "%Public%\Desktop\SeaFile.lnk" 2>nul - -echo moving SeaFile startmenu shortcut ... -move /Y %STARTMENU%\"Seafile\Start Seafile.lnk" %STARTMENU%\SeaFile.lnk - -echo removing SeaFile startmenu folder ... -rd /S /Q %STARTMENU%\"Seafile" 2>nul - -echo refreshing desktop (W10 style) ... -ie4uinit.exe -show - -if seafile_server_url == 0 ( - echo no SeaFile server URL found! -) else ( - - echo setting SeaFile server URL ... - reg add "HKEY_LOCAL_MACHINE\SOFTWARE\SeaFile" ^ - /v "PreconfigureServerAddr" /d "%seafile_server_url%" /t REG_SZ /f 1>nul - - reg add "HKEY_LOCAL_MACHINE\SOFTWARE\SeaFile" ^ - /v "PreconfigureServerAddrOnly" /d 1 /t REG_SZ /f 1>nul - -) - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set OPT=..\optional +set SOFTWARE=..\software +set MSI=seafile-setup.msi +set CUSTOM_SETTINGS=..\custom\settings.cmd +set seafile_server_url=0 +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %SOFTWARE%\%MSI% ( + echo ERROR: %SOFTWARE%\%MSI% not found! + exit /b +) + +echo ####### %0 ####### + +rem =================== +rem CONFIGFILE CHECK +rem =================== + +echo. +echo searching for CUSTOM settings ... +if NOT EXIST %CUSTOM_SETTINGS% ( + echo INFO: config file %CUSTOM_SETTINGS% NOT FOUND +) else ( + echo OK. Loading CUSTOM settings ... + call %CUSTOM_SETTINGS% +) + +echo installing SeaFile ... +cd %SOFTWARE% +@echo on +msiexec /i %MSI% /qn +@echo off +cd %OPT% + +echo restarting explorer ... +taskkill /f /im explorer.exe 1>nul 2>nul +start explorer.exe + +echo removing SeaFile Desktop icon ... +del /F "%Public%\Desktop\SeaFile.lnk" 2>nul + +echo moving SeaFile startmenu shortcut ... +move /Y %STARTMENU%\"Seafile\Start Seafile.lnk" %STARTMENU%\SeaFile.lnk + +echo removing SeaFile startmenu folder ... +rd /S /Q %STARTMENU%\"Seafile" 2>nul + +echo refreshing desktop (W10 style) ... +ie4uinit.exe -show + +if seafile_server_url == 0 ( + echo no SeaFile server URL found! +) else ( + + echo setting SeaFile server URL ... + reg add "HKEY_LOCAL_MACHINE\SOFTWARE\SeaFile" ^ + /v "PreconfigureServerAddr" /d "%seafile_server_url%" /t REG_SZ /f 1>nul + + reg add "HKEY_LOCAL_MACHINE\SOFTWARE\SeaFile" ^ + /v "PreconfigureServerAddrOnly" /d 1 /t REG_SZ /f 1>nul + +) + +echo ####### %0 ####### +pause + diff --git a/optional/install-sharemouse.cmd b/optional/install-sharemouse.cmd index cde62e9..3f457ae 100644 --- a/optional/install-sharemouse.cmd +++ b/optional/install-sharemouse.cmd @@ -1,26 +1,26 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set CONFIG=config\install-sharemouse.txt -set EXE=..\software\sharemouse-setup.exe - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - exit /b -) - -echo ####### %0 ####### - -echo killing ShareMouse processes... -taskkill /F /IM sharemouse.exe 2>nul - -echo installing ShareMouse ... -start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set CONFIG=config\install-sharemouse.txt +set EXE=..\software\sharemouse-setup.exe + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo killing ShareMouse processes... +taskkill /F /IM sharemouse.exe 2>nul + +echo installing ShareMouse ... +start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo ####### %0 ####### +pause + diff --git a/optional/install-snapcontrol.cmd b/optional/install-snapcontrol.cmd index 6244719..a88fcd0 100644 --- a/optional/install-snapcontrol.cmd +++ b/optional/install-snapcontrol.cmd @@ -1,49 +1,49 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set TOOLS=%SystemDrive%\tools -set INIFILE=config\snapcontrol.ini -set SOFTWARE=..\software -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\tools" - -if NOT EXIST %SOFTWARE%\snapcontrol.exe ( - echo ERROR: %SOFTWARE%\snapcontrol.exe not found! - exit /b -) - -echo ####### %0 ####### - -echo killing snapcontrol processes... -taskkill /F /IM snapcontrol.exe 2>nul - -echo killing snapshot processes... -taskkill /F /IM snapshot64.exe 2>nul - -echo copy snapcontrol binary to [ %windir% ] ... -copy /Y %SOFTWARE%\snapcontrol.exe %windir% 2>nul - -if EXIST %SOFTWARE%\snapshot64_licensed.exe ( - echo copying LICENSED snapshot64 to %windir% ... - copy /Y %SOFTWARE%\snapshot64_licensed.exe %windir%\snapshot64.exe -) else ( - echo copying STANDARD snapshot64 to boot image ... - copy /Y %SOFTWARE%\snapshot64.exe %windir% -) - -if NOT EXIST %windir%\snapcontrol.ini ( - echo copying STANDARD inifile to %windir% ... - copy /Y %INIFILE% %windir% -) else ( - echo inifile already copied. nothing to do! -) - -echo creating scheduler task ... -%windir%\snapcontrol /I - -echo copy startmenu link ... -copy /Y "startmenu\Drive Snapshot.lnk" %STARTMENU% - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set TOOLS=%SystemDrive%\tools +set INIFILE=config\snapcontrol.ini +set SOFTWARE=..\software +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\tools" + +if NOT EXIST %SOFTWARE%\snapcontrol.exe ( + echo ERROR: %SOFTWARE%\snapcontrol.exe not found! + exit /b +) + +echo ####### %0 ####### + +echo killing snapcontrol processes... +taskkill /F /IM snapcontrol.exe 2>nul + +echo killing snapshot processes... +taskkill /F /IM snapshot64.exe 2>nul + +echo copy snapcontrol binary to [ %windir% ] ... +copy /Y %SOFTWARE%\snapcontrol.exe %windir% 2>nul + +if EXIST %SOFTWARE%\snapshot64_licensed.exe ( + echo copying LICENSED snapshot64 to %windir% ... + copy /Y %SOFTWARE%\snapshot64_licensed.exe %windir%\snapshot64.exe +) else ( + echo copying STANDARD snapshot64 to boot image ... + copy /Y %SOFTWARE%\snapshot64.exe %windir% +) + +if NOT EXIST %windir%\snapcontrol.ini ( + echo copying STANDARD inifile to %windir% ... + copy /Y %INIFILE% %windir% +) else ( + echo inifile already copied. nothing to do! +) + +echo creating scheduler task ... +%windir%\snapcontrol /I + +echo copy startmenu link ... +copy /Y "startmenu\Drive Snapshot.lnk" %STARTMENU% + +echo ####### %0 ####### +pause + diff --git a/optional/install-softmaker-2024.cmd b/optional/install-softmaker-2024.cmd index 92c43d4..6ed2d68 100644 --- a/optional/install-softmaker-2024.cmd +++ b/optional/install-softmaker-2024.cmd @@ -1,126 +1,126 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set OPT=..\optional -set SOFTWARE=..\software -set MSI=softmaker-setup-2024.msi -set CUSTOM_SETTINGS=..\custom\settings.cmd -set softmaker_license=0 -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %SOFTWARE%\%MSI% ( - echo ERROR: %SOFTWARE%\%MSI% not found! - exit /b -) - -echo ####### %0 ####### - -rem =================== -rem CONFIGFILE CHECK -rem =================== - -echo. -echo searching for CUSTOM settings ... -if NOT EXIST %CUSTOM_SETTINGS% ( - echo INFO: config file %CUSTOM_SETTINGS% NOT FOUND -) else ( - echo OK. Loading CUSTOM settings ... - call %CUSTOM_SETTINGS% -) - -cd %SOFTWARE% -@echo on -msiexec /i %MSI% /qb APPLICATIONFOLDER="c:\Program Files\Softmaker Office 2024" ^ - INSTALLTM=1 INSTALLPM=1 INSTALLPR=1 INSTALLTB1=0 INSTALLTB2=0 /l*v c:\temp\softmaker.log -@echo off -del /F c:\temp\softmaker.log -cd %OPT% - -echo installing desktop icons ... -copy /Y "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Softmaker Office 2024\PlanMaker 2024.lnk" ^ - %PUBLIC%\Desktop\PlanMaker.lnk -copy /Y "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Softmaker Office 2024\Presentations 2024.lnk" ^ - %PUBLIC%\Desktop\Presentations.lnk -copy /Y "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Softmaker Office 2024\TextMaker 2024.lnk" ^ - %PUBLIC%\Desktop\Textmaker.lnk - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -echo cleaning startmenu ... -del /F /Q /A %STARTMENU%\"Softmaker Office 2024\Bitte*.*" 2>nul - -echo disabling automatic updates for Softmaker Office 2024 ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2024" ^ - /v "UpdateCheckEnabled" /d 0 /t REG_DWORD /f - -echo disabling WEB help ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2024" ^ - /v "HelpSoftMaker" /d 0 /t REG_DWORD /f - -echo disabling License Management ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2024" ^ - /v "HelpManage" /d 0 /t REG_DWORD /f - -echo disabling the asking for user infos ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2024" ^ - /v "AskUserInfo" /d 0 /t REG_DWORD /f - -echo setting dialog language to US-english ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2024" ^ - /v "DlgLID" /d 409 /t REG_DWORD /f - -echo disabling backups ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2024" ^ - /v "AutoSave" /d 0 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2024" ^ - /v "AutoSave" /d 0 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2024" ^ - /v "AutoSave" /d 0 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2024" ^ - /v "BackupFilesNumber" /d 1 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2024" ^ - /v "BackupFilesNumber" /d 1 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2024" ^ - /v "BackupFilesNumber" /d 1 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2024" ^ - /v "BackupFilesPath" /d "" /t REG_SZ /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2024" ^ - /v "BackupFilesPath" /d "" /t REG_SZ /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2024" ^ - /v "BackupFilesPath" /d "" /t REG_SZ /f - -echo setting default formats ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2024" ^ - /v "DefaultFormat" /d 6 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2024" ^ - /v "DefaultFormat" /d 6 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2024" ^ - /v "DefaultFormat" /d 6 /t REG_DWORD /f - -echo disabling smart quotes ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2024" ^ - /v "SmartQuotes" /d 0 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2024" ^ - /v "SmartQuotes" /d 0 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2024" ^ - /v "SmartQuotes" /d 0 /t REG_DWORD /f - -if softmaker_license == 0 ( - echo no softmaker license found! -) else ( - echo adding softmaker license ... - reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2024" ^ - /v "ProductKey" /d "%softmaker_license%" /t REG_SZ /f -) - -echo ####### %0 ####### - -rem set filetypes ... -if EXIST ..\scripts\set-filetypes.cmd ( - call ..\scripts\set-filetypes.cmd -) - -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set OPT=..\optional +set SOFTWARE=..\software +set MSI=softmaker-setup-2024.msi +set CUSTOM_SETTINGS=..\custom\settings.cmd +set softmaker_license=0 +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %SOFTWARE%\%MSI% ( + echo ERROR: %SOFTWARE%\%MSI% not found! + exit /b +) + +echo ####### %0 ####### + +rem =================== +rem CONFIGFILE CHECK +rem =================== + +echo. +echo searching for CUSTOM settings ... +if NOT EXIST %CUSTOM_SETTINGS% ( + echo INFO: config file %CUSTOM_SETTINGS% NOT FOUND +) else ( + echo OK. Loading CUSTOM settings ... + call %CUSTOM_SETTINGS% +) + +cd %SOFTWARE% +@echo on +msiexec /i %MSI% /qb APPLICATIONFOLDER="c:\Program Files\Softmaker Office 2024" ^ + INSTALLTM=1 INSTALLPM=1 INSTALLPR=1 INSTALLTB1=0 INSTALLTB2=0 /l*v c:\temp\softmaker.log +@echo off +del /F c:\temp\softmaker.log +cd %OPT% + +echo installing desktop icons ... +copy /Y %STARTMENU%\"Softmaker Office 2024\PlanMaker 2024.lnk" ^ + %PUBLIC%\Desktop\PlanMaker.lnk +copy /Y %STARTMENU%\"Softmaker Office 2024\Presentations 2024.lnk" ^ + %PUBLIC%\Desktop\Presentations.lnk +copy /Y %STARTMENU%\"Softmaker Office 2024\TextMaker 2024.lnk" ^ + %PUBLIC%\Desktop\Textmaker.lnk + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo cleaning startmenu ... +del /F /Q /A %STARTMENU%\"Softmaker Office 2024\Bitte*.*" 2>nul + +echo disabling automatic updates for Softmaker Office 2024 ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2024" ^ + /v "UpdateCheckEnabled" /d 0 /t REG_DWORD /f + +echo disabling WEB help ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2024" ^ + /v "HelpSoftMaker" /d 0 /t REG_DWORD /f + +echo disabling License Management ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2024" ^ + /v "HelpManage" /d 0 /t REG_DWORD /f + +echo disabling the asking for user infos ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2024" ^ + /v "AskUserInfo" /d 0 /t REG_DWORD /f + +echo setting dialog language to US-english ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2024" ^ + /v "DlgLID" /d 409 /t REG_DWORD /f + +echo disabling backups ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2024" ^ + /v "AutoSave" /d 0 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2024" ^ + /v "AutoSave" /d 0 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2024" ^ + /v "AutoSave" /d 0 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2024" ^ + /v "BackupFilesNumber" /d 1 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2024" ^ + /v "BackupFilesNumber" /d 1 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2024" ^ + /v "BackupFilesNumber" /d 1 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2024" ^ + /v "BackupFilesPath" /d "" /t REG_SZ /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2024" ^ + /v "BackupFilesPath" /d "" /t REG_SZ /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2024" ^ + /v "BackupFilesPath" /d "" /t REG_SZ /f + +echo setting default formats ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2024" ^ + /v "DefaultFormat" /d 6 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2024" ^ + /v "DefaultFormat" /d 6 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2024" ^ + /v "DefaultFormat" /d 6 /t REG_DWORD /f + +echo disabling smart quotes ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2024" ^ + /v "SmartQuotes" /d 0 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2024" ^ + /v "SmartQuotes" /d 0 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2024" ^ + /v "SmartQuotes" /d 0 /t REG_DWORD /f + +if softmaker_license == 0 ( + echo no softmaker license found! +) else ( + echo adding softmaker license ... + reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2024" ^ + /v "ProductKey" /d "%softmaker_license%" /t REG_SZ /f +) + +echo ####### %0 ####### + +rem set filetypes ... +if EXIST ..\scripts\set-filetypes.cmd ( + call ..\scripts\set-filetypes.cmd +) + +pause + diff --git a/optional/install-softmaker.cmd b/optional/install-softmaker.cmd index a5a3bb6..835c36a 100644 --- a/optional/install-softmaker.cmd +++ b/optional/install-softmaker.cmd @@ -1,126 +1,126 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set OPT=..\optional -set SOFTWARE=..\software -set MSI=softmaker-setup.msi -set CUSTOM_SETTINGS=..\custom\settings.cmd -set softmaker_license=0 -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %SOFTWARE%\%MSI% ( - echo ERROR: %SOFTWARE%\%MSI% not found! - exit /b -) - -echo ####### %0 ####### - -rem =================== -rem CONFIGFILE CHECK -rem =================== - -echo. -echo searching for CUSTOM settings ... -if NOT EXIST %CUSTOM_SETTINGS% ( - echo INFO: config file %CUSTOM_SETTINGS% NOT FOUND -) else ( - echo OK. Loading CUSTOM settings ... - call %CUSTOM_SETTINGS% -) - -cd %SOFTWARE% -@echo on -msiexec /i %MSI% /qb APPLICATIONFOLDER="c:\Program Files\Softmaker Office 2021" ^ - INSTALLTM=1 INSTALLPM=1 INSTALLPR=1 INSTALLTB1=0 INSTALLTB2=0 /l*v c:\temp\softmaker.log -@echo off -del /F c:\temp\softmaker.log -cd %OPT% - -echo installing desktop icons ... -copy /Y "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Softmaker Office 2021\PlanMaker 2021.lnk" ^ - %PUBLIC%\Desktop\PlanMaker.lnk -copy /Y "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Softmaker Office 2021\Presentations 2021.lnk" ^ - %PUBLIC%\Desktop\Presentations.lnk -copy /Y "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Softmaker Office 2021\TextMaker 2021.lnk" ^ - %PUBLIC%\Desktop\Textmaker.lnk - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -echo cleaning startmenu ... -del /F /Q /A %STARTMENU%\"Softmaker Office 2021\Bitte*.*" 2>nul - -echo disabling automatic updates for Softmaker Office 2021 ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2021" ^ - /v "UpdateCheckEnabled" /d 0 /t REG_DWORD /f - -echo disabling WEB help ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2021" ^ - /v "HelpSoftMaker" /d 0 /t REG_DWORD /f - -echo disabling License Management ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2021" ^ - /v "HelpManage" /d 0 /t REG_DWORD /f - -echo disabling the asking for user infos ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2021" ^ - /v "AskUserInfo" /d 0 /t REG_DWORD /f - -echo setting dialog language to US-english ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2021" ^ - /v "DlgLID" /d 409 /t REG_DWORD /f - -echo disabling backups ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2021" ^ - /v "AutoSave" /d 0 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2021" ^ - /v "AutoSave" /d 0 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2021" ^ - /v "AutoSave" /d 0 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2021" ^ - /v "BackupFilesNumber" /d 1 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2021" ^ - /v "BackupFilesNumber" /d 1 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2021" ^ - /v "BackupFilesNumber" /d 1 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2021" ^ - /v "BackupFilesPath" /d "" /t REG_SZ /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2021" ^ - /v "BackupFilesPath" /d "" /t REG_SZ /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2021" ^ - /v "BackupFilesPath" /d "" /t REG_SZ /f - -echo setting default formats ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2021" ^ - /v "DefaultFormat" /d 6 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2021" ^ - /v "DefaultFormat" /d 6 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2021" ^ - /v "DefaultFormat" /d 6 /t REG_DWORD /f - -echo disabling smart quotes ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2021" ^ - /v "SmartQuotes" /d 0 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2021" ^ - /v "SmartQuotes" /d 0 /t REG_DWORD /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2021" ^ - /v "SmartQuotes" /d 0 /t REG_DWORD /f - -if softmaker_license == 0 ( - echo no softmaker license found! -) else ( - echo adding softmaker license ... - reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2021" ^ - /v "ProductKey" /d "%softmaker_license%" /t REG_SZ /f -) - -echo ####### %0 ####### - -rem set filetypes ... -if EXIST ..\scripts\set-filetypes.cmd ( - call ..\scripts\set-filetypes.cmd -) - -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set OPT=..\optional +set SOFTWARE=..\software +set MSI=softmaker-setup.msi +set CUSTOM_SETTINGS=..\custom\settings.cmd +set softmaker_license=0 +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %SOFTWARE%\%MSI% ( + echo ERROR: %SOFTWARE%\%MSI% not found! + exit /b +) + +echo ####### %0 ####### + +rem =================== +rem CONFIGFILE CHECK +rem =================== + +echo. +echo searching for CUSTOM settings ... +if NOT EXIST %CUSTOM_SETTINGS% ( + echo INFO: config file %CUSTOM_SETTINGS% NOT FOUND +) else ( + echo OK. Loading CUSTOM settings ... + call %CUSTOM_SETTINGS% +) + +cd %SOFTWARE% +@echo on +msiexec /i %MSI% /qb APPLICATIONFOLDER="c:\Program Files\Softmaker Office 2021" ^ + INSTALLTM=1 INSTALLPM=1 INSTALLPR=1 INSTALLTB1=0 INSTALLTB2=0 /l*v c:\temp\softmaker.log +@echo off +del /F c:\temp\softmaker.log +cd %OPT% + +echo installing desktop icons ... +copy /Y "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Softmaker Office 2021\PlanMaker 2021.lnk" ^ + %PUBLIC%\Desktop\PlanMaker.lnk +copy /Y "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Softmaker Office 2021\Presentations 2021.lnk" ^ + %PUBLIC%\Desktop\Presentations.lnk +copy /Y "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Softmaker Office 2021\TextMaker 2021.lnk" ^ + %PUBLIC%\Desktop\Textmaker.lnk + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo cleaning startmenu ... +del /F /Q /A %STARTMENU%\"Softmaker Office 2021\Bitte*.*" 2>nul + +echo disabling automatic updates for Softmaker Office 2021 ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2021" ^ + /v "UpdateCheckEnabled" /d 0 /t REG_DWORD /f + +echo disabling WEB help ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2021" ^ + /v "HelpSoftMaker" /d 0 /t REG_DWORD /f + +echo disabling License Management ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2021" ^ + /v "HelpManage" /d 0 /t REG_DWORD /f + +echo disabling the asking for user infos ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2021" ^ + /v "AskUserInfo" /d 0 /t REG_DWORD /f + +echo setting dialog language to US-english ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2021" ^ + /v "DlgLID" /d 409 /t REG_DWORD /f + +echo disabling backups ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2021" ^ + /v "AutoSave" /d 0 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2021" ^ + /v "AutoSave" /d 0 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2021" ^ + /v "AutoSave" /d 0 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2021" ^ + /v "BackupFilesNumber" /d 1 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2021" ^ + /v "BackupFilesNumber" /d 1 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2021" ^ + /v "BackupFilesNumber" /d 1 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2021" ^ + /v "BackupFilesPath" /d "" /t REG_SZ /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2021" ^ + /v "BackupFilesPath" /d "" /t REG_SZ /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2021" ^ + /v "BackupFilesPath" /d "" /t REG_SZ /f + +echo setting default formats ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2021" ^ + /v "DefaultFormat" /d 6 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2021" ^ + /v "DefaultFormat" /d 6 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2021" ^ + /v "DefaultFormat" /d 6 /t REG_DWORD /f + +echo disabling smart quotes ... +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\TextMaker 2021" ^ + /v "SmartQuotes" /d 0 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\PlanMaker 2021" ^ + /v "SmartQuotes" /d 0 /t REG_DWORD /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\Presentations 2021" ^ + /v "SmartQuotes" /d 0 /t REG_DWORD /f + +if softmaker_license == 0 ( + echo no softmaker license found! +) else ( + echo adding softmaker license ... + reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2021" ^ + /v "ProductKey" /d "%softmaker_license%" /t REG_SZ /f +) + +echo ####### %0 ####### + +rem set filetypes ... +if EXIST ..\scripts\set-filetypes.cmd ( + call ..\scripts\set-filetypes.cmd +) + +pause + diff --git a/optional/install-sonos2.cmd b/optional/install-sonos2.cmd index 798fe36..c4a9e43 100644 --- a/optional/install-sonos2.cmd +++ b/optional/install-sonos2.cmd @@ -1,29 +1,29 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set EXE=..\software\sonos2-setup.exe -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - exit /b -) - -echo ####### %0 ####### - -echo installing SONOS 2 client ... -start /wait %EXE% /L1031 /S /v/qn - -echo moving SONOS startmenu shortcut ... -move /Y %STARTMENU%\"Sonos\Sonos.lnk" %STARTMENU%\Sonos.lnk - -echo removing SONOS startmenu folder ... -rd /S /Q %STARTMENU%\"Sonos" 2>nul - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set EXE=..\software\sonos2-setup.exe +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing SONOS 2 client ... +start /wait %EXE% /L1031 /S /v/qn + +echo moving SONOS startmenu shortcut ... +move /Y %STARTMENU%\"Sonos\Sonos.lnk" %STARTMENU%\Sonos.lnk + +echo removing SONOS startmenu folder ... +rd /S /Q %STARTMENU%\"Sonos" 2>nul + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo ####### %0 ####### +pause + diff --git a/optional/install-steam.cmd b/optional/install-steam.cmd index e8fb34d..5df0932 100644 --- a/optional/install-steam.cmd +++ b/optional/install-steam.cmd @@ -1,29 +1,29 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set EXE=..\software\steam-setup.exe -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - exit /b -) - -echo ####### %0 ####### - -echo killing STEAM processes... -taskkill /F /IM steam.exe 2>nul - -echo installing STEAM ... -start /wait %EXE% /S - -echo moving STEAM startmenu shortcut ... -move /Y %STARTMENU%\"Steam\Steam.lnk" %STARTMENU% - -echo removing Steam startmenu folder ... -rd /S /Q %STARTMENU%\"Steam" 2>nul - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set EXE=..\software\steam-setup.exe +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo killing STEAM processes... +taskkill /F /IM steam.exe 2>nul + +echo installing STEAM ... +start /wait %EXE% /S + +echo moving STEAM startmenu shortcut ... +move /Y %STARTMENU%\"Steam\Steam.lnk" %STARTMENU% + +echo removing Steam startmenu folder ... +rd /S /Q %STARTMENU%\"Steam" 2>nul + +echo ####### %0 ####### +pause + diff --git a/optional/install-totalcommander.cmd b/optional/install-totalcommander.cmd index 58ef969..1574638 100644 --- a/optional/install-totalcommander.cmd +++ b/optional/install-totalcommander.cmd @@ -1,42 +1,42 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set EXE=..\software\totalcommander-setup.exe -set KEY=..\software\wincmd.key -set TARGET=c:\totalcmd -set STARTMENU=%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs -set STARTMENU_USER=%APPDATA%\Microsoft\Windows\Start Menu\Programs - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - exit /b -) - -echo ####### %0 ####### - -echo installing TotalCommander ... -start /wait %EXE% /AHMGDU - -echo renaming and moving TotalCommander desktop link to public desktop ... -move /Y "%USERPROFILE%\Desktop\Total Commander*" "%PUBLIC%\Desktop\Total Commander.lnk" -icacls "%PUBLIC%\Desktop\Total Commander.lnk" /grant Users:R - -echo moving Total Commander startmenu shortcut ... -move /Y "%STARTMENU_USER%\Total Commander\Total Commander 64 bit.lnk" "%STARTMENU%\Tools\Total Commander.lnk" -icacls "%STARTMENU%\Tools\Total Commander.lnk" /grant Users:R - -echo removing Total Commander startmenu folder ... -rd /S /Q "%STARTMENU_USER%\Total Commander" 2>nul - -if EXIST %KEY% ( - echo installing license ... - copy /Y %KEY% %TARGET% -) - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set EXE=..\software\totalcommander-setup.exe +set KEY=..\software\wincmd.key +set TARGET=c:\totalcmd +set STARTMENU=%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs +set STARTMENU_USER=%APPDATA%\Microsoft\Windows\Start Menu\Programs + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing TotalCommander ... +start /wait %EXE% /AHMGDU + +echo renaming and moving TotalCommander desktop link to public desktop ... +move /Y "%USERPROFILE%\Desktop\Total Commander*" "%PUBLIC%\Desktop\Total Commander.lnk" +icacls "%PUBLIC%\Desktop\Total Commander.lnk" /grant Users:R + +echo moving Total Commander startmenu shortcut ... +move /Y "%STARTMENU_USER%\Total Commander\Total Commander 64 bit.lnk" "%STARTMENU%\Tools\Total Commander.lnk" +icacls "%STARTMENU%\Tools\Total Commander.lnk" /grant Users:R + +echo removing Total Commander startmenu folder ... +rd /S /Q "%STARTMENU_USER%\Total Commander" 2>nul + +if EXIST %KEY% ( + echo installing license ... + copy /Y %KEY% %TARGET% +) + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo ####### %0 ####### +pause + diff --git a/optional/install-vcesimulator.cmd b/optional/install-vcesimulator.cmd index 7fef814..00f0ff9 100644 --- a/optional/install-vcesimulator.cmd +++ b/optional/install-vcesimulator.cmd @@ -1,28 +1,28 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set CONFIG=config\install-vcesimulator.txt -set EXE=..\software\vce_exam_simulator_setup.exe -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - exit /b -) - -echo ####### %0 ####### - -echo installing VCE Simulator 2 ... -start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS - -echo cleanup ... -del /F /Q %STARTMENU%\"VCE Exam Simulator\VCE Exam Simulator on the Web.url" 2>nul -del /F /Q %STARTMENU%\"VCE Exam Simulator\Uninstall VCE Exam Simulator.lnk" 2>nul - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set CONFIG=config\install-vcesimulator.txt +set EXE=..\software\vce_exam_simulator_setup.exe +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing VCE Simulator 2 ... +start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS + +echo cleanup ... +del /F /Q %STARTMENU%\"VCE Exam Simulator\VCE Exam Simulator on the Web.url" 2>nul +del /F /Q %STARTMENU%\"VCE Exam Simulator\Uninstall VCE Exam Simulator.lnk" 2>nul + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo ####### %0 ####### +pause + diff --git a/optional/install-virtualbox.cmd b/optional/install-virtualbox.cmd index 20d0760..b7ed8fc 100644 --- a/optional/install-virtualbox.cmd +++ b/optional/install-virtualbox.cmd @@ -1,49 +1,49 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set EXE=..\software\virtualbox-setup.exe -set VBOXMANAGE="%ProgramFiles%\Oracle\VirtualBox\VBoxManage.exe" -set STARTMENU=%PROGRAMDATA%\"Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - exit /b -) - -echo ####### %0 ####### - -echo installing VirtualBox ... -%EXE% --silent --ignore-reboot - -echo renaming Desktop shortcut ... -move /Y "%PUBLIC%\Desktop\Oracle VM VirtualBox.lnk" ^ - "%PUBLIC%\Desktop\VirtualBox.lnk" - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -echo disabling VirtualBox update search ... -%VBOXMANAGE% setextradata global GUI/UpdateDate never - -echo moving VirtualBox startmenu shortcut ... -move /Y %STARTMENU%\"Oracle VM VirtualBox\Oracle VM VirtualBox.lnk" %STARTMENU% - -echo removing VirtualBox startmenu folder ... -rd /S /Q %STARTMENU%\"Oracle VM VirtualBox" 2>nul - -echo enabling VirtualBox bridging protocol ... -powershell -Command "Enable-NetAdapterBinding -Name '*' -ComponentID oracle_VBoxNetLwf" - -echo disabling VirtualBox bridging protocol on Host-Only network adapter ... -powershell -Command "Disable-NetAdapterBinding -Name 'VirtualBox Host-Only Network' -ComponentID oracle_VBoxNetLwf" - -echo disabling VirtualBox Host-Only network adapter ... -powershell -Command "Disable-NetAdapter -Name 'VirtualBox Host-Only Network' -Confirm:$false" - -echo showing network state: -powershell -Command "Get-NetAdapterBinding -ComponentID oracle_VBoxNetLwf" - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set EXE=..\software\virtualbox-setup.exe +set VBOXMANAGE="%ProgramFiles%\Oracle\VirtualBox\VBoxManage.exe" +set STARTMENU=%PROGRAMDATA%\"Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo installing VirtualBox ... +%EXE% --silent --ignore-reboot + +echo renaming Desktop shortcut ... +move /Y "%PUBLIC%\Desktop\Oracle VM VirtualBox.lnk" ^ + "%PUBLIC%\Desktop\VirtualBox.lnk" + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo disabling VirtualBox update search ... +%VBOXMANAGE% setextradata global GUI/UpdateDate never + +echo moving VirtualBox startmenu shortcut ... +move /Y %STARTMENU%\"Oracle VM VirtualBox\Oracle VM VirtualBox.lnk" %STARTMENU% + +echo removing VirtualBox startmenu folder ... +rd /S /Q %STARTMENU%\"Oracle VM VirtualBox" 2>nul + +echo enabling VirtualBox bridging protocol ... +powershell -Command "Enable-NetAdapterBinding -Name '*' -ComponentID oracle_VBoxNetLwf" + +echo disabling VirtualBox bridging protocol on Host-Only network adapter ... +powershell -Command "Disable-NetAdapterBinding -Name 'VirtualBox Host-Only Network' -ComponentID oracle_VBoxNetLwf" + +echo disabling VirtualBox Host-Only network adapter ... +powershell -Command "Disable-NetAdapter -Name 'VirtualBox Host-Only Network' -Confirm:$false" + +echo showing network state: +powershell -Command "Get-NetAdapterBinding -ComponentID oracle_VBoxNetLwf" + +echo ####### %0 ####### +pause + diff --git a/optional/install-vscode.cmd b/optional/install-vscode.cmd index d7ba281..309c671 100644 --- a/optional/install-vscode.cmd +++ b/optional/install-vscode.cmd @@ -1,55 +1,55 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set CONFIG=config\install-vscode.txt -set EXE=..\software\vscode-setup.exe -set MARKDOWNTABLE=..\software\markdowntable.vsix -set SFTP=..\software\sftp.vsix -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - exit /b -) - -echo ####### %0 ####### - -echo killing VisualStudio code processes... -taskkill /F /IM Code.exe 2>nul - -echo cleanup ... -del /F /Q "%PUBLIC%\Desktop\VScode.lnk" 2>nul - -echo installing Visual Studio CODE ... -start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS - -echo installing Desktop shortcut ... -copy /Y %STARTMENU%\"Visual Studio Code\Visual*.lnk" "%PUBLIC%\Desktop" -move /Y "%PUBLIC%\Desktop\Visual*.lnk" "%PUBLIC%\Desktop\VScode.lnk" - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -echo moving VScode startmenu shortcut ... -move /Y %STARTMENU%\"Visual Studio Code\Visual*.lnk" %STARTMENU% - -echo removing VScode startmenu folder ... -rd /S /Q %STARTMENU%\"Visual Studio Code" 2>nul - -echo ####### %0 ####### - -rem set filetypes ... -if EXIST ..\scripts\set-filetypes.cmd ( - call ..\scripts\set-filetypes.cmd -) - -rem IMPORTANT! THIS must be the last action -rem - for some reason stupid VScode is killing the script after executing ... - -echo adding VScode plugins ... -"%ProgramFiles%\Microsoft VS Code\bin\code" ^ - --extensions-dir "%ProgramFiles%\Microsoft VS Code\resources\app\extensions" ^ - --install-extension %MARKDOWNTABLE% --install-extension %SFTP% 2>nul - - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set CONFIG=config\install-vscode.txt +set EXE=..\software\vscode-setup.exe +set MARKDOWNTABLE=..\software\markdowntable.vsix +set SFTP=..\software\sftp.vsix +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo killing VisualStudio code processes... +taskkill /F /IM Code.exe 2>nul + +echo cleanup ... +del /F /Q "%PUBLIC%\Desktop\VScode.lnk" 2>nul + +echo installing Visual Studio CODE ... +start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS + +echo installing Desktop shortcut ... +copy /Y %STARTMENU%\"Visual Studio Code\Visual*.lnk" "%PUBLIC%\Desktop" +move /Y "%PUBLIC%\Desktop\Visual*.lnk" "%PUBLIC%\Desktop\VScode.lnk" + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo moving VScode startmenu shortcut ... +move /Y %STARTMENU%\"Visual Studio Code\Visual*.lnk" %STARTMENU% + +echo removing VScode startmenu folder ... +rd /S /Q %STARTMENU%\"Visual Studio Code" 2>nul + +echo ####### %0 ####### + +rem set filetypes ... +if EXIST ..\scripts\set-filetypes.cmd ( + call ..\scripts\set-filetypes.cmd +) + +rem IMPORTANT! THIS must be the last action +rem - for some reason stupid VScode is killing the script after executing ... + +echo adding VScode plugins ... +"%ProgramFiles%\Microsoft VS Code\bin\code" ^ + --extensions-dir "%ProgramFiles%\Microsoft VS Code\resources\app\extensions" ^ + --install-extension %MARKDOWNTABLE% --install-extension %SFTP% 2>nul + + diff --git a/optional/install-wezterm.cmd b/optional/install-wezterm.cmd index b26f0db..7290ec9 100644 --- a/optional/install-wezterm.cmd +++ b/optional/install-wezterm.cmd @@ -1,31 +1,31 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set CONFIG=config\install-wezterm.txt -set EXE=..\software\wezterm-setup.exe -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - exit /b -) - -echo ####### %0 ####### - -echo killing WezTerm processes... -taskkill /F /IM wezterm-gui.exe 2>nul - -echo installing WezTerm ... -start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS - -echo copy startmenu link ... -copy /Y startmenu\WezTerm.lnk %STARTMENU% -copy /Y startmenu\WezTerm.lnk %PUBLIC%\Desktop - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set CONFIG=config\install-wezterm.txt +set EXE=..\software\wezterm-setup.exe +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo killing WezTerm processes... +taskkill /F /IM wezterm-gui.exe 2>nul + +echo installing WezTerm ... +start /wait %EXE% /LOADINF=%CONFIG% /NORESTART /NOCANCEL /SILENT /SUPPRESSMSGBOXES /CLOSEAPPLICATIONS + +echo copy startmenu link ... +copy /Y startmenu\WezTerm.lnk %STARTMENU% +copy /Y startmenu\WezTerm.lnk %PUBLIC%\Desktop + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo ####### %0 ####### +pause + diff --git a/optional/install-winauth.cmd b/optional/install-winauth.cmd index e1122ac..273889e 100644 --- a/optional/install-winauth.cmd +++ b/optional/install-winauth.cmd @@ -1,27 +1,27 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set ZIP=..\software\winauth.zip -set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" - -if NOT EXIST %ZIP% ( - echo ERROR: %ZIP% not found! - exit /b -) - -echo ####### %0 ####### - -echo killing WinAuth processes... -taskkill /F /IM winauth.exe 2>nul - -echo unpacking WinAuth ... -7z x -y -aoa -o"%ProgramFiles(x86)%" %ZIP% - -echo copy startmenu link ... -copy /Y startmenu\WinAuth.lnk %STARTMENU% -copy /Y startmenu\WinAuth.lnk %PUBLIC%\Desktop - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set ZIP=..\software\winauth.zip +set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs" + +if NOT EXIST %ZIP% ( + echo ERROR: %ZIP% not found! + exit /b +) + +echo ####### %0 ####### + +echo killing WinAuth processes... +taskkill /F /IM winauth.exe 2>nul + +echo unpacking WinAuth ... +7z x -y -aoa -o"%ProgramFiles(x86)%" %ZIP% + +echo copy startmenu link ... +copy /Y startmenu\WinAuth.lnk %STARTMENU% +copy /Y startmenu\WinAuth.lnk %PUBLIC%\Desktop + +echo ####### %0 ####### +pause + diff --git a/optional/install-wireshark.cmd b/optional/install-wireshark.cmd index 7549fe7..cc8c6be 100644 --- a/optional/install-wireshark.cmd +++ b/optional/install-wireshark.cmd @@ -1,31 +1,31 @@ -@echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b - -set T=%SystemDrive%\TEMP -set EXE=..\software\wireshark-setup.exe - -if NOT EXIST %EXE% ( - echo ERROR: %EXE% not found! - exit /b -) - -echo ####### %0 ####### - -echo extracting npcap ... -7z e -aoa -o%T% %EXE% npcap*.exe 1>nul 2>nul -move /Y %T%\npcap*.exe %T%\npcap.exe - -echo installing npcap ... -start /wait %T%\npcap.exe -del /F /Q %T%\npcap.exe 2>nul - -echo installing WireShark ... -start /wait %EXE% /S - -rem refresh desktop (W10 style) -ie4uinit.exe -show - -echo ####### %0 ####### -pause - +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set T=%SystemDrive%\TEMP +set EXE=..\software\wireshark-setup.exe + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo extracting npcap ... +7z e -aoa -o%T% %EXE% npcap*.exe 1>nul 2>nul +move /Y %T%\npcap*.exe %T%\npcap.exe + +echo installing npcap ... +start /wait %T%\npcap.exe +del /F /Q %T%\npcap.exe 2>nul + +echo installing WireShark ... +start /wait %EXE% /S + +rem refresh desktop (W10 style) +ie4uinit.exe -show + +echo ####### %0 ####### +pause + diff --git a/optional/uninstall-telemetry.cmd b/optional/uninstall-telemetry.cmd index 05334fe..da7f1d7 100644 --- a/optional/uninstall-telemetry.cmd +++ b/optional/uninstall-telemetry.cmd @@ -1,212 +1,212 @@ -@echo off -call check-for-admin - -echo ####### %0 ####### -rem most of this was took from: -rem https://forum.level1techs.com/t/take-back-your-windows-10-privacy/143097/2 -rem THANKS! - -echo. -echo WARNING: executing this script may cripple some important functions in windows! -echo especially the STORE APP will not work anymore - and it will be removed by this script! - -echo. -echo WARNING: system will be REBOOTED after modify! -echo SAVE YOUR WORK AND COME BACK! -echo. - -set answer= -:ask - set /p answer="REALLY remove all Microsoft telemetry (Y/N)? " - if /i "%answer:~,1%" EQU "Y" ( - GOTO CONT - ) - if /i "%answer:~,1%" EQU "N" ( - echo ABORTED. - exit /b - ) - echo Please type Y or N. - goto ask -:CONT - -echo. -echo OK ... trying to remove ALL the stupid fucking microsoft TELEMETRY BULLSHIT! - -echo. -echo ADDING some registry keys to disable telemetry ... -reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\PhishingFilter" ^ - /v "EnabledV9" /t REG_DWORD /d "0" /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\MicrosoftEdge\PhishingFilter" /v "EnabledV9" /t REG_DWORD /d 0 /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v AITEnable /t REG_DWORD /d 0 /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v DisableInventory /t REG_DWORD /d 1 /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v DisablePCA /t REG_DWORD /d 1 /f -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v DisableUAR /t REG_DWORD /d 1 /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v SpyNetReporting /t REG_DWORD /d 0 /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v SubmitSamplesConsent /t REG_DWORD /d 2 /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v DontReportInfectionInformation /t REG_DWORD /d 1 /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v AllowGameDVR /t REG_DWORD /d 0 /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 0 /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 2 /f -reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableSoftLanding /t REG_DWORD /d 1 /f -reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsSpotlightFeatures /t REG_DWORD /d 1 /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontReportInfectionInformation" /t REG_DWORD /d 1 /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontOfferThroughWUAU" /t REG_DWORD /d 1 /f -reg add "HKLM\Software\Policies\Microsoft\WindowsStore" /v RemoveWindowsStore /t REG_DWORD /d 1 /f -reg add "HKLM\Software\Policies\Microsoft\WindowsStore" /v DisableStoreApps /t REG_DWORD /d 1 /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\PushToInstall" /v DisablePushToInstall /t REG_DWORD /d 1 /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v "DisableConfig" /t "REG_DWORD" /d "1" /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v "DisableSR " /t "REG_DWORD" /d "1" /f -reg add "HKLM\Software\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform" /v NoGenTicket /t REG_DWORD /d 1 /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AllowCortana /t REG_DWORD /d 0 /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "EnableSmartScreen" /t REG_DWORD /d 0 /f -reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v "DisableConfig" /t "REG_DWORD" /d "1" /f -reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v "DisableSR " /t "REG_DWORD" /d "1" /f -reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SecHealthUI.exe" /v Debugger ^ - /t REG_SZ /d "%windir%\System32\taskkill.exe" /f -reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\CompatTelRunner.exe" /v Debugger ^ - /t REG_SZ /d "%windir%\System32\taskkill.exe" /f -reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\DeviceCensus.exe" /v Debugger ^ - /t REG_SZ /d "%windir%\System32\taskkill.exe" /f -reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v SmartScreenEnabled /t REG_SZ /d "Off" /f -reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /t REG_DWORD /d "0" /f -reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.SecurityAndMaintenance" ^ - /v "Enabled" /t REG_DWORD /d 0 /f -reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /t REG_DWORD /d 0 /f -reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SilentInstalledAppsEnabled /t REG_DWORD /d 0 /f -reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoRecentDocsHistory" /t REG_DWORD /d 1 /f -reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f -reg add "HKCU\Software\Microsoft\Internet Explorer\PhishingFilter" /v "EnabledV9" /t REG_DWORD /d 0 /f -reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsConsumerFeatures /t REG_DWORD /d 1 /f -reg add "HKLM\Software\Policies\Microsoft\Windows\DataCollection" /v DoNotShowFeedbackNotifications /t REG_DWORD /d 1 /f -reg add "HKLM\Software\Policies\Microsoft\WindowsInkWorkspace" /v AllowSuggestedAppsInWindowsInkWorkspace /t REG_DWORD /d 0 /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v ScheduledInstallDay /t REG_DWORD /d 0 /f -reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v ScheduledInstallTime /t REG_DWORD /d 3 /f -reg add "HKLM\Software\Policies\Microsoft\Windows\SettingSync" /v DisableSettingSync /t REG_DWORD /d 2 /f -reg add "HKLM\Software\Policies\Microsoft\Windows\SettingSync" /v DisableSettingSyncUserOverride /t REG_DWORD /d 1 /f -reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Siuf\Rules" /v "NumberOfSIUFInPeriod" /t REG_DWORD /d 0 /f -reg add "HKLM\SYSTEM\ControlSet001\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener" /v Start /t REG_DWORD /d 0 /f -reg add "HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\FirewallRules" /v "{2765E0F4-2918-4A46-B9C9-43CDD8FCBA2B}" ^ - /t REG_SZ /d "BlockCortana|Action=Block|Active=TRUE|Dir=Out|App=C:\windows\systemapps\microsoft.windows.cortana_cw5n1h2txyewy\searchui.exe|Name=Search and Cortana application|AppPkgId=S-1-15-2-1861897761-1695161497-2927542615-642690995-327840285-2659745135-2630312742|" /f - -echo. -echo DELETING some registry keys to disable telemetry ... -reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Siuf\Rules" /v "PeriodInNanoSeconds" /f -reg delete "HKLM\SYSTEM\CurrentControlSet\Services\xbgm" /f -reg delete "HKLM\SYSTEM\CurrentControlSet\Services\Sense" /f -reg delete "HKLM\SYSTEM\CurrentControlSet\Services\SecurityHealthService" /f -reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "SecurityHealth" /f -reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run" /v "SecurityHealth" /f -for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ - /k /f "wscsvc" ^| find /i "wscsvc"') do (reg delete %%I /f) -for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ - /k /f "OneSyncSvc" ^| find /i "OneSyncSvc"') do (reg delete %%I /f) -for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ - /k /f "MessagingService" ^| find /i "MessagingService"') do (reg delete %%I /f) -for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ - /k /f "PimIndexMaintenanceSvc" ^| find /i "PimIndexMaintenanceSvc"') do (reg delete %%I /f) -for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ - /k /f "UserDataSvc" ^| find /i "UserDataSvc"') do (reg delete %%I /f) -for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ - /k /f "UnistoreSvc" ^| find /i "UnistoreSvc"') do (reg delete %%I /f) -for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ - /k /f "BcastDVRUserService" ^| find /i "BcastDVRUserService"') do (reg delete %%I /f) -for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ - /k /f "Sgrmbroker" ^| find /i "Sgrmbroker"') do (reg delete %%I /f) -for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ - /k /f "ClipSVC" ^| find /i "ClipSVC"') do (reg delete %%I /f) - -echo. -echo DELETING some services ... -sc delete PushToInstall -sc delete XblAuthManager -sc delete XblGameSave -sc delete XboxNetApiSvc -sc delete XboxGipSvc -sc delete MapsBroker -sc delete lfsvc -sc delete DiagTrack -sc delete dmwappushservice -sc delete WerSvc -sc delete OneSyncSvc -sc delete MessagingService -sc delete wercplsupport -sc delete PcaSvc -sc delete wisvc -sc delete RetailDemo -sc delete diagsvc -sc delete shpamsvc -sc delete TermService -sc delete UmRdpService -sc delete SessionEnv -sc delete TroubleshootingSvc -sc delete diagnosticshub.standardcollector.service - -echo. -echo RECONFIGURING some services ... -sc config wlidsvc start=demand - -echo. -echo DISABLING some tasks ... -schtasks /Change /TN "Microsoft\XblGameSave\XblGameSaveTask" /disable -schtasks /Change /TN "Microsoft\XblGameSave\XblGameSaveTaskLogon" /disable -schtasks /Change /TN "\Microsoft\Windows\Maps\MapsUpdateTask" /disable -schtasks /Change /TN "\Microsoft\Windows\Maps\MapsToastTask" /disable -schtasks /Change /TN "\Microsoft\Windows\HelloFace\FODCleanupTask" /Disable -schtasks /Change /TN "\Microsoft\Windows\SystemRestore\SR" /disable -schtasks /Change /TN "Microsoft\Windows\AppID\SmartScreenSpecific" /disable -schtasks /Change /TN "Microsoft\Windows\Application Experience\AitAgent" /disable -schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /disable -schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /disable -schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /disable -schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /disable -schtasks /Change /TN "Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /disable -schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\BthSQM" /disable -schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /disable -schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /disable -schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Uploader" /disable -schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /disable -schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /disable -schtasks /Change /TN "Microsoft\Windows\DiskFootprint\Diagnostics" /disable -schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance mode)" /disable -schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /disable -schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /disable -schtasks /Change /TN "Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /disable -schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyMonitor" /disable -schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyRefresh" /disable -schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyUpload" /disable -schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /disable -schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\Automatic App Update" /disable -schtasks /Change /TN "Microsoft\Windows\License Manager\TempSignedLicenseExchange" /disable -schtasks /Change /TN "Microsoft\Windows\Clip\License Validation" /disable -schtasks /Change /TN "\Microsoft\Windows\ApplicationData\DsSvcCleanup" /disable -schtasks /Change /TN "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /disable -schtasks /Change /TN "\Microsoft\Windows\PushToInstall\LoginCheck" /disable -schtasks /Change /TN "\Microsoft\Windows\PushToInstall\Registration" /disable -schtasks /Change /TN "\Microsoft\Windows\Shell\FamilySafetyMonitor" /disable -schtasks /Change /TN "\Microsoft\Windows\Shell\FamilySafetyMonitorToastTask" /disable -schtasks /Change /TN "\Microsoft\Windows\Shell\FamilySafetyRefreshTask" /disable -schtasks /Change /TN "\Microsoft\Windows\Subscription\EnableLicenseAcquisition" /disable -schtasks /Change /TN "\Microsoft\Windows\Subscription\LicenseAcquisition" /disable -schtasks /Change /TN "\Microsoft\Windows\Diagnosis\RecommendedTroubleshootingScanner" /disable -schtasks /Change /TN "\Microsoft\Windows\Diagnosis\Scheduled" /disable -schtasks /Change /TN "\Microsoft\Windows\NetTrace\GatherNetworkInfo" /disable - -echo. -echo DELETING shadow copies ... -vssadmin delete shadows /all /Quiet - -echo. -echo DELETING some files ... -del /F /Q "C:\Windows\System32\Tasks\Microsoft\Windows\SettingSync\*" - -echo. -echo REMOVING the store ... -powershell -Command ./uninstall-store.ps1 - -echo. -echo ####### %0 ####### -pause -shutdown -g -t 0 - +@echo off +call check-for-admin + +echo ####### %0 ####### +rem most of this was took from: +rem https://forum.level1techs.com/t/take-back-your-windows-10-privacy/143097/2 +rem THANKS! + +echo. +echo WARNING: executing this script may cripple some important functions in windows! +echo especially the STORE APP will not work anymore - and it will be removed by this script! + +echo. +echo WARNING: system will be REBOOTED after modify! +echo SAVE YOUR WORK AND COME BACK! +echo. + +set answer= +:ask + set /p answer="REALLY remove all Microsoft telemetry (Y/N)? " + if /i "%answer:~,1%" EQU "Y" ( + GOTO CONT + ) + if /i "%answer:~,1%" EQU "N" ( + echo ABORTED. + exit /b + ) + echo Please type Y or N. + goto ask +:CONT + +echo. +echo OK ... trying to remove ALL the stupid fucking microsoft TELEMETRY BULLSHIT! + +echo. +echo ADDING some registry keys to disable telemetry ... +reg add "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Storage\microsoft.microsoftedge_8wekyb3d8bbwe\MicrosoftEdge\PhishingFilter" ^ + /v "EnabledV9" /t REG_DWORD /d "0" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\MicrosoftEdge\PhishingFilter" /v "EnabledV9" /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v AITEnable /t REG_DWORD /d 0 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v DisableInventory /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v DisablePCA /t REG_DWORD /d 1 /f +reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\AppCompat" /v DisableUAR /t REG_DWORD /d 1 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v SpyNetReporting /t REG_DWORD /d 0 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v SubmitSamplesConsent /t REG_DWORD /d 2 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender\Spynet" /v DontReportInfectionInformation /t REG_DWORD /d 1 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\GameDVR" /v AllowGameDVR /t REG_DWORD /d 0 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoUpdate /t REG_DWORD /d 0 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 2 /f +reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableSoftLanding /t REG_DWORD /d 1 /f +reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsSpotlightFeatures /t REG_DWORD /d 1 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontReportInfectionInformation" /t REG_DWORD /d 1 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\MRT" /v "DontOfferThroughWUAU" /t REG_DWORD /d 1 /f +reg add "HKLM\Software\Policies\Microsoft\WindowsStore" /v RemoveWindowsStore /t REG_DWORD /d 1 /f +reg add "HKLM\Software\Policies\Microsoft\WindowsStore" /v DisableStoreApps /t REG_DWORD /d 1 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\PushToInstall" /v DisablePushToInstall /t REG_DWORD /d 1 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v "DisableConfig" /t "REG_DWORD" /d "1" /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows NT\SystemRestore" /v "DisableSR " /t "REG_DWORD" /d "1" /f +reg add "HKLM\Software\Policies\Microsoft\Windows NT\CurrentVersion\Software Protection Platform" /v NoGenTicket /t REG_DWORD /d 1 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search" /v AllowCortana /t REG_DWORD /d 0 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\System" /v "EnableSmartScreen" /t REG_DWORD /d 0 /f +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v "DisableConfig" /t "REG_DWORD" /d "1" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore" /v "DisableSR " /t "REG_DWORD" /d "1" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\SecHealthUI.exe" /v Debugger ^ + /t REG_SZ /d "%windir%\System32\taskkill.exe" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\CompatTelRunner.exe" /v Debugger ^ + /t REG_SZ /d "%windir%\System32\taskkill.exe" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\DeviceCensus.exe" /v Debugger ^ + /t REG_SZ /d "%windir%\System32\taskkill.exe" /f +reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" /v SmartScreenEnabled /t REG_SZ /d "Off" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /t REG_DWORD /d "0" /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Notifications\Settings\Windows.SystemToast.SecurityAndMaintenance" ^ + /v "Enabled" /t REG_DWORD /d 0 /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\AppHost" /v "EnableWebContentEvaluation" /t REG_DWORD /d 0 /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\ContentDeliveryManager" /v SilentInstalledAppsEnabled /t REG_DWORD /d 0 /f +reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer" /v "NoRecentDocsHistory" /t REG_DWORD /d 1 /f +reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting" /v Disabled /t REG_DWORD /d 1 /f +reg add "HKCU\Software\Microsoft\Internet Explorer\PhishingFilter" /v "EnabledV9" /t REG_DWORD /d 0 /f +reg add "HKLM\Software\Policies\Microsoft\Windows\CloudContent" /v DisableWindowsConsumerFeatures /t REG_DWORD /d 1 /f +reg add "HKLM\Software\Policies\Microsoft\Windows\DataCollection" /v DoNotShowFeedbackNotifications /t REG_DWORD /d 1 /f +reg add "HKLM\Software\Policies\Microsoft\WindowsInkWorkspace" /v AllowSuggestedAppsInWindowsInkWorkspace /t REG_DWORD /d 0 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v ScheduledInstallDay /t REG_DWORD /d 0 /f +reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU" /v ScheduledInstallTime /t REG_DWORD /d 3 /f +reg add "HKLM\Software\Policies\Microsoft\Windows\SettingSync" /v DisableSettingSync /t REG_DWORD /d 2 /f +reg add "HKLM\Software\Policies\Microsoft\Windows\SettingSync" /v DisableSettingSyncUserOverride /t REG_DWORD /d 1 /f +reg add "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Siuf\Rules" /v "NumberOfSIUFInPeriod" /t REG_DWORD /d 0 /f +reg add "HKLM\SYSTEM\ControlSet001\Control\WMI\AutoLogger\AutoLogger-Diagtrack-Listener" /v Start /t REG_DWORD /d 0 /f +reg add "HKLM\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\FirewallRules" /v "{2765E0F4-2918-4A46-B9C9-43CDD8FCBA2B}" ^ + /t REG_SZ /d "BlockCortana|Action=Block|Active=TRUE|Dir=Out|App=C:\windows\systemapps\microsoft.windows.cortana_cw5n1h2txyewy\searchui.exe|Name=Search and Cortana application|AppPkgId=S-1-15-2-1861897761-1695161497-2927542615-642690995-327840285-2659745135-2630312742|" /f + +echo. +echo DELETING some registry keys to disable telemetry ... +reg delete "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Siuf\Rules" /v "PeriodInNanoSeconds" /f +reg delete "HKLM\SYSTEM\CurrentControlSet\Services\xbgm" /f +reg delete "HKLM\SYSTEM\CurrentControlSet\Services\Sense" /f +reg delete "HKLM\SYSTEM\CurrentControlSet\Services\SecurityHealthService" /f +reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "SecurityHealth" /f +reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\StartupApproved\Run" /v "SecurityHealth" /f +for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ + /k /f "wscsvc" ^| find /i "wscsvc"') do (reg delete %%I /f) +for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ + /k /f "OneSyncSvc" ^| find /i "OneSyncSvc"') do (reg delete %%I /f) +for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ + /k /f "MessagingService" ^| find /i "MessagingService"') do (reg delete %%I /f) +for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ + /k /f "PimIndexMaintenanceSvc" ^| find /i "PimIndexMaintenanceSvc"') do (reg delete %%I /f) +for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ + /k /f "UserDataSvc" ^| find /i "UserDataSvc"') do (reg delete %%I /f) +for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ + /k /f "UnistoreSvc" ^| find /i "UnistoreSvc"') do (reg delete %%I /f) +for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ + /k /f "BcastDVRUserService" ^| find /i "BcastDVRUserService"') do (reg delete %%I /f) +for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ + /k /f "Sgrmbroker" ^| find /i "Sgrmbroker"') do (reg delete %%I /f) +for /f "tokens=1" %%I in ('reg query "HKLM\SYSTEM\CurrentControlSet\Services" ^ + /k /f "ClipSVC" ^| find /i "ClipSVC"') do (reg delete %%I /f) + +echo. +echo DELETING some services ... +sc delete PushToInstall +sc delete XblAuthManager +sc delete XblGameSave +sc delete XboxNetApiSvc +sc delete XboxGipSvc +sc delete MapsBroker +sc delete lfsvc +sc delete DiagTrack +sc delete dmwappushservice +sc delete WerSvc +sc delete OneSyncSvc +sc delete MessagingService +sc delete wercplsupport +sc delete PcaSvc +sc delete wisvc +sc delete RetailDemo +sc delete diagsvc +sc delete shpamsvc +sc delete TermService +sc delete UmRdpService +sc delete SessionEnv +sc delete TroubleshootingSvc +sc delete diagnosticshub.standardcollector.service + +echo. +echo RECONFIGURING some services ... +sc config wlidsvc start=demand + +echo. +echo DISABLING some tasks ... +schtasks /Change /TN "Microsoft\XblGameSave\XblGameSaveTask" /disable +schtasks /Change /TN "Microsoft\XblGameSave\XblGameSaveTaskLogon" /disable +schtasks /Change /TN "\Microsoft\Windows\Maps\MapsUpdateTask" /disable +schtasks /Change /TN "\Microsoft\Windows\Maps\MapsToastTask" /disable +schtasks /Change /TN "\Microsoft\Windows\HelloFace\FODCleanupTask" /Disable +schtasks /Change /TN "\Microsoft\Windows\SystemRestore\SR" /disable +schtasks /Change /TN "Microsoft\Windows\AppID\SmartScreenSpecific" /disable +schtasks /Change /TN "Microsoft\Windows\Application Experience\AitAgent" /disable +schtasks /Change /TN "Microsoft\Windows\Application Experience\Microsoft Compatibility Appraiser" /disable +schtasks /Change /TN "Microsoft\Windows\Application Experience\ProgramDataUpdater" /disable +schtasks /Change /TN "Microsoft\Windows\Application Experience\StartupAppTask" /disable +schtasks /Change /TN "Microsoft\Windows\Autochk\Proxy" /disable +schtasks /Change /TN "Microsoft\Windows\CloudExperienceHost\CreateObjectTask" /disable +schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\BthSQM" /disable +schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Consolidator" /disable +schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\KernelCeipTask" /disable +schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\Uploader" /disable +schtasks /Change /TN "Microsoft\Windows\Customer Experience Improvement Program\UsbCeip" /disable +schtasks /Change /TN "Microsoft\Windows\DiskDiagnostic\Microsoft-Windows-DiskDiagnosticDataCollector" /disable +schtasks /Change /TN "Microsoft\Windows\DiskFootprint\Diagnostics" /disable +schtasks /Change /TN "Microsoft\Windows\FileHistory\File History (maintenance mode)" /disable +schtasks /Change /TN "Microsoft\Windows\Maintenance\WinSAT" /disable +schtasks /Change /TN "Microsoft\Windows\PI\Sqm-Tasks" /disable +schtasks /Change /TN "Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /disable +schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyMonitor" /disable +schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyRefresh" /disable +schtasks /Change /TN "Microsoft\Windows\Shell\FamilySafetyUpload" /disable +schtasks /Change /TN "Microsoft\Windows\Windows Error Reporting\QueueReporting" /disable +schtasks /Change /TN "Microsoft\Windows\WindowsUpdate\Automatic App Update" /disable +schtasks /Change /TN "Microsoft\Windows\License Manager\TempSignedLicenseExchange" /disable +schtasks /Change /TN "Microsoft\Windows\Clip\License Validation" /disable +schtasks /Change /TN "\Microsoft\Windows\ApplicationData\DsSvcCleanup" /disable +schtasks /Change /TN "\Microsoft\Windows\Power Efficiency Diagnostics\AnalyzeSystem" /disable +schtasks /Change /TN "\Microsoft\Windows\PushToInstall\LoginCheck" /disable +schtasks /Change /TN "\Microsoft\Windows\PushToInstall\Registration" /disable +schtasks /Change /TN "\Microsoft\Windows\Shell\FamilySafetyMonitor" /disable +schtasks /Change /TN "\Microsoft\Windows\Shell\FamilySafetyMonitorToastTask" /disable +schtasks /Change /TN "\Microsoft\Windows\Shell\FamilySafetyRefreshTask" /disable +schtasks /Change /TN "\Microsoft\Windows\Subscription\EnableLicenseAcquisition" /disable +schtasks /Change /TN "\Microsoft\Windows\Subscription\LicenseAcquisition" /disable +schtasks /Change /TN "\Microsoft\Windows\Diagnosis\RecommendedTroubleshootingScanner" /disable +schtasks /Change /TN "\Microsoft\Windows\Diagnosis\Scheduled" /disable +schtasks /Change /TN "\Microsoft\Windows\NetTrace\GatherNetworkInfo" /disable + +echo. +echo DELETING shadow copies ... +vssadmin delete shadows /all /Quiet + +echo. +echo DELETING some files ... +del /F /Q "C:\Windows\System32\Tasks\Microsoft\Windows\SettingSync\*" + +echo. +echo REMOVING the store ... +powershell -Command ./uninstall-store.ps1 + +echo. +echo ####### %0 ####### +pause +shutdown -g -t 0 + diff --git a/scripts/autoconfig.cmd b/scripts/autoconfig.cmd index fa0859b..55236cb 100644 --- a/scripts/autoconfig.cmd +++ b/scripts/autoconfig.cmd @@ -122,6 +122,10 @@ rem put vnc in place ... call unpack-vnc.cmd echo. +rem put office deployment tool in place ... +call unpack-officedeploymenttool.cmd +echo. + rem unpack all the other zipfiles ... call unpack-zipfiles.cmd echo. diff --git a/scripts/copy-executables.cmd b/scripts/copy-executables.cmd index 9a22c9c..0279438 100644 --- a/scripts/copy-executables.cmd +++ b/scripts/copy-executables.cmd @@ -16,6 +16,7 @@ for %%E in ( rdp.exe anydesk.exe superuser.exe + isodownloader.exe ) do ( diff --git a/scripts/unpack-officedeploymenttool.cmd b/scripts/unpack-officedeploymenttool.cmd new file mode 100644 index 0000000..88ea605 --- /dev/null +++ b/scripts/unpack-officedeploymenttool.cmd @@ -0,0 +1,29 @@ +@echo off + +set SCRIPTS=..\scripts +set SOFTWARE=..\software +set T=%SystemDrive%\TEMP +set TOOLS=%SystemDrive%\tools +set EXE=officedeploymenttool-setup.exe + +if NOT EXIST %SOFTWARE%\%EXE% ( + echo ERROR: %SOFTWARE%\%EXE% not found! + exit /b +) + +echo ####### %0 ####### + +echo unpacking office deployment tool (Microsoft) ... +cd %SOFTWARE% +@echo on +%EXE% /extract:%T% /quiet /passive +@echo off +cd %SCRIPTS% + +echo moving binary to tools folder ... +move /Y %T%\setup.exe %TOOLS%\officedeploymenttool.exe +del /F /Q %T%\setup.exe 1>nul 2>nul +del /F /Q %T%\configuration*.xml 1>nul 2>nul + +echo ####### %0 ####### + diff --git a/software/basic.csv b/software/basic.csv index e623bee..0c5ea09 100644 --- a/software/basic.csv +++ b/software/basic.csv @@ -55,3 +55,4 @@ https://github.com/massgravel/Microsoft-Activation-Scripts/archive/refs/heads/ma https://github.com/stascorp/rdpwrap/releases/download/v1.6.2/RDPWrap-v1.6.2.zip rdpwrap.zip https://www.donkz.nl/download/remote-desktop-plus/?tmstv=1706629805 rdp.exe https://download.anydesk.com/AnyDesk.exe anydesk.exe +https://www.heidoc.net/php/Windows-ISO-Downloader.exe isodownloader.exe diff --git a/software/download-msoffice-from-source.cmd b/software/download-msoffice-from-source.cmd new file mode 100644 index 0000000..2ef91da --- /dev/null +++ b/software/download-msoffice-from-source.cmd @@ -0,0 +1,24 @@ +@echo off +set T=%SystemDrive%\TEMP +set EXE=officedeploymenttool-setup.exe +set CONFIG=..\optional\config\office2019-standard.xml + +if NOT EXIST %EXE% ( + echo ERROR: %EXE% not found! + echo HINT: use "download-from-source optional" + exit /b +) + +echo unpacking office deployment tool ... +%EXE% /extract:%T% /quiet /passive + +echo starting download ... +%T%\setup.exe /download %CONFIG% + +echo packing files with 7zip... +7z a -aoa -r -y -mx0 -sdel office2019-standard %T%\Office + +rem cleanup ... +del /F /Q %T%\setup.exe 1>nul 2>nul +del /F /Q %T%\configuration*.xml 1>nul 2>nul +rd /S /Q %T%\Office 2>nul diff --git a/software/optional.csv b/software/optional.csv index b1c2bfc..8fdcaaf 100644 --- a/software/optional.csv +++ b/software/optional.csv @@ -38,3 +38,4 @@ https://www.heidisql.com/installers/HeidiSQL_12.3.0.6589_Setup.exe heidisql-setu https://github.com/jgraph/drawio-desktop/releases/download/v21.6.5/draw.io-21.6.5.msi drawio-setup.msi https://2.na.dl.wireshark.org/win64/Wireshark-win64-4.0.7.exe wireshark-setup.exe https://github.com/wez/wezterm/releases/download/20230712-072601-f4abf8fd/WezTerm-20230712-072601-f4abf8fd-setup.exe wezterm-setup.exe +https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_17830-20162.exe officedeploymenttool-setup.exe