Skip to content

Compilation fails on Github Action: CPack error : Problem running WiX. #158

@end2endzone

Description

@end2endzone

Describe the bug
The latest compilation fails on Github Actions images with the following error:

Source code used: tag 0.9.0 + fixes from #157.
Build run url: https://github.com/end2endzone/ShellAnything/actions/runs/10342831169

Build log output:

============================================================================
Creating ShellAnything install package
============================================================================
MSBuild version 17.10.4+10fbfbf2e for .NET Framework

  sa.shared.vcxproj -> D:\a\ShellAnything\ShellAnything\build\bin\Release\sa.shared.lib
  file_explorer_renew.vcxproj -> D:\a\ShellAnything\ShellAnything\build\bin\Release\file_explorer_renew.exe
  libexprtk.vcxproj -> D:\a\ShellAnything\ShellAnything\build\bin\Release\libexprtk.dll
  sa.core.vcxproj -> D:\a\ShellAnything\ShellAnything\build\bin\Release\sa.core.dll
  Copying default configurations files database.	Copying register.bat script.	Copying unregister.bat script.	Copying magic.mgc.	Copying file.exe.	Copying zlib.dll.	Copying glog.
  sa.api.vcxproj -> D:\a\ShellAnything\ShellAnything\build\bin\Release\sa.api.dll
  sa.logger.glog.vcxproj -> D:\a\ShellAnything\ShellAnything\build\bin\Release\sa.logger.glog.dll
  sa.windows.vcxproj -> D:\a\ShellAnything\ShellAnything\build\bin\Release\sa.windows.dll
  sa.shellextension.vcxproj -> D:\a\ShellAnything\ShellAnything\build\bin\Release\sa.shellextension.dll
  sa.tests.vcxproj -> D:\a\ShellAnything\ShellAnything\build\bin\Release\sa.tests.exe
  Copying test configuration files database.
  sa_plugin_process.vcxproj -> D:\a\ShellAnything\ShellAnything\build\bin\Release\sa_plugin_process.dll
  sa_plugin_services.vcxproj -> D:\a\ShellAnything\ShellAnything\build\bin\Release\sa_plugin_services.dll
  sa_plugin_strings.vcxproj -> D:\a\ShellAnything\ShellAnything\build\bin\Release\sa_plugin_strings.dll
  sa_plugin_test_data.vcxproj -> D:\a\ShellAnything\ShellAnything\build\bin\Release\sa_plugin_test_data.dll
  sa_plugin_time.vcxproj -> D:\a\ShellAnything\ShellAnything\build\bin\Release\sa_plugin_time.dll
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\amd64\Microsoft.Common.CurrentVersion.targets(2165,5): warning : The referenced project 'Solution Items (dummy)' does not exist. [D:\a\ShellAnything\ShellAnything\build\ALL_BUILD.vcxproj]
  1>
  CPack: Create package using ZIP
  CPack: Install projects
  CPack: - Install project: ShellAnything [Release]
  CPack: Create package
  CPack: - package: D:/a/ShellAnything/ShellAnything/build/ShellAnything-0.9.0-win64.zip generated.
  CPack: Create package using WIX
  CPack: Install projects
  CPack: - Install project: ShellAnything [Release]
  CPack: Create package
EXEC : CPack error : Problem running WiX. Please check 'D:/a/ShellAnything/ShellAnything/build/_CPack_Packages/win64/WIX/wix.log' for errors. [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
EXEC : CPack error : Fatal WiX Generator Error [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
EXEC : CPack error : Problem compressing the directory [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
EXEC : CPack error : Error when generating package: ShellAnything [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: The command "setlocal [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: cd D:\a\ShellAnything\ShellAnything\build [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: D: [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: "C:\Program Files\CMake\bin\cpack.exe" -C Release --config ./CPackConfig.cmake [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :cmEnd [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmEnd [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmErrorLevel [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: exit /b %1 [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :cmDone [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: if %errorlevel% neq 0 goto :VCEnd [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(155,5): error MSB3073: :VCEnd" exited with code 1. [D:\a\ShellAnything\ShellAnything\build\PACKAGE.vcxproj]

To Reproduce
N/A

Expected behavior
Compilation succeeds

Screenshots
N/A

Environment
Runner config:

Current runner version: '2.317.0'
Operating System
  Microsoft Windows Server [2](https://github.com/end2endzone/ShellAnything/actions/runs/10342428095/job/28625368972#step:1:2)022
  10.0.20348
  Datacenter
Runner Image
  Image: windows-2022
  Version: 20240807.2.0
  Included Software: https://github.com/actions/runner-images/blob/win22/20240807.2/images/windows/Windows2022-Readme.md
  Image Release: https://github.com/actions/runner-images/releases/tag/win22%2F20240807.2
Runner Image Provisioner
  2.0.[3](https://github.com/end2endzone/ShellAnything/actions/runs/10342428095/job/28625368972#step:1:3)74.1

Additional context
N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions