This repository was archived by the owner on Jan 7, 2025. It is now read-only.
File tree 2 files changed +2
-11
lines changed 2 files changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ int wmain(int argc, wchar_t const *argv[])
86
86
// Ensure that the Windows Subsystem for Linux optional component is installed.
87
87
DWORD exitCode = 1 ;
88
88
if (!g_wslApi.WslIsOptionalComponentInstalled ()) {
89
- Helpers::PrintMessage (MSG_MISSING_OPTIONAL_COMPONENT );
89
+ Helpers::PrintErrorMessage ( HRESULT_FROM_WIN32 (ERROR_LINUX_SUBSYSTEM_NOT_PRESENT) );
90
90
if (arguments.empty ()) {
91
91
Helpers::PromptForInput ();
92
92
}
@@ -156,10 +156,7 @@ int wmain(int argc, wchar_t const *argv[])
156
156
157
157
// If an error was encountered, print an error message.
158
158
if (FAILED (hr)) {
159
- if (hr == HRESULT_FROM_WIN32 (ERROR_LINUX_SUBSYSTEM_NOT_PRESENT)) {
160
- Helpers::PrintMessage (MSG_MISSING_OPTIONAL_COMPONENT);
161
-
162
- } else if (hr == HCS_E_HYPERV_NOT_INSTALLED) {
159
+ if (hr == HCS_E_HYPERV_NOT_INSTALLED) {
163
160
Helpers::PrintMessage (MSG_ENABLE_VIRTUALIZATION);
164
161
165
162
} else {
Original file line number Diff line number Diff line change @@ -78,12 +78,6 @@ Language=English
78
78
Press any key to continue...
79
79
.
80
80
81
- MessageId =1012 SymbolicName =MSG_MISSING_OPTIONAL_COMPONENT
82
- Language =English
83
- The Windows Subsystem for Linux optional component is not enabled. Please enable it and try again.
84
- See https://aka.ms/wslinstall for details.
85
- .
86
-
87
81
MessageId =1013 SymbolicName =MSG_INSTALL_ALREADY_EXISTS
88
82
Language =English
89
83
The distribution installation has become corrupted.
You can’t perform that action at this time.
0 commit comments