# Build Installer Script - Fixed! ## ✅ Syntax Error Resolved **Problem:** Extra closing brace at line 75 **Solution:** Removed the mismatched brace **Status:** Ready to run! --- ## How to Use ### Quick Build ```powershell cd E:\Projects\pgsql-jellyfin .\build-installer.ps1 ``` ### Custom Version ```powershell .\build-installer.ps1 -Version "11.0.1" ``` ### Skip Build (Use Existing DLLs) ```powershell .\build-installer.ps1 -SkipBuild ``` ### Debug Configuration ```powershell .\build-installer.ps1 -Configuration Debug ``` --- ## What Happens When You Run It 1. ✅ **Checks prerequisites** - Verifies Inno Setup is installed - Checks for lib folder 2. ✅ **Builds solution** (unless -SkipBuild) - Cleans previous build - Builds Jellyfin.Server in Release mode - Outputs to lib\Release\net11.0\ 3. ✅ **Prepares installer script** - Updates version number - Creates output directory 4. ✅ **Compiles installer** - Runs Inno Setup compiler - Creates .exe in installer-output\ 5. ✅ **Shows results** - File name, size, location - Opens output folder --- ## Expected Output ``` ╔══════════════════════════════════════════════════════════╗ ║ Jellyfin PostgreSQL Installer Builder ║ ╚══════════════════════════════════════════════════════════╝ Checking prerequisites... ✅ Inno Setup found Building Jellyfin solution... Cleaning previous build... Building Release configuration... ✅ Build successful 📊 Built 121 DLL files Preparing installer script... ✅ Version updated to 11.0.0 Building installer... Script: E:\Projects\pgsql-jellyfin\jellyfin-setup.iss Output: E:\Projects\pgsql-jellyfin\installer-output ✅ Installer built successfully! ╔══════════════════════════════════════════════════════════╗ ║ Installer Build Complete! ✅ ║ ╚══════════════════════════════════════════════════════════╝ 📦 Installer Details: File: JellyfinSetup-PostgreSQL-11.0.0.exe Path: E:\Projects\pgsql-jellyfin\installer-output\JellyfinSetup-PostgreSQL-11.0.0.exe Size: 45.3 MB Date: 2026-02-26 7:15:23 PM ``` --- ## Troubleshooting ### "Inno Setup not found" ```powershell winget install JRSoftware.InnoSetup ``` ### "Build folder not found" ```powershell # Build the solution first dotnet build Jellyfin.Server --configuration Release ``` ### "Installer script not found" ```powershell # Make sure jellyfin-setup.iss is in the solution root ls jellyfin-setup.iss ``` ### Build fails ```powershell # Check for compilation errors dotnet build Jellyfin.Server --configuration Release ``` --- ## Testing Your Installer ### Normal Install ```powershell .\installer-output\JellyfinSetup-PostgreSQL-11.0.0.exe ``` ### Silent Install ```powershell .\installer-output\JellyfinSetup-PostgreSQL-11.0.0.exe /VERYSILENT /LOG=install.log ``` ### Install Without Service ```powershell .\installer-output\JellyfinSetup-PostgreSQL-11.0.0.exe /TASKS="!service" ``` ### Uninstall ```powershell # From Control Panel > Programs and Features # Or from Start Menu > Jellyfin PostgreSQL > Uninstall ``` --- ## All Fixed and Ready! ✅ The syntax error has been corrected and the script is now ready to use. Just run: `.\build-installer.ps1`