mathworks-ref-arch / matlab-dockerfile

Create a docker container that contains a MATLAB install
Other
345 stars 96 forks source link

MPM only acknowledges product names after hypens were added to them (breaking MathWorks-provided input files) #113

Closed Jestzer closed 2 months ago

Jestzer commented 4 months ago

Overview

Some products such as Simulink Real-Time did not have a hyphen its product name in older releases, such as R2017b. This means its product name is Simulink_Real_Time in these older releases. In later releases, the hyphen was added to the product name, then reading as Simulink_Real-Time.

However, MPM does not honor these historical rules. If you attempt to install Simulink Real-Time in R2017b in its correct syntax (without the hyphen), it says the product is unrecognized. This also means that the product will not install with the provided input files that MathWorks has provided in this repository, since they are using the correct syntax for their release and MPM does not recognize this. This means that the affected input files must be manually adjusted to actually install all products for earlier releases. These are the products I'm aware are affected:

Simulink_Desktop_Real_Time
Fixed_Point_Designer
Model_Based_Calibration_Toolbox
Simulink_Real_Time

Reproduction Method

Attempt to install Simulink Real Time with the input or by manually entering "Simulink_Real_Time" after --products on Windows for R2017b.

Example outputs

With input file

PS C:\Users\jestzer\AppData\Local\Temp> .\mpm.exe install --inputfile "C:\Users\jestzer\Downloads\mpm_input_r2017b.txt"
WARNING: Uninstalling these products is not supported. To cancel this installation, press CTRL+C.

Installing with the following parameters:
--destination=C:\Program Files\MATLAB\RXXXX
--doc=false
--no-gpu=false
--no-jre=false
--release=R2017b
--products=MATLAB, Simulink, Simulink Real Time
---------------------------------------------
Error: Unrecognized products:
Simulink_Real_Time
PS C:\Users\jestzer\AppData\Local\Temp>

By hand

Installing with the following parameters:
--destination=C:\Program Files\MATLAB\R2017b
--doc=false
--release=R2017b
--products=Aerospace_Blockset, Aerospace_Toolbox, Antenna_Toolbox, Audio_System_Toolbox, Automated_Driving_System_Toolbox, Bioinformatics_Toolbox, Communications_System_Toolbox, Computer_Vision_System_Toolbox, Control_System_Toolbox, Curve_Fitting_Toolbox, DSP_System_Toolbox, Data_Acquisition_Toolbox, Database_Toolbox, Datafeed_Toolbox, Econometrics_Toolbox, Embedded_Coder, Filter_Design_HDL_Coder, Financial_Instruments_Toolbox, Financial_Toolbox, Fixed_Point_Designer, Fuzzy_Logic_Toolbox, GPU_Coder, Global_Optimization_Toolbox, HDL_Coder, HDL_Verifier, Image_Acquisition_Toolbox, Image_Processing_Toolbox, Instrument_Control_Toolbox, LTE_HDL_Toolbox, LTE_System_Toolbox, MATLAB, MATLAB_Coder, MATLAB_Compiler, MATLAB_Compiler_SDK, MATLAB_Distributed_Computing_Server, MATLAB_Production_Server, MATLAB_Report_Generator, Mapping_Toolbox, Model_Predictive_Control_Toolbox, Model_Based_Calibration_Toolbox, Neural_Network_Toolbox, OPC_Toolbox, Optimization_Toolbox, Parallel_Computing_Toolbox, Partial_Differential_Equation_Toolbox, Phased_Array_System_Toolbox, Polyspace_Bug_Finder, Polyspace_Code_Prover, Powertrain_Blockset, RF_Blockset, RF_Toolbox, Risk_Management_Toolbox, Robotics_System_Toolbox, Robust_Control_Toolbox, Signal_Processing_Toolbox, SimBiology, SimEvents, Simscape, Simscape_Driveline, Simscape_Electronics, Simscape_Fluids, Simscape_Multibody, Simscape_Power_Systems, Simulink, Simulink_3D_Animation, Simulink_Check, Simulink_Coder, Simulink_Control_Design, Simulink_Coverage, Simulink_Design_Optimization, Simulink_Design_Verifier, Simulink_Desktop_Real_Time, Simulink_PLC_Coder, Simulink_Real_Time, Simulink_Report_Generator, Simulink_Requirements, Simulink_Test, Spreadsheet_Link, Stateflow, Statistics_and_Machine_Learning_Toolbox, Symbolic_Math_Toolbox, System_Identification_Toolbox, Text_Analytics_Toolbox, Trading_Toolbox, Vehicle_Network_Toolbox, Vision_HDL_Toolbox, WLAN_System_Toolbox, Wavelet_Toolbox
---------------------------------------------
Error: Unrecognized products:
Simulink_Desktop_Real_Time
Fixed_Point_Designer
Model_Based_Calibration_Toolbox
Simulink_Real_Time

