Skip to content

Commit f02f8ef

Browse files
benhillisBen Hillis
andauthored
cleanup: remove duplicate AppId registration for wsldevicehost.dll (#13928)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
1 parent d48d374 commit f02f8ef

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

msipackage/package.wix.in

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -183,23 +183,14 @@
183183
<!-- WslDeviceHost_VirtioFs (admin) -->
184184
<RegistryKey Root="HKCR" Key="CLSID\{7e6ad219-d1b3-42d5-b8ee-d96324e64ff6}">
185185
<RegistryValue Value="WslDeviceHost_VirtioFs_Admin" Type="string"/>
186-
<RegistryValue Name="AppId" Value="{7F82AD86-755B-4870-86B1-D2E68DFE8A49}" Type="string"/>
186+
<RegistryValue Name="AppId" Value="{17696EAC-9568-4CF5-BB8C-82515AAD6C09}" Type="string"/>
187187

188188
<RegistryKey Key="InProcServer32">
189189
<RegistryValue Value="[INSTALLDIR]wsldevicehost.dll" Type="string"/>
190190
<RegistryValue Name="ThreadingModel" Value="Both" Type="string"/>
191191
</RegistryKey>
192192
</RegistryKey>
193193

194-
<RegistryKey Root="HKCR" Key="AppID\{7F82AD86-755B-4870-86B1-D2E68DFE8A49}">
195-
<RegistryValue Name="DllSurrogate" Value="" Type="string"/>
196-
<RegistryValue Name="AppIDFlags" Value="2048" Type="integer"/><!--0x800-->
197-
198-
<!-- O:BAG:BAD:(A;;CCDCSW;;;AU)(A;;CCDCSW;;;PS)(A;;CCDCSW;;;SY) -->
199-
<RegistryValue Name="AccessPermission" Value="01000480580000006800000000000000140000000200440003000000000014000B00000001010000000000050B000000000014000B00000001010000000000050A000000000014000B0000000101000000000005120000000102000000000005200000002002000001020000000000052000000020020000" Type="binary" />
200-
<RegistryValue Name="LaunchPermission" Value="01000480580000006800000000000000140000000200440003000000000014000B00000001010000000000050B000000000014000B00000001010000000000050A000000000014000B0000000101000000000005120000000102000000000005200000002002000001020000000000052000000020020000" Type="binary" />
201-
</RegistryKey>
202-
203194
<!-- WslDeviceHost_VirtioFs -->
204195
<RegistryKey Root="HKCR" Key="CLSID\{60285AE6-AAF3-4456-B444-A6C2D0DEDA38}">
205196
<RegistryValue Value="WslDeviceHost_VirtioFs" Type="string" />

src/windows/wslinstall/DllMain.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ extern "C" UINT __stdcall CleanMsixState(MSIHANDLE install)
461461
const std::map<LPCWSTR, LPCWSTR> keys{
462462
{L"SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application", L"WSL"},
463463
{L"SOFTWARE\\Classes\\CLSID", L"{7e6ad219-d1b3-42d5-b8ee-d96324e64ff6}"},
464-
{L"SOFTWARE\\Classes\\AppID", L"{7F82AD86-755B-4870-86B1-D2E68DFE8A49}"},
464+
{L"SOFTWARE\\Classes\\AppID", L"{17696EAC-9568-4CF5-BB8C-82515AAD6C09}"},
465465
{L"SOFTWARE\\Microsoft\\Terminal Server Client", L"Default"},
466466
{L"SOFTWARE\\Microsoft\\Terminal Server Client\\Default", L"OptionalAddIns"},
467467
{L"SOFTWARE\\Microsoft\\Terminal Server Client\\Default\\OptionalAddIns", L"WSLDVC_PACKAGE"}};

test/windows/UnitTests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2312,7 +2312,7 @@ Error code: Wsl/InstallDistro/WSL_E_DISTRO_NOT_FOUND
23122312
const std::vector<LPCWSTR> serviceKeys{
23132313
L"SOFTWARE\\Microsoft\\Terminal Server Client\\Default\\OptionalAddIns\\WSLDVC_PACKAGE",
23142314
L"SOFTWARE\\Classes\\CLSID\\{7e6ad219-d1b3-42d5-b8ee-d96324e64ff6}",
2315-
L"SOFTWARE\\Classes\\AppID\\{7F82AD86-755B-4870-86B1-D2E68DFE8A49}"};
2315+
L"SOFTWARE\\Classes\\AppID\\{17696EAC-9568-4CF5-BB8C-82515AAD6C09}"};
23162316

23172317
for (const auto* keyName : serviceKeys)
23182318
{

0 commit comments

Comments
 (0)