Skip to content

Commit

Permalink
Build Wix 5 CustomAction
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Metsma <raul@metsma.ee>
  • Loading branch information
metsma committed Dec 4, 2024
1 parent 250f40c commit e2a6c7b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ install:
- dotnet tool install -g --version 5.0.2 wix
- wix extension add -g WixToolset.UI.wixext/5.0.2
- wix extension add -g WixToolset.Util.wixext/5.0.2
- cd win32 && dotnet new console --force --name CustomAction
- cd win32 && dotnet add CustomAction package WixToolset.WcaUtil --version 5.0.2 --package-directory packages

build_script:
- ps: >-
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ jobs:
dotnet tool install -g --version 5.0.2 wix
wix extension add -g WixToolset.UI.wixext/5.0.2
wix extension add -g WixToolset.Util.wixext/5.0.2
cd win32
dotnet new console --force --name CustomAction
dotnet add CustomAction package WixToolset.WcaUtil --version 5.0.2 --package-directory packages
- name: Restore Cache
if: matrix.configuration == 'Release'
uses: actions/cache@v4
Expand Down
16 changes: 13 additions & 3 deletions win32/Make.rules.mak
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,19 @@ OPENSC_FEATURES = pcsc
#Include support for minidriver
MINIDRIVER_DEF = /DENABLE_MINIDRIVER

#Build MSI with the Windows Installer XML (WIX) toolkit, requires WIX >= 3.14
WIX_INCL_DIR = "/I$(WIX)\SDK\VS2017\inc"
WIX_LIBS = "$(WIX)\SDK\VS2017\lib\$(PLATFORM)\dutil.lib" "$(WIX)\SDK\VS2017\lib\$(PLATFORM)\wcautil.lib"
#Build MSI with the Windows Installer XML (WIX) toolkit
#dotnet tool install -g --version 5.0.2 wix
#wix extension add -g WixToolset.UI.wixext/5.0.2
#wix extension add -g WixToolset.Util.wixext/5.0.2
#dotnet new console --force --name CustomAction
#dotnet add CustomAction package WixToolset.WcaUtil --version 5.0.2 --package-directory packages
!IF "$(WIX_PACKAGES)" == ""
WIX_PACKAGES = $(TOPDIR)\win32\packages
!ENDIF
WIX_INCL_DIR = "/I$(WIX_PACKAGES)/wixtoolset.dutil/5.0.2/build/native/include" \
"/I$(WIX_PACKAGES)/wixtoolset.wcautil/5.0.2/build/native/include"
WIX_LIBS = "$(WIX_PACKAGES)/wixtoolset.dutil/5.0.2/build/native/v14/$(PLATFORM)/dutil.lib" \
"$(WIX_PACKAGES)/wixtoolset.wcautil/5.0.2/build/native/v14/$(PLATFORM)/wcautil.lib"

# We do not build tests on windows
#TESTS_DEF = /DENABLE_TESTS
Expand Down

0 comments on commit e2a6c7b

Please sign in to comment.