w10install/optional/install-softmaker.cmd

140 lines
4.8 KiB
Batchfile
Raw Normal View History

2021-01-12 22:04:21 +01:00
@echo off
2021-03-06 16:23:00 +01:00
set OPT=..\optional
2022-06-19 19:13:19 +02:00
set CONFIG=config
2021-01-12 22:04:21 +01:00
set SOFTWARE=..\software
2021-02-27 20:07:28 +01:00
set MSI=softmaker-setup.msi
2022-06-19 11:28:23 +02:00
set SETTINGS=..\company\settings.cmd
set softmaker_license=0
2021-03-14 10:56:14 +01:00
set STARTMENU="%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs"
2021-01-12 22:04:21 +01:00
2021-02-27 20:07:28 +01:00
if NOT EXIST %SOFTWARE%\%MSI% (
echo ERROR: %SOFTWARE%\%MSI% not found!
exit /b
)
2021-01-12 22:04:21 +01:00
rem ===================
rem CONFIGFILE CHECK
rem ===================
if NOT EXIST %SETTINGS% (
echo.
echo WARNING: %SETTINGS% NOT FOUND
echo.
2021-09-05 11:21:52 +02:00
) else (
call %SETTINGS%
)
2021-01-12 22:04:21 +01:00
echo ####### %0 #######
cd %SOFTWARE%
@echo on
2021-08-29 23:43:20 +02:00
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
2021-01-12 22:04:21 +01:00
@echo off
2021-01-12 22:06:57 +01:00
del /F c:\temp\softmaker.log
2021-03-06 16:23:00 +01:00
cd %OPT%
2021-01-12 22:04:21 +01:00
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
2021-03-06 16:23:00 +01:00
rem refresh desktop (W10 style)
ie4uinit.exe -show
2021-03-14 10:56:14 +01:00
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
2021-08-29 23:34:25 +02:00
echo disabling License Management ...
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\SoftMaker\SoftMaker Office 2021" ^
/v "HelpManage" /d 0 /t REG_DWORD /f
2021-03-14 10:56:14 +01:00
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
2021-03-14 10:56:14 +01:00
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
2021-08-29 23:34:25 +02:00
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
2022-06-19 19:13:19 +02:00
echo copying .ini files ...
mkdir %USERPROFILE%\Documents\SoftMaker\Settings 2>nul
copy /Y %CONFIG%\*21config.ini %USERPROFILE%\Documents\SoftMaker\Settings
echo preparing Softmaker documents folders ...
for %%D in (
"Backup"
"Bullets"
"Samples"
"PlanMaker 2021 templates"
"Presentations 2021 designs"
"TextMaker 2021 templates"
) do (
mkdir %USERPROFILE%\Documents\SoftMaker\%%D 2>/nul
attrib +R %USERPROFILE%\Documents\SoftMaker\%%D 2>/nul
)
2021-08-29 23:34:25 +02:00
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" ^
2021-09-05 11:21:52 +02:00
/v "ProductKey" /d "%softmaker_license%" /t REG_SZ /f
)
2021-01-12 22:04:21 +01:00
echo ####### %0 #######
2021-03-02 21:47:42 +01:00
pause
2021-01-12 22:04:21 +01:00