diff --git a/Wox/Wox.csproj b/Wox/Wox.csproj
index 48a5c8697b..eaebb9a722 100644
--- a/Wox/Wox.csproj
+++ b/Wox/Wox.csproj
@@ -462,7 +462,7 @@
- powershell.exe -NoProfile -File $(SolutionDir)Scripts\post_build.ps1 $(ConfigurationName) $(SolutionDir)
+ powershell -command "$policy = Get-ExecutionPolicy"; "Set-ExecutionPolicy RemoteSigned"; "'-NoProfile -File $(SolutionDir)Scripts\post_build.ps1 $(ConfigurationName) $(SolutionDir)'"; "Set-ExecutionPolicy $policy"
taskkill /f /fi "IMAGENAME eq Wox.exe"