diff options
author | Bob Arnson <bob@firegiant.com> | 2022-01-29 23:44:11 -0500 |
---|---|---|
committer | Bob Arnson <github@bobs.org> | 2022-01-30 13:02:05 -0500 |
commit | 7ce477c6863c74ef0a50d117d8c28b2f19971b42 (patch) | |
tree | b953aae25a04d9ffbf0bd4609055087d96e760dc /src/ext/UI/wixlib/Common_Platform.wxi | |
parent | 3c1b81ff55975adffdc76f1a184b0f264bd97cd6 (diff) | |
download | wix-7ce477c6863c74ef0a50d117d8c28b2f19971b42.tar.gz wix-7ce477c6863c74ef0a50d117d8c28b2f19971b42.tar.bz2 wix-7ce477c6863c74ef0a50d117d8c28b2f19971b42.zip |
Add compiler extension to handle platforms.
Custom actions to print EULA and validate install directories are
defined in WixUIExtension compiler extension, to handle
platform-specific custom actions referred to from `DoAction` control
events. This is the least-worst solution, given the `DoAction` approach
used in the WixUI authoring and anyone customizing a WixUI set.
Diffstat (limited to 'src/ext/UI/wixlib/Common_Platform.wxi')
-rw-r--r-- | src/ext/UI/wixlib/Common_Platform.wxi | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/ext/UI/wixlib/Common_Platform.wxi b/src/ext/UI/wixlib/Common_Platform.wxi index ffaa7114..0c03629c 100644 --- a/src/ext/UI/wixlib/Common_Platform.wxi +++ b/src/ext/UI/wixlib/Common_Platform.wxi | |||
@@ -2,18 +2,15 @@ | |||
2 | 2 | ||
3 | 3 | ||
4 | <Include xmlns="http://wixtoolset.org/schemas/v4/wxs"> | 4 | <Include xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
5 | <?include caSuffix.wxi ?> | 5 | <?include ..\..\caDecor.wxi ?> |
6 | <Fragment> | ||
7 | <!-- print EULA functionality --> | ||
8 | <CustomAction Id="WixUIPrintEula$(var.Suffix)" DllEntry="PrintEula" Return="ignore" Execute="immediate" BinaryRef="WixUIWixca$(var.Suffix)" /> | ||
9 | </Fragment> | ||
10 | 6 | ||
11 | <Fragment> | 7 | <!-- |
12 | <!-- Validate install directory --> | 8 | Custom actions to print EULA amd validate install directories are defined |
13 | <CustomAction Id="WixUIValidatePath$(var.Suffix)" DllEntry="ValidatePath" Return="ignore" Execute="immediate" BinaryRef="WixUIWixca$(var.Suffix)" /> | 9 | in WixUIExtension compiler extension, to handle platform-specific custom |
14 | </Fragment> | 10 | actions referred to from `DoAction` control events. |
11 | --> | ||
15 | 12 | ||
16 | <Fragment> | 13 | <Fragment> |
17 | <Binary Id="WixUIWixca$(var.Suffix)" SourceFile="!(bindpath.$(var.platform))uica.dll" /> | 14 | <Binary Id="WixUiCa$(var.Suffix)" SourceFile="!(bindpath.$(var.platform))uica.dll" /> |
18 | </Fragment> | 15 | </Fragment> |
19 | </Include> | 16 | </Include> |