Advanced Installer GitHub Action hanging when Preparing files - Advanced Installer Community
jchu
Posts: 2
Joined: Wed Jan 14, 2026 7:29 pm

Advanced Installer GitHub Action hanging when Preparing files

I am encountering strange behavior that is blocking all of our builds, where the Advanced Installer build action is not completing, even after hours. The builds seem to be hanging at the Preparing files stage:

Code: Select all

[ DefaultBuild ]
Building package: D:\a\<redacted-dir-name>\dist\<redacted-app-name>.msi
Prepare build
Preparing files
Our last successful build was on GitHub Actions as of 9:38 AM PST on Tuesday 1/13. By 12:09 PM PST on Tuesday 1/13, it had started hanging.
There have been no changes to our Advanced Installer project recently, nor anything else that touched our build pipeline (between our most recent successful build and now, this hanging build).

We have eliminated as possibilities:
- changes in the GH runner instance and image (no changes between working build and hanging build, additionally, tried with windows-2022 instead of windows-latest)
- changes in the workflow file we are using (no changes between working build and hanging build)
- differences in Advanced Installer version (tried an .aip file saved in both 23.3 and 23.2)
- differences in signing (tried with signing enabled with necessary env variables and disabled)


Creating a fork of the advanced-installer-action repo to show the output of the builder when running:

Code: Select all

  [ DefaultBuild ] 
   
  Building package: Building package: D:\a\<redacted-dir-name>\dist\<redacted-app-name>.msiD:\a\<redacted-dir-name>\dist\<redacted-app-name>.msi 
   
  Prepare buildPrepare build 
   
  Preparing filesPreparing files 

Our invocation of the GitHub Action is as follows:

Code: Select all

- name: Build ${{ inputs.file_extension }} package
        if: ${{ steps.check-tokens.outputs.skip_build == 'false' }}
        id: build-package
        uses: caphyon/advinst-github-action@main
        with:
          advinst-license: ${{ env.ADVINST_LICENSE_KEY }}
          advinst-enable-automation: 'true'
          aip-path: windows-installer\installer\<redacted-name>.aip
          aip-build-name: ${{ inputs.aip_build_name }}
          aip-package-name: <redacted-name>.${{ inputs.file_extension }}
          aip-output-dir: ${{ github.workspace }}\dist
          aip-commands: |
            UpdateFile "APPDIR\[|ProductNameSuffixed][|AgentVersion]\<redacted-name>.exe" ${{ env.exe_path }}
            AddFolder "APPDIR\[|ProductNameSuffixed][|AgentVersion]" ${{ github.workspace }}\dist\<redacted-name> -install_in_parent_folder
            UpdateFile "APPDIR\[|ProductNameSuffixed][|AgentVersion]\<redacted-name>\NEW_VERSION" -name VERSION
            SetVersion ${{ contains(inputs.agent_version, 'dev') && '0.0.0' || inputs.agent_version }}
            SetProductCode -langid 1033
            SetProperty AgentVersion="${{ inputs.agent_version }}"
            SetProperty <redacted-name>Name="${{ inputs.<redacted-name>_name }}"
            SetProperty PlatformVersion="${{ env.PLATFORM_VERSION }}"
            SetPackageType ${{ inputs.architecture }}
            ${{
              inputs.architecture == 'x64' 
                && format('SetAppdir -buildname {0} -path [ProgramFiles64Folder][Manufacturer]', inputs.aip_build_name)
                || ''
            }}
            
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Advanced Installer GitHub Action hanging when Preparing files

Hello and welcome to our forums,

Thank you for bringing the issue to our attention. We greatly appreciate your feedback. I want to inform you that our development team is already aware of this issue and is actively investigating it. Rest assured that your concern is receiving the attention it deserves. We will keep you updated on the progress.

We understand the impact it has on your experience, and we are committed to delivering a resolution as quickly as possible.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Advanced Installer GitHub Action hanging when Preparing files

Hello,

It seems that the hang is related with the TrustedSigningClientTools.msi, which triggers a UAC prompt during execution.

In the meantime, as a workaround, add the following step to your GitHub YAML before the Advanced Installer build step. Essentially, we need to install TrustedSigningClientTools.msi prior to running the build.

Code: Select all

- name: Download and Admin Install Trusted Signing Client Tools
        shell: powershell
        run: |
          $DownloadUrl = "https://download.microsoft.com/download/6d9cb638-4d5f-438d-9f21-23f0f4405944/TrustedSigningClientTools.msi"
          $DownloadPath = "$env:TEMP\TrustedSigningClientTools.msi"
          $AdminInstallBaseDir = "$env:ProgramData\Caphyon\Advanced Installer\TrustedSigningClientTools"
          
          Write-Host "Downloading Trusted Signing Client Tools..."
          Invoke-WebRequest -Uri $DownloadUrl -OutFile $DownloadPath -UseBasicParsing
          
          Write-Host "Reading MSI product version..."
          $windowsInstaller = New-Object -ComObject WindowsInstaller.Installer
          $database = $windowsInstaller.GetType().InvokeMember("OpenDatabase", "InvokeMethod", $null, $windowsInstaller, @($DownloadPath, 0))
          $view = $database.GetType().InvokeMember("OpenView", "InvokeMethod", $null, $database, ("SELECT Value FROM Property WHERE Property='ProductVersion'"))
          $view.GetType().InvokeMember("Execute", "InvokeMethod", $null, $view, $null)
          $record = $view.GetType().InvokeMember("Fetch", "InvokeMethod", $null, $view, $null)
          $productVersion = $record.GetType().InvokeMember("StringData", "GetProperty", $null, $record, 1)
          
          [System.Runtime.Interopservices.Marshal]::ReleaseComObject($record) | Out-Null
          [System.Runtime.Interopservices.Marshal]::ReleaseComObject($view) | Out-Null
          [System.Runtime.Interopservices.Marshal]::ReleaseComObject($database) | Out-Null
          [System.Runtime.Interopservices.Marshal]::ReleaseComObject($windowsInstaller) | Out-Null
          [System.GC]::Collect()
          
          if ([string]::IsNullOrEmpty($productVersion)) { $productVersion = "1.0.0" }
          
          $adminTargetDir = Join-Path $AdminInstallBaseDir $productVersion
          New-Item -ItemType Directory -Path $adminTargetDir -Force | Out-Null
          
          Write-Host "Performing admin install to: $adminTargetDir"
          $process = Start-Process -FilePath "msiexec.exe" -ArgumentList @("/a", "`"$DownloadPath`"", "/qr", "TARGETDIR=`"$adminTargetDir`"") -Wait -PassThru -NoNewWindow
          
          if ($process.ExitCode -ne 0) {
            throw "Admin install failed with exit code: $($process.ExitCode)"
          }
          
          Write-Host "Admin install completed successfully"

Let us know if that helped.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jchu
Posts: 2
Joined: Wed Jan 14, 2026 7:29 pm

Re: Advanced Installer GitHub Action hanging when Preparing files

Hi Liviu,

Adding the provided code snippet before our build action allowed the builds to complete (and sign) successfully. Thank you and the team for assistance!
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Advanced Installer GitHub Action hanging when Preparing files

You're always welcome!

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Advanced Installer GitHub Action hanging when Preparing files

Hello,

The workaround described above (the script before the build step) is no longer required, as the issue has been officially resolved in our latest release, version 23.4 (January 26, 2026).

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”