In my second attempt below, you'll notice I change Simulink_Real_Time to Simulink_Real-Time and the product disappears from the "Unrecognized products" list.

Installing with the following parameters:
--destination=C:\Program Files\MATLAB\R2017b
--doc=false
--release=R2017b
--products=Aerospace_Blockset, Aerospace_Toolbox, Antenna_Toolbox, Audio_System_Toolbox, Automated_Driving_System_Toolbox, Bioinformatics_Toolbox, Communications_System_Toolbox, Computer_Vision_System_Toolbox, Control_System_Toolbox, Curve_Fitting_Toolbox, DSP_System_Toolbox, Data_Acquisition_Toolbox, Database_Toolbox, Datafeed_Toolbox, Econometrics_Toolbox, Embedded_Coder, Filter_Design_HDL_Coder, Financial_Instruments_Toolbox, Financial_Toolbox, Fixed_Point_Designer, Fuzzy_Logic_Toolbox, GPU_Coder, Global_Optimization_Toolbox, HDL_Coder, HDL_Verifier, Image_Acquisition_Toolbox, Image_Processing_Toolbox, Instrument_Control_Toolbox, LTE_HDL_Toolbox, LTE_System_Toolbox, MATLAB, MATLAB_Coder, MATLAB_Compiler, MATLAB_Compiler_SDK, MATLAB_Distributed_Computing_Server, MATLAB_Production_Server, MATLAB_Report_Generator, Mapping_Toolbox, Model_Predictive_Control_Toolbox, Model_Based_Calibration_Toolbox, Neural_Network_Toolbox, OPC_Toolbox, Optimization_Toolbox, Parallel_Computing_Toolbox, Partial_Differential_Equation_Toolbox, Phased_Array_System_Toolbox, Polyspace_Bug_Finder, Polyspace_Code_Prover, Powertrain_Blockset, RF_Blockset, RF_Toolbox, Risk_Management_Toolbox, Robotics_System_Toolbox, Robust_Control_Toolbox, Signal_Processing_Toolbox, SimBiology, SimEvents, Simscape, Simscape_Driveline, Simscape_Electronics, Simscape_Fluids, Simscape_Multibody, Simscape_Power_Systems, Simulink, Simulink_3D_Animation, Simulink_Check, Simulink_Coder, Simulink_Control_Design, Simulink_Coverage, Simulink_Design_Optimization, Simulink_Design_Verifier, Simulink_Desktop_Real_Time, Simulink_PLC_Coder, Simulink_Real-Time, Simulink_Report_Generator, Simulink_Requirements, Simulink_Test, Spreadsheet_Link, Stateflow, Statistics_and_Machine_Learning_Toolbox, Symbolic_Math_Toolbox, System_Identification_Toolbox, Text_Analytics_Toolbox, Trading_Toolbox, Vehicle_Network_Toolbox, Vision_HDL_Toolbox, WLAN_System_Toolbox, Wavelet_Toolbox
---------------------------------------------
Error: Unrecognized products:
Simulink_Desktop_Real_Time
Fixed_Point_Designer
Model_Based_Calibration_Toolbox