Installation & Licensing

Installation & Licensing

Reply
New Member
SzabuniaT
Posts: 2
Registered: ‎12-04-2013
Message 1 of 5 (497 Views)

Batch install - Waiting for install to finish

497 Views, 4 Replies
12-04-2013 04:37 AM

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.

 

Employee
DannyHubbard
Posts: 269
Registered: ‎05-17-2007
Message 2 of 5 (489 Views)

Re: Batch install - Waiting for install to finish

12-04-2013 07:22 AM in reply to: SzabuniaT

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



Danny Hubbard
QA Analyst
Autodesk, Inc.
New Member
SzabuniaT
Posts: 2
Registered: ‎12-04-2013
Message 3 of 5 (485 Views)

Re: Batch install - Waiting for install to finish

12-04-2013 08:01 AM in reply to: DannyHubbard

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

 

Employee
DannyHubbard
Posts: 269
Registered: ‎05-17-2007
Message 4 of 5 (481 Views)

Re: Batch install - Waiting for install to finish

12-04-2013 10:02 AM in reply to: SzabuniaT

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



Danny Hubbard
QA Analyst
Autodesk, Inc.
New Member
sara.witherow
Posts: 1
Registered: ‎08-26-2014
Message 5 of 5 (19 Views)

Re: Batch install - Waiting for install to finish

08-26-2014 07:39 AM in reply to: DannyHubbard

Thanks Danny.  It looks like the CALL is holding the batch file.

 

:smileyhappy:
Sara

 

Arlington County Schools

Arlington, VA

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.