From 6bdcb21723bc8deea791091268b954e0fae90eba Mon Sep 17 00:00:00 2001 From: Michael Krisper <michael.krisper@tugraz.at> Date: Wed, 16 Feb 2022 18:09:19 +0100 Subject: [PATCH] Changed AppPath to parent directory --- HashingTool/MainWindow.xaml.cs | 4 ++-- VECTO/ApplicationEvents.vb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/HashingTool/MainWindow.xaml.cs b/HashingTool/MainWindow.xaml.cs index 34680d35ec..6df0c8c1fc 100644 --- a/HashingTool/MainWindow.xaml.cs +++ b/HashingTool/MainWindow.xaml.cs @@ -62,10 +62,10 @@ namespace HashingTool private void Help_OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e) { - var myAppPath = AppDomain.CurrentDomain.BaseDirectory; + var myAppPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, ".."); if (File.Exists(myAppPath + @"User Manual\HashingToolHelp.html")) { var defaultBrowserPath = BrowserHelper.GetDefaultBrowserPath(); - Process.Start(defaultBrowserPath, $"\"file://{myAppPath}{@"User Manual\HashingToolHelp.html"}\""); + Process.Start(defaultBrowserPath, $"\"file://{Path.Combine(myAppPath, @"User Manual\HashingToolHelp.html")}\""); } else { MessageBox.Show("User Manual not found!", "Error", MessageBoxButton.OK, MessageBoxImage.Error); } diff --git a/VECTO/ApplicationEvents.vb b/VECTO/ApplicationEvents.vb index 0d3f86104b..8a39fabeeb 100644 --- a/VECTO/ApplicationEvents.vb +++ b/VECTO/ApplicationEvents.vb @@ -45,7 +45,7 @@ Namespace My Dim i As Integer 'Paths - MyAppPath = Application.Info.DirectoryPath + MyAppPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "..") ReadInstallMode() -- GitLab