Software Deployment Question
Software deployment - batch script return "installation failed", or find another method for installing
08/22/2016 2952 views
With AutoDesk software installations, the best way I've found to install them is to launch the setup.exe that's generated when creating the deployment from within the AutoDesk installer. These are standard network installers. The line I use in the batch script looks something like this:
start /wait \\domain.com\Deployments\AutoCAD_2015\Img\Setup.exe /Q /I \\domain.com\Deployments\AutoCAD_2015\Img\AutoCAD_2015.ini /language en-us
The issue is that I've got 4 different versions of AutoCAD set to install from the K1000, and even though they each have a different order number set, they seem to start on top of each other. The odd behavior this is causing is that this install script runs, the AutoDesk installer sees that another AutoDesk installer is running and fails, but that happens on the setup.exe level. The K1000 marks the software as "installed" and doesn't retry until the computer is inventoried 4 hours later or manual intervention is involved.
I'm pretty sure that the "start /wait" works for a bit to hold the installation process open and prevents the K1000 agent from telling the K1000 appliance that the software has finished installing successfully.... That is, until the setup.exe spawns the other installers that are involved. After that happens it appears that the "start /wait" stops waiting and the K1000 tries moving onto the next software, which happens to be the next AutoDesk application.
I'd like do one of two things here:
1. To make my batch script first check and see if the setup.exe is still running, and if it does send a message back to the kace that it's failed and needs to be retried.
2. To find another method for calling that setup.exe and waiting until it's truly 100% finished before telling the K1000 to proceed with the next installation.
From the AutoCAD install log that shows why the second/third/fourth installations are failing:
2016/8/22:11:54:35 SYSTEM TEST-VM CommandLine /Q /I \\domain.com\Deployments\AutoCAD_2015\Img\AutoCAD_2015.ini /language en-us
2016/8/22:11:54:35 SYSTEM TEST-VM Another Autodesk install/update is now occurring on this computer. Please wait for that to complete and then click Retry.
2016/8/22:11:54:35 SYSTEM TEST-VM === Setup ended ===