Skip to content

Commit

Permalink
Fixed: Uninstaller now uses single quotes for nested paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed Oct 3, 2024
1 parent d6a7917 commit dbc942d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/NexusMods.App/Commandline/CleanupVerbs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ private static async Task DeleteRemainingFilesWindows(AbsolutePath[] appFiles, I
var scriptPath = Path.Combine(AppContext.BaseDirectory, "uninstall-helper.ps1");

// Execute the PowerShell script
var args = $"-ExecutionPolicy Bypass -Command \"& \'{scriptPath}\' -FilesToDeletePath \'{filesToDeletePath}\' -DirectoriesToDeletePath \'{directoriesToDeletePath}\'\"";
await Cli.Wrap("powershell")
.WithArguments($"-ExecutionPolicy Bypass -Command \"& \"{scriptPath}\" -FilesToDeletePath \"{filesToDeletePath}\" -DirectoriesToDeletePath \"{directoriesToDeletePath}\"\"")
.WithArguments(args)
.ExecuteAsync();

// Clean up the temporary files
Expand Down

0 comments on commit dbc942d

Please sign in to comment.