Skip to content

Commit

Permalink
feat: clean up by bypass ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
emako committed Jan 12, 2025
1 parent 536a8ee commit 592452b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions build/MicaSetup/Helper/System/TempPathForkHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,9 @@ public static void Clean()
{
FluentProcess.Create()
.FileName("powershell.exe")
.Arguments(
$"""
Start-Sleep -s 3;
Remove-Item "{filePath}";
Remove-Item "{tempPath}";
""")
.Arguments($"-NoProfile -ExecutionPolicy Bypass -Command \"Start-Sleep -s 3; Remove-Item '{filePath}'; Remove-Item '{tempPath}';\"")
.UseShellExecute(false)
.CreateNoWindow()
.CreateNoWindow(true)
.Start()
.Forget();
}
Expand Down

0 comments on commit 592452b

Please sign in to comment.