amake / innosetup-docker

Docker image to create Windows installer executables with Inno Setup
https://hub.docker.com/r/amake/innosetup
Creative Commons Zero v1.0 Universal
71 stars 31 forks source link

Could not copy "C:\Program Files\Inno Setup 6\SETUP.E32" #11

Open armankarapetyandc opened 1 year ago

armankarapetyandc commented 1 year ago

The issue with running the docker image. See below.

Status: Downloaded newer image for amake/innosetup:latest
Inno Setup 6 Command-Line Compiler
Copyright (C) 1997-2022 Jordan Russell. All rights reserved.
Portions Copyright (C) 2000-2022 Martijn Laan. All rights reserved.
Portions Copyright (C) 2001-2004 Alex Yackimoff. All rights reserved.
https://www.innosetup.com/

Compiler engine version: Inno Setup 6.2.1

Preprocessing
   Reading file: C:\Program Files\Inno Setup 6\ISPPBuiltins.iss
Parsing [Setup] section, line 16
Parsing [Setup] section, line 17
Parsing [Setup] section, line 18
Parsing [Setup] section, line 20
Parsing [Setup] section, line 21
Parsing [Setup] section, line 22
Parsing [Setup] section, line 23
Parsing [Setup] section, line 24
Parsing [Setup] section, line 26
Parsing [Setup] section, line 27
Parsing [Setup] section, line 30
Parsing [Setup] section, line 31
Parsing [Setup] section, line 32
Parsing [Setup] section, line 33
Parsing [Setup] section, line 34
Parsing [Setup] section, line 35
Reading file (WizardImageFile)
Reading file (WizardSmallImageFile)
Preparing Setup program executable
Error in Z:\work\wizard.iss: Could not copy "C:\Program Files\Inno Setup 6\SETUP.E32" to "Z:\work\Output\LauncherSetup.e32.tmp".

Error 5: Access denied.
Compile aborted.

This is my YAML file for GitHub Actions

name: Windows Install

on: 
  workflow_dispatch: {}

jobs:
    makeWindowsInstaller:
        name: "Make Install"
        runs-on: ubuntu-latest
        steps:
          - name: "Working"
            run: |
              mkdir working
              chmod 777 working
              cd working
              curl https://MYSERVER/files.zip -L -o files.zip
              curl https://MYSERVER/wizard.iss -L -o wizard.iss
              unzip files.zip
              mkdir Output
              docker run --rm -i -v "$PWD:/work" amake/innosetup wizard.iss  

Who can deal with this problem, and how can I solve it?

miurahr commented 1 year ago

There is a workaround https://github.com/amake/innosetup-docker/issues/7#issuecomment-1312605128

miurahr commented 1 year ago

My workaround is "mkdir -p build && chmod -R a+w build" and "umask a+w " before the job.