Hey guys!
Here's how we are doing this, with a bat file:
::::::::::::::::::::::::::::: Begin of install bat file ::::::::::::::::::::::::::::::::::::::::::
SET rfolder=\\networkpath\corona_folder_with_more_versions\ :: Your network location path
SET dateFolder=corona17_rc7 :: this is the folder where latest corona was unzipped
SET lutFolder=LUT bundle
SET copyFolder=%rfolder%%dateFolder%
SET coronaProgramFiles=C:\Program Files\Corona
SET max2015Folder=C:\Program Files\Autodesk\3ds Max 2015
SET max2016Folder=C:\Program Files\Autodesk\3ds Max 2016
SET max2017Folder=C:\Program Files\Autodesk\3ds Max 2017
SET max2018Folder=C:\Program Files\Autodesk\3ds Max 2018
:: 3DS max 2015
xcopy /s /y "%copyFolder%\3ds Max 2015 Plugin\fullspeed" "%max2015Folder%" /f
:: 3DS max 2016
xcopy /s /y "%copyFolder%\3ds Max 2016 Plugin\fullspeed" "%max2016Folder%" /f
:: 3DS max 2017
xcopy /s /y "%copyFolder%\3ds Max 2017 Plugin\fullspeed" "%max2017Folder%" /f
:: 3DS max 2018
xcopy /s /y "%copyFolder%\3ds Max 2018 Plugin\fullspeed" "%max2018Folder%" /f
::copy corona files
rmdir /Q /S "%coronaProgramFiles%\lut"
echo f | xcopy /s /y "%copyFolder%\%lutFolder%" "%coronaProgramFiles%\lut" /f /i
:: copy DR Server
xcopy /s /y "%copyFolder%\DR Server\DrServer.exe" "%coronaProgramFiles%" /f
::::::::::::::::::::::::::::: End of install bat file ::::::::::::::::::::::::::::::::::::::::::
I wrote it longer to make it easier for me to understand as I am not a core programmer.
Another suggestion would be to run this kind of script, which will update the install bat file on all
computers from the network:
::::::::::::::::::::::::::::: begin of bat update and execute script :::::::::::::::::::::::::::::
echo f | xcopy /s /y "\\networkpath\batch_install_corona.bat" "C:\automation\batch_install_corona.bat" /f /i
C:\automation\batch_install_corona.bat :: this executes the update command.
::::::::::::::::::::::::::::: end of bat update and execute script :::::::::::::::::::::::::::::
You could then replace the batch_install_corona.bat on the network with an empty file so your servers will not update corona
every time this script is executed. You could setup some variable or query for registry to see if you have latest version of corona
but this will involve more work and maybe goes out of the scope of the task.
To make the update_and_execute.bat run every time your windows opens, you could setup a new task inside the task scheduler or add
it on startup, depending on which windows version you are using.
You can do some research on the batch commands inside windows, it's really helpful to automate things.
Good luck with your projects!
PS. Sorry for the long post, but I didn't wanted to attach bat files on the thread, as people would think I am providing viruses.. :)
Read and verify all the code, I am giving it without any guarantee, test it before deploying into production.
Alex from cgifarm.com