resolveInnoExec static method

File? resolveInnoExec()

Resolves the Inno Setup executable to use, or null when none is present.

Prefers a version-managed silent install under innoManagedVersionsDir (highest version first), then falls back to a system/user installed Inno Setup (e.g. installed separately by the user). It does not trigger any installation here.

Implementation

static File? resolveInnoExec() {
  final versioned = installedVersionedIsccs();
  if (versioned.isNotEmpty) return versioned.first;
  return getMachineInnoExec(throwIfNotFound: false);
}