Warn before opening downloaded WSL distributions (#41214)
Mark the WSLDistributionTar ProgId as always unsafe so Attachment Manager prompts before opening internet-zone .wsl files. Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 07f017b2-9e33-4595-97ce-0f45c5e4d06f
Ben Hillis committed
Aug 3, 2026 at 09:50 UTC
873ea3fe47046f0ff0b4a7b678eb486b246bf8be
1 file changed
+4
msipackage/package.wix.in
+4
@@ -139,6 +139,10 @@
139
<Verb Id="open" Command="open" TargetFile="wsl.exe" Argument="--install --prompt-before-exit --from-file "%1"" />
140
</Extension>
141
</ProgId>
142
+ <RegistryKey Root="HKLM" Key="SOFTWARE\Classes\WSLDistributionTar">
143
+ <!-- FTA_AlwaysUnsafe -->
144
+ <RegistryValue Name="EditFlags" Value="131072" Type="integer" />
145
+ </RegistryKey>
146
</Component>
147
148
<Component Id="wslservice" Guid="F0C8D6BA-1502-41E7-BF72-D93DFA134735" UninstallWhenSuperseded="yes" DisableRegistryReflection="yes" Bitness="always64">