Skip to content

Commit

Permalink
Improved: Show help menu for CLI installer, and set more sensible ove…
Browse files Browse the repository at this point in the history
…rride for DOTNET_ROOT and DOTNET_BUNDLE_EXTRACT_BASE_DIR
  • Loading branch information
Sewer56 committed Sep 20, 2024
1 parent 886b7eb commit 29e0ddd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions source/Reloaded.Mod.Installer.Cli/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ public class Program

public static void Main(string[] args)
{
Console.WriteLine("Reloaded-II CLI Installer\n" +
"Mode flags:\n" +
"--dependenciesOnly: Don't install Reloaded, just install runtimes.");

if (!TryRunCli(args))
InstallInCli();
}
Expand Down
7 changes: 4 additions & 3 deletions source/Reloaded.Mod.Installer.Lib/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,12 @@ await CheckAndInstallMissingRuntimesAsync(settings.InstallLocation, tempDownload

CurrentStepDescription = "All Set";

// On WINE, overwrite
// On WINE, overwrite environment variables that may be inherited
// from host permanently.
if (WineDetector.IsWine())
{
SetEnvironmentVariable("DOTNET_ROOT", "");
SetEnvironmentVariable("DOTNET_BUNDLE_EXTRACT_BASE_DIR", "");
SetEnvironmentVariable("DOTNET_ROOT", "%ProgramFiles%\\dotnet");
SetEnvironmentVariable("DOTNET_BUNDLE_EXTRACT_BASE_DIR", "%TEMP%\\.net");
}

if (settings.StartReloaded)
Expand Down

0 comments on commit 29e0ddd

Please sign in to comment.