diff --git a/HashingTool/MainWindow.xaml.cs b/HashingTool/MainWindow.xaml.cs index 34680d35ec702702471214ab103d460410f044f0..6df0c8c1fc2d74bf1bae9392e0387d4ef0bb3295 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 0d3f86104b96334d0af42c231e89606a2c090074..8a39fabeeb669fe95f2c2b56e671ae90e079ce39 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()