3.1 "Silent" installation

<< Click to Display Table of Contents >>

Navigation:  3. Installation >

3.1 "Silent" installation

Det er muligt at installere TLServitut silent for systemadministratorer.

 

Herunder er et eksempel på hvordan scriptet ser ud for en klassisk LIFA-installation:

Bemærk at denne vejledning først kan bruges ved installation af TLServitut version 2.2.18.

 

Den første og sidste del af scriptet forudsætter at der er en backup-mappe, hvor der er taget backup af indstillingsfiler som customcode.cs, sagsrefjournal.dll, sagsrefjournal.dll.config og TLServitut.exe.config

Dette kan udelades, hvis det er en ny installation, hvor der ikke er opsætning i forvejen.

-------------------------------------------------------------

c:

CLS

@echo off

IF NOT EXIST "\\fil01\Program\installationspakker\TL\TLServitut\InternBetaRelease\TLServitut.msi" goto notavailable

 

SET SRCDIR=\\fil01\Program\installationspakker\TL\TLServitut\Filer KUN TIL LIFA-brugere

SET DESTINATIONDIR=%programfiles%\LIFA\TLServitut

IF EXIST "%ProgramFiles(x86)%" SET DESTINATIONDIR=%programfiles(x86)%\LIFA\TLServitut

echo installdir: %DESTINATIONDIR%

 

:: TARGETDIR anvendes i gamle installationspakker, mens INSTALLDIR anvendes i nye pakker. Grundet baggud-kompabilitet i scriptet, er TARGETDIR ikke fjernet.

 

SET MSG=Installerer TLServitut...

echo %MSG%

echo msiexec /i "\\fil01\Program\installationspakker\TL\TLServitut\InternBetaRelease\TLServitut.msi" LICENSEDIR=S:\licenser\DKLICENS\LICENS TARGETDIR="%DESTINATIONDIR%" INSTALLDIR="%DESTINATIONDIR%" /quiet

echo tryk enter for at installere tlservitut

pause

 

call msiexec /i "\\fil01\Program\installationspakker\TL\TLServitut\InternBetaRelease\TLServitut.msi" LICENSEDIR=S:\licenser\DKLICENS\LICENS TARGETDIR="%DESTINATIONDIR%" INSTALLDIR="%DESTINATIONDIR%" /quiet

if errorlevel 1 goto error

 

SET MSG=Kopierer konfigurationsfiler...

echo %MSG%

copy "%SRCDIR%\CustomCode.cs" "%DESTINATIONDIR%\CustomCode.cs" /Y

if errorlevel 1 goto error

copy "%SRCDIR%\SagsRefJournal.dll.config" "%DESTINATIONDIR%\SagsRefJournal.dll.config" /Y

if errorlevel 1 goto error

SET MSG=Kopierer konfigurationsfiler 3...

xcopy "%SRCDIR%\TLServitut.exe.config" "%DESTINATIONDIR%" /Y /H /R /K /F

if errorlevel 1 goto error

 

 

exit

 

 

:error

echo Der opstod en fejl ved '%MSG%'. Kontakt sbe@lifa.dk.

pause

exit

 

:notavailable

echo Pt. findes der ingen beta-release.

pause

exit