437 lines
18 KiB
Batchfile
437 lines
18 KiB
Batchfile
@echo off
|
||
chcp 1252
|
||
::VERsion 1.2.1
|
||
::Version 1.3.0 Anpassungen an das New AD "username"
|
||
:: setup.exe /s /installCert /i all
|
||
::
|
||
:start
|
||
cls
|
||
|
||
IF EXIST c:\%HOMEPATH%\USER.txt goto losgehts
|
||
set /p ausername=Bitte einmalig ADM User eingeben:
|
||
echo %ausername%@deaudi00>c:\%HOMEPATH%\USER.txt
|
||
|
||
::
|
||
:losgehts
|
||
SET /p ausername=<c:\%HOMEPATH%\USER.txt
|
||
set VERZ=%~dp0
|
||
echo.
|
||
set Arbeitsverzeichnis=%1"
|
||
set Arbeitsverzeichnis=%Arbeitsverzeichnis:"=%
|
||
color 0f
|
||
|
||
|
||
:step2
|
||
echo.
|
||
echo =================================
|
||
echo ************************************************
|
||
echo ** **
|
||
echo ** -= Vector installer =- **
|
||
echo ** **
|
||
echo ************************************************
|
||
echo =================================
|
||
echo.
|
||
echo === Systemzeit : %Time% UHR ===
|
||
echo === User : %ausername% ===
|
||
echo ***********************************************************************
|
||
echo ****** = M-E-N-U-E = ****
|
||
echo ***********************************************************************
|
||
echo *** 1 = CANAPE ****
|
||
echo *** 2 = CANOE ****
|
||
echo *** 3 = Vector Driver 23_20_0 ****
|
||
echo *** 4 = VAG Add on ****
|
||
echo *** 5 = CANanlyzer ****
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
echo.
|
||
set /p RemoteHost=Bitte ClientID eingeben:
|
||
:: Gross kleinschreibung berichtigung
|
||
set RemoteHost=%RemoteHost:a=A%
|
||
set RemoteHost=%RemoteHost:i=I%
|
||
set RemoteHost=%RemoteHost:n=N%
|
||
::Abfrage ab nur ClientID
|
||
IF "%RemoteHost:~,1%" == "1" GOTO IP
|
||
IF "%RemoteHost:~,1%" == "A" GOTO bmmf
|
||
|
||
|
||
:: Wenn fehlend ClientID erg<72>nzen
|
||
set /p stand=1 Ingolstadt oder 2 Neckasulm:
|
||
IF "%stand%"=="1" (set standz=IN)
|
||
IF "%stand%"=="2" (set standz=NE)
|
||
set /p client=1 Laptop 2 Festrechner 3 HILs:
|
||
IF "%client%"=="1" (set clientz=L)
|
||
IF "%client%"=="2" (set clientz=C)
|
||
IF "%client%"=="3" (set clientz=W)
|
||
set FQDN=AUDI%standz%%clientz%%RemoteHost%.%standz%.audi.vwg
|
||
goto expl
|
||
|
||
:: Restlichen FQDN NE oder IN auswerten
|
||
:bmmf
|
||
set namez=%RemoteHost:~4,1%
|
||
IF "%namez:~,1%" == "N" (set standz=.NE.audi.vwg)
|
||
IF "%namez:~,1%" == "I" (set standz="")
|
||
set FQDN=%RemoteHost%
|
||
goto expl
|
||
|
||
:IP
|
||
set FQDN=%RemoteHost%
|
||
|
||
|
||
:: PING test
|
||
:expl
|
||
:: echo %FQDN% fqdn
|
||
|
||
|
||
set /p Reparatur=Bitte waehlen Sie eine Option aus:
|
||
|
||
if "%Reparatur%"=="0" goto rep0
|
||
if "%Reparatur%"=="1" goto rep1
|
||
if "%Reparatur%"=="2" goto rep2
|
||
if "%Reparatur%"=="3" goto rep3
|
||
if "%Reparatur%"=="4" goto rep4
|
||
if "%Reparatur%"=="5" goto rep5
|
||
if "%Reparatur%"=="6" goto rep6
|
||
if "%Reparatur%"=="7" goto rep7
|
||
if "%Reparatur%"=="8" goto rep8
|
||
|
||
|
||
|
||
|
||
ping %FQDN% -n 1 | find "TTL"
|
||
IF NOT %ERRORLEVEL%==0 echo ***** ACHTUNG: Rechner konnte nicht angepingt werden
|
||
IF NOT %ERRORLEVEL%==0 pause
|
||
IF NOT %ERRORLEVEL%==0 goto start
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
|
||
|
||
|
||
|
||
|
||
:: **************************************** CANAPE ****************************************
|
||
:rep1
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
echo ****** CANAPE ****
|
||
echo ***********************************************************************
|
||
echo *** 1 = CANAPE 16 ****
|
||
echo *** 2 = CANAPE 17 ****
|
||
echo *** 3 = CANAPE 18 ****
|
||
echo *** 4 = CANAPE 19 ****
|
||
echo *** 5 = CANAPE 20 ****
|
||
echo *** 6 = CANAPE 21 ****
|
||
echo *** 7 = CANAPE 22 ****
|
||
echo *** 8 = CANAPE 23 ****
|
||
echo *** 9 = CANAPE 24 ****
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
|
||
|
||
|
||
echo ***********************************************************************
|
||
set /p instc=Bitte waehlen Sie eine Option aus:
|
||
if "%instc%"=="1" goto caist1
|
||
if "%instc%"=="2" goto caist2
|
||
if "%instc%"=="3" goto caist3
|
||
if "%instc%"=="4" goto caist4
|
||
if "%instc%"=="5" goto caist5
|
||
if "%instc%"=="6" goto caist6
|
||
if "%instc%"=="7" goto caist7
|
||
if "%instc%"=="8" goto caist8
|
||
if "%instc%"=="9" goto caist9
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
|
||
|
||
|
||
:caist1
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\C000_CANape\160\CANape 16 inkl SP7" "\\%FQDN%\c$\Temp\Canape16SP1" /mir
|
||
::robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\C000_CANape\160\SP5" "\\%FQDN%\c$\Temp\Canape16SP5" /mir
|
||
echo %RemoteHost%
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:caist2
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\C000_CANape\170\CANape_17_incl_SP_7" "\\%FQDN%\c$\Temp\Canape17SP7" /mir
|
||
echo %RemoteHost%
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:caist3
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\C000_CANape\180\CANape 18.0 SP9" "\\%FQDN%\c$\Temp\Canape18SP9" /mir
|
||
echo %RemoteHost%
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:caist4
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\C000_CANape\190\CANapeV19_SP5" "\\%FQDN%\c$\Temp\Canape19SP5" /mir
|
||
echo %RemoteHost%
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:caist5
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\C000_CANape\200" "\\%FQDN%\c$\Temp\Canape20SP2" /mir
|
||
echo %RemoteHost%
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:caist6
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\C000_CANape\210\CANape 21 SP5" "\\%FQDN%\c$\Temp\Canape210" /mir
|
||
echo %RemoteHost%
|
||
::copy "%Arbeitsverzeichnis%canapeinst\210.bat" "\\%FQDN%\c$\temp\Canape210\210.bat"
|
||
::psexec.exe \\%FQDN% -s c:\temp\Canape210\210.bat
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:caist7
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\C000_CANape\220" "\\%FQDN%\c$\Temp\Canape22" /mir
|
||
echo %RemoteHost%
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:caist8
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\C000_CANape\230" "\\%FQDN%\c$\Temp\Canape23" /mir
|
||
echo %RemoteHost%
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:caist9
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\C000_CANape\240" "\\%FQDN%\c$\Temp\Canape24" /mir
|
||
echo %RemoteHost%
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:: **************************************** CANAPE ****************************************
|
||
|
||
|
||
|
||
|
||
|
||
:: **************************************** Rep 2 CANOE ****************************************
|
||
:rep2
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
echo ****** CANOE ****
|
||
echo ***********************************************************************
|
||
echo *** 1 = CANOE 10 ****
|
||
echo *** 2 = CANOE 11 ****
|
||
echo *** 3 = CANOE 12 SP5 ****
|
||
echo *** 4 = CANOE 13 SP3 ****
|
||
echo *** 5 = CANOE 14 ****
|
||
echo *** 6 = CANOE 15 SP5 ****
|
||
echo *** 7 = CANOE 16 SP7 ****
|
||
echo *** 8 = CANOE 17 ****
|
||
echo *** 9 = CANOE 18 ****
|
||
echo *** 10 = CANOE 19 ****
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
|
||
|
||
echo ***********************************************************************
|
||
set /p instc=Bitte waehlen Sie eine Option aus:
|
||
if "%instc%"=="1" goto canst1
|
||
if "%instc%"=="2" goto canst2
|
||
if "%instc%"=="3" goto canst3
|
||
if "%instc%"=="4" goto canst4
|
||
if "%instc%"=="5" goto canst5
|
||
if "%instc%"=="6" goto canst6
|
||
if "%instc%"=="7" goto canst7
|
||
if "%instc%"=="8" goto canst8
|
||
if "%instc%"=="9" goto canst9
|
||
if "%instc%"=="10" goto canst10
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
|
||
|
||
|
||
|
||
|
||
:canst1
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\B000_CANoe\10.0\CANoeCANalyzer_V10.0" "\\%FQDN%\c$\Temp\Canoe10" /mir
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\B000_CANoe\10.0\SP7" "\\%FQDN%\c$\Temp\" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:canst2
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\B000_CANoe\11.0\Master_CANoe_64bit_inkl_SP" "\\%FQDN%\c$\Temp\Canoe11" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:canst3
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\B000_CANoe\12.0\Master_CANoe_64bit_inkl_SP5" "\\%FQDN%\c$\Temp\Canoe12" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:canst4
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\B000_CANoe\13.0\CANoe_13.0_SP3_64Bit" "\\%FQDN%\c$\Temp\Canoe13" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:canst5
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\B000_CANoe\14.0\CANoe_64bit_14.4_inkl_SP4" "\\%FQDN%\c$\Temp\Canoe14" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:canst6
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\B000_CANoe\15.0" "\\%FQDN%\c$\Temp\Canoe15" /mir
|
||
::robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\B000_CANoe\15.0\Hotfix CANoe V15 SP5" "\\%FQDN%\c$\Temp\Hotfix CANoe V15" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:canst7
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\B000_CANoe\16.0\CANoe Full Installer 16 SP7" "\\%FQDN%\c$\Temp\Canoe16" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:canst8
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\B000_CANoe\17.0" "\\%FQDN%\c$\Temp\Canoe17" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:canst9
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\B000_CANoe\18.0\CANoe V18 SP4" "\\%FQDN%\c$\Temp\Canoe18.3" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:canst10
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\B000_CANoe\19.0\CANoe Full Installer 19 SP2" "\\%FQDN%\c$\Temp\Canoe19" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
:: **************************************** Rep 2 CANOE ****************************************
|
||
|
||
|
||
|
||
:: **************************************** Rep 3 Driver ****************************************
|
||
:rep3
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\I000_Treiber\Aktuell\Vector Driver Setup 25.30.0 for Windows 10 and 11" "\\%FQDN%\c$\Temp\driver" /mir
|
||
copy "%VERZ%Driver\driver.bat" "\\%FQDN%\c$\temp\driver\driver.bat"
|
||
psexec.exe \\%FQDN% -s c:\temp\Driver\driver.bat
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
:: **************************************** Rep 3 Driver ****************************************
|
||
|
||
|
||
|
||
:: **************************************** Rep 4 VAG ****************************************
|
||
:rep4
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
echo ****** VAG add on ****
|
||
echo ***********************************************************************
|
||
echo *** 1 = VAG CANOE groesser gleich 14 ****
|
||
echo *** 2 = VAG CANOE kleiner 14 ****
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
|
||
echo ***********************************************************************
|
||
set /p instc=Bitte waehlen Sie eine Option aus:
|
||
if "%instc%"=="1" goto vag1
|
||
if "%instc%"=="2" goto vag2
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
|
||
:vag1
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\K000_VAG_Package\fuer CANOE groesser gleich 14\4.2.3_Vector_VAG_Modeling_AddOn_SingleSetup" "\\%FQDN%\c$\Temp\VAGAddon" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:vag2
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\K000_VAG_Package\fuer CANOE kleiner 14\3.1.5_Package" "\\%FQDN%\c$\Temp\VAGAddon" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:: **************************************** Rep 4 VAG ****************************************
|
||
|
||
|
||
|
||
|
||
:: **************************************** Canalyzer ****************************************
|
||
:rep5
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
echo ****** Canalyzer ****
|
||
echo ***********************************************************************
|
||
echo *** 1 = CANalyzer 11 ****
|
||
echo *** 2 = CANalyzer 16 ****
|
||
echo *** 3 = CANalyzer 17 ****
|
||
echo *** 4 = CANalyzer 18 ****
|
||
echo *** 5 = CANalyzer 19 ****
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
|
||
echo ***********************************************************************
|
||
set /p instc=Bitte waehlen Sie eine Option aus:
|
||
if "%instc%"=="1" goto caz1
|
||
if "%instc%"=="2" goto caz2
|
||
if "%instc%"=="3" goto caz3
|
||
if "%instc%"=="4" goto caz4
|
||
if "%instc%"=="5" goto caz5
|
||
echo ***********************************************************************
|
||
echo ***********************************************************************
|
||
|
||
|
||
:caz1
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\A000_CANalyzer\11.0" "\\%FQDN%\c$\Temp\CANalyzer 11" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:caz2
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\A000_CANalyzer\16.0\CANalyzer Full Installer 16 SP7" "\\%FQDN%\c$\Temp\CANalyzer 16" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:caz3
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\A000_CANalyzer\17.0\CANalyzer Full Installer 17 SP5" "\\%FQDN%\c$\Temp\CANalyzer 17" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:caz4
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\A000_CANalyzer\18.0\CANalyzer V18 SP3" "\\%FQDN%\c$\Temp\CANalyzer 18" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
:caz5
|
||
robocopy "\\AUDIINTF2333.in.audi.vwg\Vector-Software\A000_CANalyzer\19.0" "\\%FQDN%\c$\Temp\CANalyzer 19" /mir
|
||
if %ERRORLEVEL% == 0 goto ende
|
||
goto errfehler
|
||
|
||
|
||
|
||
:: **************************************** Rep 5 ****************************************
|
||
|
||
|
||
|
||
:errfehler
|
||
echo ***************************************************************************
|
||
echo *****************************************************************************
|
||
echo ***** *****
|
||
echo ***** Ausfuehrung FEHLER ... *****
|
||
echo ***** *****
|
||
echo *****************************************************************************
|
||
echo ***************************************************************************
|
||
color 0c
|
||
goto farbegesetzt
|
||
|
||
:ende
|
||
echo ***************************************************************************
|
||
echo *****************************************************************************
|
||
echo ***** *****
|
||
echo ***** Ausfuehrung erfolgreich ... *****
|
||
echo ***** *****
|
||
echo *****************************************************************************
|
||
echo ***************************************************************************
|
||
color 02
|
||
goto farbegesetzt
|
||
|
||
:farbegesetzt
|
||
Pause
|
||
goto start
|