How to perform silent installation and uninstallation
Starting from Corona Renderer version 2, the universal installer and uninstaller can be run with the following command line parameters:
Installer and uninstaller:
|-h or --help||Displays command line help.|
|Runs the installation in console mode with no user input. It is the same as running the typical installation option in GUI, accepting the EULA, and finishing the installation process.|
Currently (Corona Renderer 4), there is no way to specify which items should be installed during silent installation. This means that when Corona is already installed, the installer will remember the last items selected by the user (e.g. which 3ds Max versions were selected, what additional components were selected). If you uninstall Corona and run the installer in silent mode, it will use the default behavior - it will detect which versions of 3ds Max are installed and will install all additional components except the licensing server.
-n or --noGui
Runs the uninstallation in console mode with no user input (no confirmation prompt). In this mode the uninstaller is not able to delete itself so C:\Program Files\Corona\RemoveCoronaForMax.exe will be left on disk after the uninstallation is finished.
- Console mode may not work as expected when run directly from the Windows command line console. In such case the console will not wait for the installer (or uninstaller) to finish, and will display new prompt. It will also capture and accept user input while the installer (or uninstaller) is running and printing into the console.
Solution: The issue will not appear when using a .bat file or any other script, which is the intended use case. In this case the script correctly waits for the installer (or uninstaller) to finish before proceeding.