<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using a batch file to run the collection installs in Installation &amp; Licensing Forum</title>
    <link>https://forums.autodesk.com/t5/installation-licensing-forum/using-a-batch-file-to-run-the-collection-installs/m-p/7580640#M76312</link>
    <description>&lt;P&gt;I did figure out how to make this work&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I had to do was a little more involved, and possibly a kluge but here's what I did&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did declare the main deployment folder&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REM set server name and deployment folder&lt;BR /&gt;set Server=\\servername\deployments&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then declared the deployment subfolders where the executable and ini files live&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REM AutoCAD Deployment folder&lt;BR /&gt;set ACAD=ACAD_2018\Img&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then used these to run the deployment using Start /d so that it starts in the correct folder(like the shortcut does)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REM Install AutoCAD 2018&lt;/P&gt;&lt;P&gt;start /b /d %Server%\%ACAD% /wait %Server%\%ACAD%\Setup.exe /qb /I %Server%\%ACAD%\ACAD_2018.ini /Trial /language en-us&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to keep the installers from stomping on each other I then added a loop that checked if setup.exe was running&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REM Wait for Setup to Finish&lt;BR /&gt;echo off&lt;BR /&gt;:loop&lt;BR /&gt;tasklist /fi "imagename eq Setup.exe" |find ":" &amp;gt; nul&lt;BR /&gt;if errorlevel 1 goto loop&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When setup.exe closed, then the batch file could go to the next line.&amp;nbsp; I had to this, because the deployment downloads the files, and switches from running off the server to %temp% which causes the batch file to proceed to the next installation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've included a text file version, just change the variables, and change the file extension to bat.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 29 Nov 2017 01:03:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-11-29T01:03:55Z</dc:date>
    <item>
      <title>Using a batch file to run the collection installs</title>
      <link>https://forums.autodesk.com/t5/installation-licensing-forum/using-a-batch-file-to-run-the-collection-installs/m-p/7544403#M76311</link>
      <description>&lt;P&gt;Last year I had the thought of trying to make a combined collection installer using a batch file. I plan to try that and want to see if anyone else can poke holes in my thought.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've declared the server path as a variable, then copied the "target" path out of the deployment shortcut and replaced the relevant path with my variable. Does anyone see an issue with this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Set Server=\\vault\Autodesk

%Server%\ACAD_2018\Img\Setup.exe /qb /I %Server%\ACAD_2018\Img\ACAD_2018.ini /Trial /language en-us&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Nov 2017 23:00:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/installation-licensing-forum/using-a-batch-file-to-run-the-collection-installs/m-p/7544403#M76311</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-14T23:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using a batch file to run the collection installs</title>
      <link>https://forums.autodesk.com/t5/installation-licensing-forum/using-a-batch-file-to-run-the-collection-installs/m-p/7580640#M76312</link>
      <description>&lt;P&gt;I did figure out how to make this work&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I had to do was a little more involved, and possibly a kluge but here's what I did&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did declare the main deployment folder&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REM set server name and deployment folder&lt;BR /&gt;set Server=\\servername\deployments&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then declared the deployment subfolders where the executable and ini files live&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REM AutoCAD Deployment folder&lt;BR /&gt;set ACAD=ACAD_2018\Img&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then used these to run the deployment using Start /d so that it starts in the correct folder(like the shortcut does)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REM Install AutoCAD 2018&lt;/P&gt;&lt;P&gt;start /b /d %Server%\%ACAD% /wait %Server%\%ACAD%\Setup.exe /qb /I %Server%\%ACAD%\ACAD_2018.ini /Trial /language en-us&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to keep the installers from stomping on each other I then added a loop that checked if setup.exe was running&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;REM Wait for Setup to Finish&lt;BR /&gt;echo off&lt;BR /&gt;:loop&lt;BR /&gt;tasklist /fi "imagename eq Setup.exe" |find ":" &amp;gt; nul&lt;BR /&gt;if errorlevel 1 goto loop&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When setup.exe closed, then the batch file could go to the next line.&amp;nbsp; I had to this, because the deployment downloads the files, and switches from running off the server to %temp% which causes the batch file to proceed to the next installation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've included a text file version, just change the variables, and change the file extension to bat.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 01:03:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/installation-licensing-forum/using-a-batch-file-to-run-the-collection-installs/m-p/7580640#M76312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-29T01:03:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using a batch file to run the collection installs</title>
      <link>https://forums.autodesk.com/t5/installation-licensing-forum/using-a-batch-file-to-run-the-collection-installs/m-p/7581087#M76313</link>
      <description>&lt;P&gt;Instead of adding the loop in search of a setup.exe, wouldn't a /W argument added to the setup.exe also solve the issue of processing the next only after the former one has finished?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See i.e. this link and scroll down to the part where they add the setup.exe to the PDQ Deploy package.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.pdq.com/blog/silently-deploy-autocad-pdq-deploy/" target="_blank"&gt;https://www.pdq.com/blog/silently-deploy-autocad-pdq-deploy/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 07:25:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/installation-licensing-forum/using-a-batch-file-to-run-the-collection-installs/m-p/7581087#M76313</guid>
      <dc:creator>DannyNL</dc:creator>
      <dc:date>2017-11-29T07:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using a batch file to run the collection installs</title>
      <link>https://forums.autodesk.com/t5/installation-licensing-forum/using-a-batch-file-to-run-the-collection-installs/m-p/7583514#M76314</link>
      <description>&lt;P&gt;That may work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I may also remove the /wait from the start, since I think in this case it's not doing anything for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing I'm trying to do is make this run without any additional installations&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I were making this for a reseller, I'd likely build a batch to first run robocopy on the deployments I plan to use, that then goes through the INI files, and this installer that replaces the server name.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Nov 2017 20:16:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/installation-licensing-forum/using-a-batch-file-to-run-the-collection-installs/m-p/7583514#M76314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-29T20:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: Using a batch file to run the collection installs</title>
      <link>https://forums.autodesk.com/t5/installation-licensing-forum/using-a-batch-file-to-run-the-collection-installs/m-p/7586474#M76315</link>
      <description>&lt;P&gt;One thing I noticed when running the original script is that I'd get AutoCAD, but Electrical and Mechanical would get skipped. I think what happens is that the loop sees that setup.exe is down, and proceeds, but the installer sees something else running so shuts down and skips to the next line.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I've done now is added a 60 second timeout after the loop to give the install time to fully shut down. I've also rearranged the sequence and kept the wait option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;REM Install AutoCAD 2018&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;start /d %Server%\%ACAD% /b /wait %Server%\%ACAD%\Setup.exe /W /qb /I %Server%\%ACAD%\ACAD_2018.ini /language en-us&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;REM Wait for Setup to Finish &lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;echo off&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;:loop&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;tasklist /fi "imagename eq Setup.exe" |find ":" &amp;gt; nul&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;if errorlevel 1 goto loop&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;timeout /t 60 /nobreak&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Nov 2017 17:16:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/installation-licensing-forum/using-a-batch-file-to-run-the-collection-installs/m-p/7586474#M76315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-30T17:16:05Z</dc:date>
    </item>
  </channel>
</rss>

