From fb4fe05657c45483b75d146849bcf1a44a32a8cb Mon Sep 17 00:00:00 2001 From: tombohar Date: Sat, 18 Apr 2026 13:48:04 -0400 Subject: [PATCH] Fix temp .iss path: write alongside original, not in Output subdir Relative paths in RynthCore.iss (SetupIconFile, Source staging\app\*) are relative to installer\. Writing the temp file to installer\Output\ shifted these paths one level up, causing 'path not found' errors. Write to installer\RynthCore.tmp.iss instead and clean up after ISCC. Co-Authored-By: Claude Sonnet 4.6 --- installer/Build-Installer.ps1 | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/installer/Build-Installer.ps1 b/installer/Build-Installer.ps1 index 985daee..b2f6020 100644 --- a/installer/Build-Installer.ps1 +++ b/installer/Build-Installer.ps1 @@ -147,7 +147,9 @@ New-Item -ItemType Directory -Path "$ScriptDir\Output" -Force | Out-Null # /D flags to ISPP (the preprocessor chokes on them in some Inno Setup 6 # builds when the .iss file has specific content patterns). $issSource = "$ScriptDir\RynthCore.iss" -$issTmp = "$ScriptDir\Output\RynthCore.tmp.iss" +# Write temp file alongside the original so all relative paths (SetupIconFile, +# Source, staging\) still resolve from the installer\ directory. +$issTmp = "$ScriptDir\RynthCore.tmp.iss" $issContent = Get-Content $issSource -Raw if ($Version) { $issContent = $issContent -replace 'AppVersion=0\.0\.0', "AppVersion=$Version" @@ -155,8 +157,12 @@ if ($Version) { } Set-Content -Path $issTmp -Value $issContent -Encoding UTF8 -& $IsccPath $issTmp -if ($LASTEXITCODE -ne 0) { throw "ISCC build failed (exit $LASTEXITCODE)" } +try { + & $IsccPath $issTmp + if ($LASTEXITCODE -ne 0) { throw "ISCC build failed (exit $LASTEXITCODE)" } +} finally { + Remove-Item $issTmp -Force -ErrorAction SilentlyContinue +} Write-Host "" Write-Host "SUCCESS" -ForegroundColor Green