Visual Studio 2017 installer fails to launch VS2017 when DOpus replaces Explorer

When Directory Opus is set to replace explorer.exe, the VS2017 Installer fails to launch installed program "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\devenv.exe".
The executable is displayed in its directory, and selected, in a new DOpus lister.

This only happens if any of the settings Launching Opus > Explorer replacement > Replace Explorer (...) are set.
This happens even when the directory "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise" is listed in Replace Explorer for all but the following folders.

This does not happen happens if Launching Opus > Explorer replacement > Don't replace Explorer is set.

The actual VSInstaller log and stacktrace is:

2018-05-14T11:48:33 : Verbose : Calling SetupEngine.Installer.LaunchProduct. [installPath: 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise']
2018-05-14T11:48:33 : Verbose : SetupEngine.Installer.LaunchProduct reported error.  [InvalidOperationException: System.InvalidOperationException: No process is associated with this object.
   at System.Diagnostics.Process.EnsureState(State state)
   at System.Diagnostics.Process.EnsureState(State state)
   at System.Diagnostics.Process.get_MainWindowHandle()
   at Microsoft.VisualStudio.Setup.Services.Extensions.Start(IProcessService processService, String fileName, String arguments, Boolean showWindow)
   at Microsoft.VisualStudio.Setup.InstallerService.LaunchProductImpl(String installationPath)
   at Microsoft.VisualStudio.Setup.InstallerService.LaunchProduct(String installationPath) at InvalidOperationException: System.InvalidOperationException: No process is associated with this object.
   at System.Diagnostics.Process.EnsureState(State state)
   at System.Diagnostics.Process.EnsureState(State state)
   at System.Diagnostics.Process.get_MainWindowHandle()
   at Microsoft.VisualStudio.Setup.Services.Extensions.Start(IProcessService processService, String fileName, String arguments, Boolean showWindow)
   at Microsoft.VisualStudio.Setup.InstallerService.LaunchProductImpl(String installationPath)
   at Microsoft.VisualStudio.Setup.InstallerService.LaunchProduct(String installationPath)]
1 Like

Many thanks for reporting this.

We've fixed it for the next update.