Skip to content

Commit

Permalink
Fix updater handling of file paths with spaces
Browse files Browse the repository at this point in the history
Fixes #44 (hopefully)
  • Loading branch information
Sparronator9999 committed Jan 17, 2025
1 parent cfec250 commit 5e45ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YAMDCC.Updater/UpdateForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ private void InstallUpdate()
// run the installer from a different location so we can
// clean the old directory
Utils.RunCmd(Path.Combine(OldPath, ExeName),
$"--install {OldPath} {UpdatePath} {TargetPath}", false);
$"--install \"{OldPath}\" \"{UpdatePath}\" \"{TargetPath}\"", false);
Close();
}
catch (Win32Exception ex)
Expand Down

0 comments on commit 5e45ff6

Please sign in to comment.