mirror of
https://github.com/Difegue/Karen
synced 2025-01-08 11:58:02 +08:00
Minor setup optimization since DistroInstaller already handles distro removal
This commit is contained in:
parent
c6b8c6b80d
commit
21a1cfaab0
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user