Use Push-Location and Start-Process for ISCC
All checks were successful
Build and Release / build (push) Successful in 9h0m11s

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
David H. Friedel Jr. 2026-01-04 10:01:45 -05:00
parent 401d717adf
commit a33430faa0

View File

@ -48,12 +48,18 @@ jobs:
shell: powershell
run: |
Write-Host "Current directory: $(Get-Location)"
Push-Location DellMonitorControl
Write-Host "Changed to: $(Get-Location)"
Write-Host "Creating installer output directory..."
New-Item -ItemType Directory -Force -Path "DellMonitorControl\installer"
New-Item -ItemType Directory -Force -Path "installer" | Out-Null
Write-Host "Checking source files exist..."
Get-ChildItem "bin\Release\net9.0-windows" | Select-Object -First 5
Write-Host "Running Inno Setup..."
& "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" /O"DellMonitorControl\installer" "DellMonitorControl\MonitorControl.iss"
$process = Start-Process -FilePath "C:\Program Files (x86)\Inno Setup 6\ISCC.exe" -ArgumentList "MonitorControl.iss" -Wait -NoNewWindow -PassThru
Write-Host "ISCC exit code: $($process.ExitCode)"
Write-Host "Listing installer directory:"
Get-ChildItem "DellMonitorControl\installer"
Get-ChildItem "installer"
Pop-Location
- name: Create Release
shell: powershell