Windows 10 Batch file linking CMD commands (AutoCAD case)

  • Thread starter Thread starter Tonito Dux
  • Start date Start date
T

Tonito Dux

Guest
Hi,

I am currently battling one situation where in AutoCAD i have to add two additional components to the main installation. this would be the offline help component as well as VBA installer. They each have their own .exe and I have to run them in ordner that offline help installs first, than main AutoCAD 2020 and only aftert AutoCAD installed is can I install the VBA installer.

So far i have this:

@echo off
.\Img\Setup.exe /W /q /I Img\ACAD2020E.ini /language en-US & .\AutoCAD_2020_Offline_Help_English_Win_64bit_dlm\setup.exe /q
TIMEOUT /T 10 & .\AutoCAD_2020_AcVbaInstaller_Win_64bit_dlm\setup.exe /q
exit /B 0

The first line works and both of the components install, however the second line does not work, the VBA installer will not install. The timeout command is there only so i can use & that waits for the command to finish, because when i did this:

.\Img\Setup.exe /W /q /I Img\ACAD2020E.ini /language en-US & .\AutoCAD_2020_Offline_Help_English_Win_64bit_dlm\setup.exe /q & .\AutoCAD_2020_AcVbaInstaller_Win_64bit_dlm\setup.exe /q

It also did not work.

How to achieve that the batch file waits? I tried also with Timeout /T XX commands:

.\Img\Setup.exe /W /q /I Img\ACAD2020E.ini /language en-US

TIMEOUT /T 300

.\AutoCAD_2020_AcVbaInstaller_Win_64bit_dlm\setup.exe /q
TIMEOUT /T 1500

.\AutoCAD_2020_Offline_Help_English_Win_64bit_dlm\setup.exe /q

but this is than taking to long, because when the installation of the main AutoCAD finishes, only then it waits 1500 seconds (time needed to install AutoCAD with AV turned on).

Cheers,

More...
 

Similar threads

R
Replies
0
Views
90
RealStruggler
R
Y
Replies
0
Views
69
Yurii Cherkasov
Y
Y
Replies
0
Views
189
Yurii Cherkasov
Y
Back
Top