From fa715c48638c7316ed6eaf555e664fa39b302d5e Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Mon, 5 Aug 2019 13:32:03 +0200 Subject: [PATCH] Use WiX directly rather than via WiX's MSBuild Signed-off-by: Simon Rozman --- installer/installer.vcxproj | 41 ++++++++++++++-- installer/installer.vcxproj.filters | 3 -- installer/installer.wixproj | 76 ----------------------------- installer/installer.wxs | 2 +- wintun.proj | 28 +++-------- wintun.props | 3 +- 6 files changed, 48 insertions(+), 105 deletions(-) delete mode 100644 installer/installer.wixproj diff --git a/installer/installer.vcxproj b/installer/installer.vcxproj index 29a5cf1..d334ca6 100644 --- a/installer/installer.vcxproj +++ b/installer/installer.vcxproj @@ -111,8 +111,20 @@ NativeRecommendedRules.ruleset true rundll32.exe - ..\$(WintunPlatform)\$(Configuration)\installer.dll,InstallWintun + $(OutDir)$(TargetName)$(TargetExt),InstallWintun WindowsLocalDebugger + x86 + x64 + arm64 + $(WixCandleFlags) -nologo -arch $(WixArch) -dWINTUN_PLATFORM=$(WintunPlatform) -dWINTUN_VERSION=$(WintunVersion) -sw1086 + $(WixLightFlags) -nologo -b output_dir="$(OutDir.TrimEnd('\'))" -spdb -sw1076 -sw1079 + $(OutDir) + wintun + .msm + + + ..\$(DistributionDir) + wintun-$(WintunPlatform)-$(WintunVersionStr) @@ -171,7 +183,6 @@ - @@ -182,7 +193,9 @@ $(TestCertificate) $(ProductionCertificate) $(BuildDependsOn);SignTarget - CleanSignTarget;$(CleanDependsOn) + $(MSMDependsOn);WixCompile;WixLink + $(MSMDependsOn);WixSign + CleanSignTarget;WixClean;$(CleanDependsOn) @@ -191,4 +204,26 @@ + + + + + + $(WixCandleFlags) -dINSTALLER_LIBRARY_HASH=@(InstallerLibraryHash->Metadata('FileHash')) -dINSTALLER_LIBRARY_TIME=$([System.IO.File]::GetLastWriteTime('$(OutDir)$(TargetName)$(TargetExt)').Ticks) + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/installer/installer.vcxproj.filters b/installer/installer.vcxproj.filters index bfbd0ec..e9d0282 100644 --- a/installer/installer.vcxproj.filters +++ b/installer/installer.vcxproj.filters @@ -42,9 +42,6 @@ Source Files - - MSM - MSM diff --git a/installer/installer.wixproj b/installer/installer.wixproj deleted file mode 100644 index fd1d8c3..0000000 --- a/installer/installer.wixproj +++ /dev/null @@ -1,76 +0,0 @@ - - - - - Release - x64 - {F95A1EBF-1E19-47D4-9D8C-4F0C41B9E3B8} - wintun - Module - false - - - - - - ..\$(WintunPlatform)\$(Configuration)\ - ..\$(WintunPlatform)\$(Configuration)\ - $(ProjectName) - WINTUN_VERSION=$(WintunVersion);$(DefineConstants) - 1006;1086;$(SuppressSpecificWarnings) - 1079;1103;$(LinkerSuppressSpecificWarnings) - ICE30;ICE49;$(SuppressIces) - -b output_dir="$(IntermediateOutputPath.TrimEnd('\'))" $(LinkerAdditionalOptions) - - - true - ..\$(DistributionDir) - $(ProjectName)-$(WintunPlatform)-$(WintunVersionStr) - - - - - - - - - - - - - - - - - - - $(DefineConstants);INSTALLER_LIBRARY_HASH=@(InstallerLibraryHash->Metadata('FileHash'));INSTALLER_LIBRARY_TIME=$([System.IO.File]::GetLastWriteTime('$(IntermediateOutputPath)installer.dll').Ticks) - - - - - - $(TestCertificate) - $(ProductionCertificate) - $(BuildDependsOn);SignTarget - CleanSignTarget;$(CleanDependsOn) - - - - - - - - - diff --git a/installer/installer.wxs b/installer/installer.wxs index dd2f1c8..1883618 100644 --- a/installer/installer.wxs +++ b/installer/installer.wxs @@ -38,7 +38,7 @@ - + diff --git a/wintun.proj b/wintun.proj index 04ff4da..ea24c0d 100644 --- a/wintun.proj +++ b/wintun.proj @@ -47,22 +47,6 @@ - - - - - - - - - - - @@ -85,12 +69,16 @@ - - + - - + + + + diff --git a/wintun.props b/wintun.props index b09cde7..84fae52 100644 --- a/wintun.props +++ b/wintun.props @@ -11,8 +11,7 @@ 0.6 $(WintunVersionMaj).$(WintunVersionMin) - - x86 + x86 amd64 arm64