repo size reduction

This commit is contained in:
2024-11-22 13:08:57 +01:00
parent ae09ff9e32
commit f5b63a3e85
73 changed files with 2561 additions and 2 deletions

View File

@@ -0,0 +1,35 @@
rem ------------------------------------------------------------
rem Installationsroutine
rem ------------------------------------------------------------
rem --- Option: Download in ein temporäres Verzeichnis
rem --- Kann für z.B. für GLPI abgeschaltet werden
set SAVEPATH=%SYSTEMDRIVE%\TEMP\install
MKDIR %SAVEPATH% & CD /D %SAVEPATH%
rem --- Download Basis-URL, Dateiname und TEMP-Verzeichnis
set VERS=3.21.5
set BASEURL=https://www.microsip.org/download/MicroSIP-%VERS%.zip?6
set PROG=MicroSIP-%VERS%.zip
rem --- Lade Installationsdatei herunter
curl -kL %BASEURL% -o %SAVEPATH%\%PROG%
rem --- Unzipping....
powershell.exe "& {Expand-Archive %PROG% -DestinationPath %SAVEPATH%\MSIP}"
rem --- Silent-Installation des Programms:
MKDIR "%Programfiles(x86)%\MicroSIP"
COPY %SAVEPATH%\MSIP\*.* "%Programfiles(x86)%\MicroSIP\"
rem --- Verknüpfung
set VBS=link.vbs
echo Set oWS = WScript.CreateObject("WScript.Shell") >%VBS%
echo sLinkFile = "C:\Users\Public\Desktop\MicroSIP.lnk" >>%VBS%
echo Set oLink = oWS.CreateShortcut(sLinkFile) >>%VBS%
echo oLink.TargetPath = "%Programfiles(x86)%\MicroSIP\microsip.exe" >>%VBS%
echo oLink.Save >>%VBS%
cscript /nologo %VBS%
rem MKLINK C:\Users\Public\Desktop\MicroSIP "%Programfiles(x86)%\MicroSIP\microsip.exe"