Add ISCC path for pre-build event

Added ISCC path configuration for Inno Setup.
This commit is contained in:
deepend-tildeclub
2026-02-14 23:18:26 -07:00
committed by GitHub
parent 4c3b8cbec7
commit 1c4fd1d02d

View File

@@ -25,6 +25,9 @@
<PropertyGroup> <PropertyGroup>
<OutDir>$(ZoiteChatRel)</OutDir> <OutDir>$(ZoiteChatRel)</OutDir>
</PropertyGroup> </PropertyGroup>
<PropertyGroup>
<IsccPath Condition="'$(IsccPath)'==''">$(ProgramFiles(x86))\Inno Setup 5\ISCC.exe</IsccPath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'"> <ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
<ClCompile> <ClCompile>
</ClCompile> </ClCompile>
@@ -36,12 +39,9 @@
<PreBuildEvent> <PreBuildEvent>
<Command> <Command>
<![CDATA[ <![CDATA[
set "SOLUTIONDIR=$(SolutionDir)..\" SET SOLUTIONDIR=$(SolutionDir)..\
powershell -File "$(SolutionDir)..\win32\version-template.ps1" "$(SolutionDir)..\win32\installer\zoitechat.iss.tt" "$(ZoiteChatBin)zoitechat.iss"
powershell -NoProfile -ExecutionPolicy Bypass -File "%SOLUTIONDIR%win32\version-template.ps1" "%SOLUTIONDIR%win32\installer\zoitechat.iss.tt" "$(ZoiteChatBin)zoitechat.iss" ^ $(IsccPath) /dPROJECTDIR="$(ProjectDir)" /dAPPARCH="$(Platform)" "$(ZoiteChatBin)zoitechat.iss"
&& if /I "$(Platform)"=="Win32" (set "APPARCH=x86") else (set "APPARCH=x64") ^
&& if not exist "$(IsccPath)" (echo ISCC not found: $(IsccPath) & exit /b 9009) ^
&& "$(IsccPath)" /dPROJECTDIR="$(ProjectDir)" /dAPPARCH="%APPARCH%" "$(ZoiteChatBin)zoitechat.iss"
]]> ]]>
</Command> </Command>
</PreBuildEvent> </PreBuildEvent>
@@ -55,3 +55,4 @@ powershell -NoProfile -ExecutionPolicy Bypass -File "%SOLUTIONDIR%win32\version-
</Project> </Project>