I'm trying to install the Autodesk2013 Suite using this batch
@echo off title Installing Autodesk Suite then logging off.... NET USE \\directory /user:********\****** ****** /persistent:YES ECHO "Installing Autodesk Suite. This workstation will log off automatically when installation is complete." START /WAIT /B "" "....\Setup.exe" /qb /I \AutoDesk2013.ini /language en-us ECHO "Finished" TIMEOUT /T 10 SHUTDOWN /l /f EXIT
It initialises the install perfectly fine but it isn't waiting until it's finished, instantly moves on. Does this Setup invoke msiexec or something along those lines so the /WAIT doesn't work? If so, is there any way around it because we need to wait until it's finished to be able to log off the account.
Thanks in advance.
You should just need to add a /W switch to the Setup to get it to wait for the install to finish.
Something like,
START /WAIT /B "" "....\Setup.exe" /w /qb /I \AutoDesk2013.ini /language en-us
Thanks,
Danny
That didn't work, from what I gathered it's because the Setup.exe launches a separate installer Here's a workaround that does, little bit hacky though.
@echo off title Installing Autodesk Suite then logging off....
NET USE \\**** /user:*****\***** ******** /persistent:YES
ECHO "Installing Autodesk Suite. This workstation will log off automatically when installation is complete."
START /B "" "\AdminImage\Setup.exe" /qb /I \AdminImage\AutoDesk2013.ini /language en-us
TIMEOUT /T 10
SETLOCAL
SET TARGET=Setup.exe @ECHO Started!
:LOOP
ping -5 2 localhost >NUL FOR /F %%T IN ('tasklist.exe /FI "IMAGENAME eq %TARGET%"') DO ( SET FOUND=0 IF "%%~T"=="%TARGET%" SET FOUND=1 )
IF %FOUND%==1 GOTO :LOOP
ECHO "Finished"
TIMEOUT /T 10
SHUTDOWN /l /f
EXIT
A few other options would be to try the following.
CALL "" "....\Setup.exe" /w /qb /I \AutoDesk2013.ini /language en-us
Or since it appears you have already created a deployment you could just run the shortcut link for the deployment with something like.
CALL "\\server_name\share_name\deployment_folder\deployment_name.lnk" /w
Thanks,
Danny
Thanks Danny. It looks like the CALL is holding the batch file.
🙂
Sara
Arlington County Schools
Arlington, VA
Can't find what you're looking for? Ask the community or share your knowledge.