Minor setup optimization since DistroInstaller already handles distro removal

This commit is contained in:
Difegue 2022-07-26 18:57:58 +02:00
parent c6b8c6b80d
commit 21a1cfaab0

View File

@ -104,10 +104,10 @@ namespace Setup
#if DEBUG
Debugger.Launch();
#endif
var result = UnRegisterWslDistro(session);
if (session.IsUninstalling())
return result;
{
return UnRegisterWslDistro(session);
}
var packageLocation = session.Property("INSTALLDIR") + @"package.tar";
var distroInstaller = session.Property("INSTALLDIR") + @"DistroInstaller.exe";