Modify installer project file for Inno Setup paths

Updated the installer project file to include checks for Inno Setup executable paths and added a directory creation command for the output path.
This commit is contained in:
deepend-tildeclub
2026-02-15 09:14:24 -07:00
committed by GitHub
parent 12470fd954
commit 8cbfb29a49

View File

@@ -26,7 +26,8 @@
<OutDir>$(ZoiteChatRel)</OutDir>
</PropertyGroup>
<PropertyGroup>
<IsccPath Condition="'$(IsccPath)'==''">"$(ProgramFiles)\Inno Setup 6\ISCC.exe"</IsccPath>
<IsccPath Condition="'$(IsccPath)'=='' and Exists('$(ProgramFiles(x86))\Inno Setup 6\ISCC.exe')">"$(ProgramFiles(x86))\Inno Setup 6\ISCC.exe"</IsccPath>
<IsccPath Condition="'$(IsccPath)'=='' and Exists('$(ProgramFiles)\Inno Setup 6\ISCC.exe')">"$(ProgramFiles)\Inno Setup 6\ISCC.exe"</IsccPath>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)'=='Release'">
<ClCompile>
@@ -40,6 +41,7 @@
<Command>
<![CDATA[
SET SOLUTIONDIR=$(SolutionDir)..\
if not exist "$(ZoiteChatBin)" mkdir "$(ZoiteChatBin)"
powershell -File "$(SolutionDir)..\win32\version-template.ps1" "$(SolutionDir)..\win32\installer\zoitechat.iss.tt" "$(ZoiteChatBin)zoitechat.iss"
$(IsccPath) /dPROJECTDIR="$(ProjectDir)" /dAPPARCH="$(Platform)" "$(ZoiteChatBin)zoitechat.iss"
]]>
@@ -58,3 +60,4 @@ $(IsccPath) /dPROJECTDIR="$(ProjectDir)" /dAPPARCH="$(Platform)" "$(ZoiteChatBin