Skip to content

Error "Value of [Setup] section directive "OutputBaseFileName" is invalid." #126

@elendil-software

Description

@elendil-software

Hi,

When

- name: Compile .ISS to .EXE Installer
  if: ${{ inputs.build_installer == true }}
  uses: Minionguyjpro/Inno-Setup-Action@v1.2.7
  with:
    path: Output\InnoSetup\Setup.iss
    options: /Dversion=${{ steps.gitversion.outputs.MajorMinorPatch }} /DVersionInfoVersion=${{ steps.gitversion.outputs.MajorMinorPatch }}

which result in

Run Minionguyjpro/Inno-Setup-Action@v1.2.7
  with:
    path: Output\InnoSetup\Setup.iss
    options: /Dversion=0.1.0 /DVersionInfoVersion=0.1.0
  env:
     ...

I get the error

Error: Execution failed: Error on line 23 in D:\a\RefractionMeteoFileUpdater\RefractionMeteoFileUpdater\Output\InnoSetup\Setup.iss: Value of [Setup] section directive "OutputBaseFileName" is invalid.

Line 23 is

OutputBaseFilename=Refraction Meteo File Updater Setup v{#version}

and version is passed as parameter and a fallback value is defined at the begining of the script with

#ifndef version
  #define version "0.9.0"
#endif

This script works locally and when calling Inno Setup installed in action runner up to windows server 2022 (removed in windows server 2025)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions