MATLAB: Error Installing 2014a Installer has encountered a Problem and quits

2014ainstallation errorMATLAB

I am unable to install the new version of MatLab 2014a. I had the previous prerelease and my error file is below. I currently have no functioning copy of matlab! HELP!
(Mar 12, 2014 10:32:51) Task MATLAB R2014a Startup Accelerator for C:\Program Files\MATLAB\R2014a\bin\win64\MATLABStartupAccelerator.exe exists (Mar 12, 2014 10:32:51) Stopping task MATLAB R2014a Startup Accelerator (Mar 12, 2014 10:32:51) java.lang.NullPointerException at com.mathworks.install.ComponentSizeAggregator.add(ComponentSizeAggregator.java:13) at com.mathworks.install.ProductInstallerImpl.downloadProducts(ProductInstallerImpl.java:96) at com.mathworks.install.ProductInstallerImpl.installProducts(ProductInstallerImpl.java:57) at com.mathworks.install.InstallerImpl.install(InstallerImpl.java:96) at com.mathworks.installwizard.model.InstallTask.execute(InstallTask.java:46) at com.mathworks.installwizard.model.AbstractBackgroundTask.execute(AbstractBackgroundTask.java:38) at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:73) at com.mathworks.installwizard.model.AbstractTask.call(AbstractTask.java:23) at com.mathworks.wizard.worker.WorkerImpl.doInBackground(WorkerImpl.java:24) at javax.swing.SwingWorker$1.call(Unknown Source) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at javax.swing.SwingWorker.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
(Mar 12, 2014 10:32:51) Error: The application encountered an unexpected error and needs to close. You may want to try re-installing your product(s). More information can be found at C:\Users\Tom\AppData\Local\Temp\mathworks_Tom.log (Mar 12, 2014 10:32:52) Exiting with status -1 (Mar 12, 2014 10:32:52) End – Unsuccessful

Best Answer

The other solution that you commented on is correct. The directory that you have to remove will look like:
C:\Users\[yourusername]\Downloads\MathWorks\R2014a
Delete the whole MathWorks directory.