Batch Script to install all packages

altquark

altquark

Legendary Poster
Bah ! It seems JDEList deletes messages that are 2 years old !!!!! Could we move this to "Tips and Tricks" ?

I am therefore posting the following script again since a number of people have asked for this !


This assumes that you name your packages as follows :

DV7333FI00 - Full Package, 9th Generation (I)
DV7333FI01 - 1st Update package
DV7333FI02 - 2nd Update package
.
.



The following script will install the first full parent package, and then install all of the updates following.

Note that it uses the "SILENT" option to install the package. This script can handle 99 updates to 1 parent package.

Note that it would be easy to pass the parent package name into this batch program and parse the 1st 8 characters instead of hardcoding DV7333FI


@echo off
if "%1" == "}{" goto %2

for %%a in (01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99) do call %0 }{ SecA %%a

goto End


:SecA
echo Installing ... DV7333FI%3
if exist c:\jdeinst.log del c:\jdeinst.log
if not exist \\jdedpy1\b7333\package_inf\DV7333FI%3.inf echo DV7333FI%3 does not exist...
if exist \\jdedpy1\b7333\package_inf\DV7333FI%3.inf "\\jdedpy1\b7333\OneWorld Client Install\Setup.exe" -S -P DV7333FI%3 -D C:\B7
if exist c:\jdeinst.log copy c:\jdeinst.log DV7333FI%3-Install.log


:End
 
Back
Top