We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 536a8ee commit 592452bCopy full SHA for 592452b
1 file changed
build/MicaSetup/Helper/System/TempPathForkHelper.cs
@@ -45,14 +45,9 @@ public static void Clean()
45
{
46
FluentProcess.Create()
47
.FileName("powershell.exe")
48
- .Arguments(
49
- $"""
50
- Start-Sleep -s 3;
51
- Remove-Item "{filePath}";
52
- Remove-Item "{tempPath}";
53
- """)
+ .Arguments($"-NoProfile -ExecutionPolicy Bypass -Command \"Start-Sleep -s 3; Remove-Item '{filePath}'; Remove-Item '{tempPath}';\"")
54
.UseShellExecute(false)
55
- .CreateNoWindow()
+ .CreateNoWindow(true)
56
.Start()
57
.Forget();
58
}
0 commit comments