Windows Build Command line with spaces YAML

I can not get this cme.exe windows shell command (or power shell to run) it always fails with a syntax error. Here is what I have tried.

  • run:
    name: build inno installer
    shell: cmd.exe
    command: ‘“C:\Program Files (x86)\Inno Setup 6\ISCC.exe” .\WaiterServer\installer\innoScript.iss’

    • run:
      name: build inno installer
      shell: cmd.exe
      command: C:\Program Files (x86)\Inno Setup 6\ISCC.exe .\WaiterServer\installer\innoScript.iss
  • run:
    name: build inno installer
    shell: cmd.exe
    command: “C:\Program Files (x86)\Inno Setup 6\ISCC.exe” .\WaiterServer\installer\innoScript.iss

  • run:
    name: build inno installer
    shell: powershell.exe
    command: & “C:\Program Files (x86)\Inno Setup 6\ISCC.exe” .\WaiterServer\installer\innoScript.iss

My Latest efforts with this line in the file
command: "\"C:\\Program Files (x86)\\Inno Setup 6\\ISCC.exe\" .\\WaiterServer\\installer\\innoScript.iss"

have this error…
#!cmd.exe
“C:\Program Files (x86)\Inno Setup 6\ISCC.exe” .\WaiterServer\installer\innoScript.iss

‘“C:\Program Files (x86)\Inno Setup 6\ISCC.exe”’ is not recognized as an internal or external command,

operable program or batch file.
Exited with code exit status 1
CircleCI received exit code 1

Any help with the escaping would be appreciated, kinda tired of banging my head against this one…

Michael

InnoSetup is not in Windows docker image they use. You have to include it in your repo and via run command or batch file you have to install it before use:

In my build batch file I do:
echo ------------------------------------- Installing InnoSetup ---------------------------------------
%CD%\redist\innosetup-6.0.5.exe /VERYSILENT /NORESTART /ALLUSERS
echo ------------------------------------- Inno Setup Installed ---------------------------------------

Then call from the batch file again:
“C:/Program Files (x86)/Inno Setup 6/ISCC.exe” “./test.iss”

1 Like