Skip to content

Latest commit

 

History

History
266 lines (197 loc) · 7.4 KB

DISTRIBUTION.md

File metadata and controls

266 lines (197 loc) · 7.4 KB

Entity Class Generator - Distribution Guide

Version: 1.0.0
Build Date: 2026-08-04

📦 Distribution Packages

We provide two distribution options for Entity Class Generator:

1. Portable ZIP (Recommended for most users)

  • File: EntityClassGenerator-v1.0.0-Portable-win-x64.zip (~82 MB)
  • No installation required - just extract and run
  • Self-contained - includes .NET runtime
  • Perfect for: USB drives, network shares, testing, isolated environments

How to use:

# Build portable version
.\Build-Portable.ps1

# Output
publish/EntityClassGenerator-v1.0.0-Portable-win-x64.zip

2. Installer (Inno Setup)

  • File: EntityClassGenerator-v1.0.0-Setup.exe (~60 MB)
  • Traditional Windows installer with Start Menu integration
  • Features: Desktop shortcut (optional), uninstaller, silent installation support
  • Perfect for: Enterprise deployment, end users, permanent installations

How to build:

# Prerequisites: Install Inno Setup 6.x from https://jrsoftware.org/isdl.php

# Build installer
.\Build-InnoSetup.ps1

# Output
publish/EntityClassGenerator-v1.0.0-Setup.exe

3. MSIX Package (Optional, for Windows Store)

  • File: EntityClassGenerator-v1.0.0-Setup.msix
  • Modern Windows app packaging with auto-update support
  • Requires: Windows SDK to build

How to build:

# Prerequisites: Install Windows SDK

# Build MSIX
.\Build-MSIX.ps1

# Sign with test certificate (optional)
.\Build-MSIX.ps1 -Sign

# Output
publish/EntityClassGenerator-v1.0.0-Setup.msix

🔧 Building All Packages

# 1. Build portable version (always build this first!)
.\Build-Portable.ps1

# 2. Build installer (requires Inno Setup)
.\Build-InnoSetup.ps1

# 3. Build MSIX (requires Windows SDK)
.\Build-MSIX.ps1 -Sign

# All outputs go to: publish/

📋 System Requirements

For End Users:

  • OS: Windows 10 (v1809+) or Windows 11
  • Architecture: x64 (64-bit)
  • RAM: 4 GB minimum (8 GB recommended)
  • Disk Space: 250 MB for installed app
  • SQL Server: Local or remote access required

For Building:

  • .NET 10 SDK (for building from source)
  • Inno Setup 6.x (for .exe installer, optional)
  • Windows SDK (for MSIX package, optional)

🚀 Installation Methods

Method 1: Portable (No Installation)

  1. Download EntityClassGenerator-v1.0.0-Portable-win-x64.zip
  2. Extract to any folder (e.g., C:\Tools\EntityClassGenerator)
  3. Run EntityClassGenerator.App.exe
  4. Done! No registry changes, no Start Menu entries

Method 2: Installer (.exe)

  1. Download EntityClassGenerator-v1.0.0-Setup.exe
  2. Double-click to run installer
  3. Follow installation wizard
  4. Launch from Start Menu: "Entity Class Generator"

Silent installation (for IT admins):

EntityClassGenerator-v1.0.0-Setup.exe /VERYSILENT /NORESTART /DIR="C:\Program Files\EntityClassGenerator"

Method 3: MSIX (Microsoft Store style)

  1. Download EntityClassGenerator-v1.0.0-Setup.msix
  2. Double-click to install
  3. If prompted about certificate trust, click "Install anyway" or add certificate to Trusted People
  4. Launch from Start Menu

📂 Distribution Contents

Portable ZIP includes:

EntityClassGenerator.App.exe         (Main application)
EntityClassGenerator.Core.dll        (Business logic)
EntityClassGenerator.Infrastructure.dll (SQL & I/O)
*.dll                                (Dependencies & .NET runtime)
README.txt                           (User guide)
TECHNICAL_DOCS.md                    (Developer docs)
appsettings.json                     (Configuration)

Installer includes:

  • All portable files
  • Start Menu shortcuts
  • Desktop icon (optional)
  • Uninstaller
  • Registry entries for Add/Remove Programs

🎯 Which Distribution to Use?

Scenario Recommended Package
Quick testing Portable ZIP
USB drive / portable usage Portable ZIP
Network share deployment Portable ZIP
End-user installation Inno Setup Installer
Enterprise deployment (silent) Inno Setup Installer
Microsoft Store submission MSIX Package
Auto-update support MSIX Package

📊 Package Sizes

Package Compressed Installed
Portable ZIP ~82 MB ~195 MB
Inno Setup Installer ~60 MB ~195 MB
MSIX Package ~70 MB ~195 MB

All packages are self-contained (include .NET 10 runtime).


🔐 Security & Signing

Code Signing (Recommended for Production)

For production releases, sign your executables with a code-signing certificate:

Sign Inno Setup installer:

# After building, sign with your certificate
signtool.exe sign /fd SHA256 /tr http://timestamp.digicert.com /td SHA256 /f YourCertificate.pfx /p YourPassword publish\EntityClassGenerator-v1.0.0-Setup.exe

Sign MSIX package:

# Build with signing
.\Build-MSIX.ps1 -Sign

# Or manually sign
signtool.exe sign /fd SHA256 /a /f YourCertificate.pfx /p YourPassword publish\EntityClassGenerator-v1.0.0-Setup.msix

SmartScreen & Trust

Unsigned installers may trigger Windows SmartScreen warnings. Users can click "More info" → "Run anyway" or you can:

  1. Obtain an EV code-signing certificate (~$300/year)
  2. Build reputation by having many users run your installer
  3. Distribute via Microsoft Store (MSIX packages)

🛠️ Customizing Builds

Change Version Number

Edit these files before building:

  • src/EntityClassGenerator.App/EntityClassGenerator.App.csproj → <Version>1.0.0</Version>
  • Build-Portable.ps1 → $zipFileName = "EntityClassGenerator-v1.0.0-..."
  • packaging/innosetup/installer.iss → #define MyAppVersion "1.0.0"
  • packaging/msix/Package.appxmanifest → Version="1.0.0.0"

Change Publisher/Company

  • Inno Setup: Edit installer.iss → #define MyAppPublisher "Your Company"
  • MSIX: Edit Package.appxmanifest → Publisher="CN=YourCompany" and PublisherDisplayName

Change App Icon

Replace src/EntityClassGenerator.App/app.ico with your custom 256x256 icon.


📝 Testing Before Release

Checklist:

  • Run portable version on clean VM
  • Install with Inno Setup installer
  • Test uninstaller
  • Verify Start Menu shortcuts work
  • Test on Windows 10 and Windows 11
  • Connect to a supported engine and generate entities
  • Check all features (wizard, profiles, recent connections)
  • Review README.txt included in portable ZIP
  • Scan with antivirus/Windows Defender

🚢 Distribution Checklist

Before publishing, ensure:

  1. ✅ Version numbers are consistent across all files
  2. ✅ README files are updated
  3. ✅ Changelog/release notes are written
  4. ✅ All packages built successfully
  5. ✅ Tested on clean Windows 10/11 VM
  6. ✅ Code signed (if applicable)
  7. ✅ GitHub release created with all packages
  8. ✅ SHA-256 checksums published

Generate Checksums

cd publish
Get-FileHash *.zip, *.exe, *.msix -Algorithm SHA256 | Format-Table -AutoSize > CHECKSUMS.txt

📞 Support & Links


📜 License

Open Source - See LICENSE file for details.


Last updated: 2026-08-04