Hi I am trying to create a batch file to pick a computers model and then install extra apps according to the model number, these are mostly drivers that do not install during our driver inject in winpe ie webcam, OSD drivers 9010 Allinone etc.
Unfortunately the script ignores (or doesn't) do the goto, no errors, but tries to install the software for each model.
if "%#!computer@prod_name%" == "Optiplex 9010" goto 9010
if "%#!computer@prod_name%" == "Latitude 6530" goto 6530
if "%#!computer@prod_name%" == "Latitude 5430" goto 5430
if "%#!computer@prod_name%" == "Latitude 5430 non-vpro" goto 5430-nonvpro
:9010
rem 9010 - install dell webcam
c:\drivers\webcam\setup.exe -s setup.iss
Etc etc.....
I can send a script as below to a computer and it will respond with the correct computer product name
echo %#!computer@prod_name%
pause
Any ideas?
Thanks, Cat