Bug #90811 MySQLInstallerConsole -showsettings throws unhandled exception
Submitted: 9 May 2018 19:03 Modified: 9 May 2018 20:21
Reporter: Tim Taylor Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL for Windows: Installer Severity:S3 (Non-critical)
Version:1.4.25.0 OS:Microsoft Windows (10 Professional)
Assigned to: CPU Architecture:x86
Tags: MySQLInstallerConsole

[9 May 2018 19:03] Tim Taylor
Description:
Trying to step through the MySQLInstallerConsole options to create a silent install, and an unhandled exception is thrown after the product is selected.

How to repeat:
C:\Program Files (x86)\MySQL\MySQL Installer for Windows>MySQLInstallerConsole install -showsettings server
=================== Start Initialization ===================
MySQL Installer is running in Community mode

Attempting to update manifest.
Initializing product requirements
Loading product catalog
Checking for product catalog snippets
Checking for product packages in the bundle
Categorizing product catalog
Finding all installed packages.
Your product catalog was last updated at 5/9/2018 12:49:10 PM
=================== End Initialization ===================

Install MySQL Server 8.0.11-X64? [Y/N]n
Install MySQL Server 8.0.4-X64? [Y/N]n
Install MySQL Server 8.0.3-X64? [Y/N]n
Install MySQL Server 8.0.2-X64? [Y/N]n
Install MySQL Server 8.0.1-X64? [Y/N]n
Install MySQL Server 8.0.0-X64? [Y/N]n
Install MySQL Server 5.7.22-X86? [Y/N]n
Install MySQL Server 5.7.22-X64? [Y/N]y
Here are the available settings for your selected products.

MySQL Server 5.7.22

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at WexInstaller.Core.Controllers.ControllerSettings.GetDefaultValue(PropertyInfo pi, Boolean useValue)
   at WexInstaller.Core.Controllers.ControllerSettings.GenerateHelpString()
   at WexInstallerConsole.Actions.InstallAction.ShowProductSettings()
   at WexInstallerConsole.Actions.InstallAction.PostPackageSelection()
   at WexInstallerConsole.Actions.PackageBasedAction.DoAction()
   at WexInstallerConsole.Program.Main(String[] args)

Suggested fix:
Better documentation would be appreciated.  Documentation at https://dev.mysql.com/doc/refman/5.7/en/MySQLInstallerConsole.html is incomplete and does not show all options and values.

Another option would be the ability to walk through the GUI and export a console installer command for an install on another machine or for use in an installer package.
[9 May 2018 20:21] MySQL Verification Team
Thank you for the bug report.