Update von AE übernommen...

This commit is contained in:
2026-09-10 09:05:27 +02:00
parent 91db29372f
commit 8c01127642
56 changed files with 1373 additions and 986 deletions
+43 -34
View File
@@ -1,35 +1,44 @@
:: ------------------------------------------------------------
:: Installationsroutine
:: ------------------------------------------------------------
:: --- Option: Download in ein temporäres Verzeichnis
:: --- Kann für z.B. für GLPI abgeschaltet werden
set SAVEPATH=%SYSTEMDRIVE%\TEMP\install
MKDIR %SAVEPATH% & CD /D %SAVEPATH%
:: --- Download Basis-URL, Dateiname und TEMP-Verzeichnis
set VERS=3.22.0
set BASEURL=https://www.microsip.org/download/MicroSIP-%VERS%.zip?6
set PROG=MicroSIP-%VERS%.zip
:: --- Lade Installationsdatei herunter
curl -kL %BASEURL% -o %SAVEPATH%\%PROG%
:: --- Unzipping....
powershell.exe "& {Expand-Archive %PROG% -DestinationPath %SAVEPATH%\MSIP}"
:: --- Silent-Installation des Programms:
MKDIR "%Programfiles(x86)%\MicroSIP"
COPY %SAVEPATH%\MSIP\*.* "%Programfiles(x86)%\MicroSIP\"
:: --- 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%
:: ------------------------------------------------------------
:: Installationsroutine
:: ------------------------------------------------------------
:: --- Option: Download in ein temporäres Verzeichnis
:: --- Kann für z.B. für GLPI abgeschaltet werden
set SAVEPATH=%SYSTEMDRIVE%\TEMP\install
MKDIR %SAVEPATH% 2> nul & CD /D %SAVEPATH%
:: --- Download Basis-URL, Dateiname und TEMP-Verzeichnis
:: https://www.microsip.org/downloads
set VERS=3.22.3
set BASEURL=https://www.microsip.org/download/MicroSIP-%VERS%.zip?1
set PROG=MicroSIP-%VERS%.zip
:: --- Lade Datei herunter
echo Starte Download Version %VERS%.
curl -kLSsf %BASEURL%/%PROG% -o %SAVEPATH%\%PROG%
if %ERRORLEVEL% EQU 0 (echo Download OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
:: --- Unzipping....
echo Entzippen.
powershell.exe "& {Expand-Archive %PROG% -DestinationPath %SAVEPATH%\MSIP}"
if %ERRORLEVEL% EQU 0 (echo Entzippen OK! ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
:: --- Silent-Installation des Programms:
echo Starte Installation.
MKDIR "%Programfiles(x86)%\MicroSIP"
COPY %SAVEPATH%\MSIP\*.* "%Programfiles(x86)%\MicroSIP\"
if %ERRORLEVEL% EQU 0 (echo Kopieren der Dateien OK. ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
:: --- 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%
if %ERRORLEVEL% EQU 0 (echo Einrichten OK. ) else ( echo Fehler %ERRORLEVEL% ist aufgetreten!)
:: MKLINK C:\Users\Public\Desktop\MicroSIP "%Programfiles(x86)%\MicroSIP\microsip.exe"