diff --git a/image/CopyTools.cmd b/image/CopyTools.cmd index 3caad77..99dc09b 100644 --- a/image/CopyTools.cmd +++ b/image/CopyTools.cmd @@ -20,6 +20,9 @@ echo killing Desktopinfo ... taskkill /F /IM DesktopInfo64.exe 2>nul echo. +echo saving snapcontrol.ini ... +copy /Y %TOOLS%\snapcontrol.ini %SystemDrive% 1>nul 2>nul + echo deleting %TOOLS% ... takeown /F %TOOLS% /R /D Y 1>nul rd /S /Q %TOOLS% 2>nul @@ -60,6 +63,9 @@ echo. call install-git.cmd echo. +echo moving snapcontrol.ini back to tools folder ... +move /Y %SystemDrive%\snapcontrol.ini %TOOLS% 1>nul 2>nul + echo setting permissions for [ %TOOLS% ] ... cd /D %SystemDrive%\ takeown /F %TOOLS% /R /A /D Y 1>nul diff --git a/optional/config/ofw24config.ini b/optional/config/ofw24config.ini new file mode 100644 index 0000000..ad556c6 --- /dev/null +++ b/optional/config/ofw24config.ini @@ -0,0 +1,5 @@ +[ofw] +AutoSave=0 +AutoTime=1 +BackupType=0 +UpdateCheckEnabled=0 diff --git a/optional/config/pmw24config.ini b/optional/config/pmw24config.ini new file mode 100644 index 0000000..de45265 --- /dev/null +++ b/optional/config/pmw24config.ini @@ -0,0 +1,5 @@ +[pmw] +AutoSave=0 +AutoTime=1 +BackupType=0 +UpdateCheckEnabled=0 diff --git a/optional/config/prw24config.ini b/optional/config/prw24config.ini new file mode 100644 index 0000000..31245b3 --- /dev/null +++ b/optional/config/prw24config.ini @@ -0,0 +1,5 @@ +[prw] +AutoSave=0 +AutoTime=1 +BackupType=0 +UpdateCheckEnabled=0 diff --git a/optional/config/tmw24config.ini b/optional/config/tmw24config.ini new file mode 100644 index 0000000..57ecb2e --- /dev/null +++ b/optional/config/tmw24config.ini @@ -0,0 +1,5 @@ +[tmw] +AutoSave=0 +AutoTime=1 +BackupType=0 +UpdateCheckEnabled=0 diff --git a/optional/install-softmaker-2024.cmd b/optional/install-softmaker-2024.cmd new file mode 100644 index 0000000..8a868e1 --- /dev/null +++ b/optional/install-softmaker-2024.cmd @@ -0,0 +1,147 @@ +@echo off +call check-for-admin +if %ERRORLEVEL% neq 0 exit /b + +set OPT=..\optional +set CONFIG=config +set SOFTWARE=..\software +set MSI=softmaker-setup-2024.msi +set SETTINGS=..\company\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 +) + +rem =================== +rem CONFIGFILE CHECK +rem =================== + +if NOT EXIST %SETTINGS% ( + echo. + echo WARNING: %SETTINGS% NOT FOUND + echo. +) else ( + call %SETTINGS% +) + +echo ####### %0 ####### + +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 copying .ini files ... +mkdir %USERPROFILE%\Documents\SoftMaker\Settings 2>nul +copy /Y %CONFIG%\*24config.ini %USERPROFILE%\Documents\SoftMaker\Settings + +echo preparing Softmaker documents folders ... +for %%D in ( + + "Backup" + "Bullets" + "Samples" + "PlanMaker 2024 templates" + "Presentations 2024 designs" + "TextMaker 2024 templates" + +) do ( + + mkdir %USERPROFILE%\Documents\SoftMaker\%%D 2>/nul + attrib +R %USERPROFILE%\Documents\SoftMaker\%%D 2>/nul + +) + +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 +