From 96fc6bf340bf9dc04fc3c810543736d4411c3e32 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sat, 4 Feb 2023 20:47:47 +0100 Subject: [PATCH] added sumatra PDF and move irfanview to basic install --- scripts/autoconfig-all.cmd | 3 +++ {optional => scripts}/install-irfanview.cmd | 2 -- scripts/set-filetypes.cmd | 7 ++++--- scripts/startmenu/Sumatra PDF.lnk | Bin 0 -> 978 bytes scripts/unpack-zipfiles.cmd | 6 ++++++ software/basic.csv | 1 + 6 files changed, 14 insertions(+), 5 deletions(-) rename {optional => scripts}/install-irfanview.cmd (94%) create mode 100644 scripts/startmenu/Sumatra PDF.lnk diff --git a/scripts/autoconfig-all.cmd b/scripts/autoconfig-all.cmd index 5f52cd3..3e2216a 100644 --- a/scripts/autoconfig-all.cmd +++ b/scripts/autoconfig-all.cmd @@ -175,6 +175,9 @@ if %install_firefox% == 1 ( call install-win32diskimager.cmd echo. +call install-irfanview.cmd +echo. + call install-shortcuts.cmd echo. diff --git a/optional/install-irfanview.cmd b/scripts/install-irfanview.cmd similarity index 94% rename from optional/install-irfanview.cmd rename to scripts/install-irfanview.cmd index 8576c78..097d83a 100644 --- a/optional/install-irfanview.cmd +++ b/scripts/install-irfanview.cmd @@ -1,6 +1,4 @@ @echo off -call check-for-admin -if %ERRORLEVEL% neq 0 exit /b set EXE=..\software\iview-setup.exe set ZIP=..\software\iview-plugins.zip diff --git a/scripts/set-filetypes.cmd b/scripts/set-filetypes.cmd index a806ab5..14fa730 100644 --- a/scripts/set-filetypes.cmd +++ b/scripts/set-filetypes.cmd @@ -1,4 +1,5 @@ @echo off +set %TOOLS%=c:\tools set ARG1=null IF "%~1" NEQ "" set ARG1=%1 @@ -15,9 +16,9 @@ set SUFFIX=acr ani b3d bmp dib clp crw cr2 cr3 cur dcm ima dcx dds djvu iw44 dxf mpg mpe mpeg mov wmv aif mid rmi mp3 ogg au snd wav wma call :SFTA -set AKA=PDF24 -set BINARY="%PROGRAMFILES%\PDF24\pdf24-Reader.exe" -set SUFFIX=pdf +set AKA=SumatraPDF +set BINARY="%TOOLS%\SumatraPDF.exe" +set SUFFIX=pdf epub mobi fb2 fb2z pdb tcr cbz cbr cbt cb7 djv djvu chm xps oxps xod call :SFTA set AKA=Presentations diff --git a/scripts/startmenu/Sumatra PDF.lnk b/scripts/startmenu/Sumatra PDF.lnk new file mode 100644 index 0000000000000000000000000000000000000000..afbc4653dfdae60a3185e6fb1d2f19040150338f GIT binary patch literal 978 zcmah{T}YE*6n+TyVi#WJ>Y}zTtc$v^7`8hvJLlWx$cuGeo^#H7-t#`^{W)d;5@j7} zAT4SbUqA{K`Lnn0AO3hbFY#R3>|{GpOeDs~a+2KahL|ZSjR_9D%b}5bOYDNHA0W02k0;J8tjuv2J^}$nX`0ta>_E1n1Ky3 z1mGh6Flj3cFhYPAaRP9X&{ww1!1GQ5igziN^uOMF1X^RD1 z(Xh*EFbdu{F}4u70OvotdNpUw<4B>0miAWjhf3w=9b{QXy}=kiP(_Swn-Bf@52lry zf417cH2)ZbYbTv5D4vFA=G@m%_}}_Vx^n|CPp=A%&1x&C-+k3%s&{cGdo&ffbLK3? zJzT7naF9?vnhG7_aXFuc`f&yc4)WVDi=D0mGX|Bc?@Dw~*?JPq$F~E+?1> XndP6EjVX;e)$GWeZd>@q@rwKff|$;j literal 0 HcmV?d00001 diff --git a/scripts/unpack-zipfiles.cmd b/scripts/unpack-zipfiles.cmd index 93fea1a..8ec4236 100644 --- a/scripts/unpack-zipfiles.cmd +++ b/scripts/unpack-zipfiles.cmd @@ -25,6 +25,7 @@ for %%A in ( serviwin setdefaultbrowser showkeyplus + sumatrapdf trid triddefs vim @@ -122,6 +123,11 @@ move /Y %T%\showkeyplus\*.exe %TOOLS% rd /S /Q %T%\showkeyplus echo. +echo SumatraPDF +move /Y %T%\sumatrapdf\*.exe %TOOLS%\SumatraPDF.exe +rd /S /Q %T%\sumatrapdf +echo. + echo TrID (File identifier) move /Y %T%\trid\trid.exe %TOOLS% rd /S /Q %T%\trid diff --git a/software/basic.csv b/software/basic.csv index 3e17042..2006d58 100644 --- a/software/basic.csv +++ b/software/basic.csv @@ -1,4 +1,5 @@ https://www.7-zip.org/a/7z1900-x64.msi 7z-setup.msi +https://www.sumatrapdfreader.org/dl/rel/3.4.6/SumatraPDF-3.4.6-64.zip sumatrapdf.zip https://go.microsoft.com/fwlink/?linkid=2120254 adk-setup.exe https://download.sysinternals.com/files/SysinternalsSuite.zip sysinternals.zip https://curl.se/windows/latest.cgi?p=win64-mingw.zip curl.zip