Skip to content
pubscout

innosetup

0.1.3, released 4 years ago by aswinmurali.dev

Make Windows installers for Flutter and Dart apps using Inno Setup.

$ flutter pub add innosetup
Source repository

What it does

Allows developers to define Windows installer configurations directly in Dart and compile them using Inno Setup. It generates the installation script and invokes the Inno Setup compiler (iscc).

AI-written summary of version 0.1.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to package a Flutter or Dart desktop app into a Windows installer.
  • You want to configure Inno Setup scripts using Dart code instead of raw Inno Setup script files.

Skip it when

  • You are targeting platforms other than Windows for installation creation.
  • You do not want to require Inno Setup installed on the build machine.

Strengths

  • Declarative configuration of Inno Setup scripts via Dart.
  • Supports advanced features like custom compression, app URLs, icons, and licensing prompts.

Weaknesses

  • Depends on an external tool (Inno Setup / iscc compiler) being available on the host machine.
  • Limited strictly to Windows installer creation.

Setup

Kind
Pure Dart
Effort
Medium
Code generation
No
Direct dependencies
2

Requires Inno Setup installed on the host machine and available to the build environment.

InnoSetup(
  app: InnoSetupApp(
    name: 'Test App',
    version: Version.parse('0.1.0'),
    publisher: 'author',
    urls: InnoSetupAppUrls(
      homeUrl: Uri.parse('https://example.com/'),
    ),
  ),
  files: InnoSetupFiles(
    executable: File('build/windows/runner/test_app.exe'),
    location: Directory('build/windows/runner'),
  ),
  name: const InnoSetupName('windows_installer'),
  location: InnoSetupInstallerDirectory(
    Directory('build/windows'),
  ),
  icon: InnoSetupIcon(
    File('assets/icon.ico'),
  ),
).make();

Alternatives

Packages that do the same job and could replace innosetup.

Works with

Packages commonly used together with innosetup: ones it builds on, ones built on it, and its own family.