From ba892240cb104c84a37e70ede2ebaa91f624a6f5 Mon Sep 17 00:00:00 2001 From: deepend Date: Sat, 14 Feb 2026 17:56:27 -0700 Subject: [PATCH] Fixed the Windows installer pre-build PowerShell invocation by replacing the bare powershell command with a configurable $(PowerShellPath) call in installer.vcxproj, and added stable flags (-NoProfile -ExecutionPolicy Bypass) to reduce environment-specific failures. This addresses the MSB3073/9009 command-not-found class of error you reported. Added a PowerShellPath resolution chain in zoitechat.props so builds can use: POWERSHELL_EXE override, %WINDIR%\System32\WindowsPowerShell\v1.0\powershell.exe when present, fallback powershell.exe from PATH. --- win32/installer/installer.vcxproj | 3 +-- win32/zoitechat.props | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/win32/installer/installer.vcxproj b/win32/installer/installer.vcxproj index 42397ccb..9dd90d2c 100644 --- a/win32/installer/installer.vcxproj +++ b/win32/installer/installer.vcxproj @@ -37,8 +37,7 @@ diff --git a/win32/zoitechat.props b/win32/zoitechat.props index 919c6e08..1d2868f9 100644 --- a/win32/zoitechat.props +++ b/win32/zoitechat.props @@ -91,6 +91,9 @@ $(ZoiteChatBuild)\$(PlatformName)\pdb\ $(ZoiteChatBuild)\$(PlatformName)\rel\ $(ISCC_EXE) + $(POWERSHELL_EXE) + $(WINDIR)\System32\WindowsPowerShell\v1.0\powershell.exe + powershell.exe $(ProgramFiles(x86))\Inno Setup 5\iscc.exe $(ProgramFiles(x86))\Inno Setup 6\iscc.exe $(ProgramFiles)\Inno Setup 5\iscc.exe