Error installing Visual Studio 2017 RC – “A product matching the following parameters cannot be found”

I received this error attempting to install Visual Studio 2017 RC:

A product matching the following parameters cannot be found:

channelId: VisualStudio15.Release
productId: Microsoft.VisualStudio.Product.Enterprise

This can occur if you have a previous version of Visual Studio ’15’ installed. It can also occur if your version of Visual Studio ’15’ failed to install or uninstall completely.

I was able to get Visual Studio 2017 RC to install successfully by deleting the C:\Program Files (x86)\Microsoft Visual Studio folder. This ensured that the Visual Studio Installer correctly downloaded the new program files.

Hope this helps, happy coding.