Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: installer/adblockplusie.wxs

Issue 22887001: Custom action library, initial version (Closed)
Patch Set: Created Oct. 28, 2013, 9:37 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: installer/adblockplusie.wxs
===================================================================
--- a/installer/adblockplusie.wxs
+++ b/installer/adblockplusie.wxs
@@ -89,6 +89,36 @@
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER"/>
<!--
+ Define and schedule a "Custom Action Type 1" to ensure that IE is closed before installation.
+ Because WiX is closely tied to the MSI database format, there are multiple tags required to do this.
+ The "CustomAction" tag defines the tag itself, but doesn't sequence it;
+ it defines an entry in the "CustomAction" table.
+ The "Binary" tag describe an asset that's incorporated into the MSI but that is not an installed component.
+ The "Custom" tag defines the sequencing of an action;
+ it defines an entry in one of the sequence tables (there are six).
+
+ Attribute "Return" sets the "Custom Action Return Processing Options" to zero,
+ which indicates to block the installer until the action completes
+ and to treat a non-zero return value from the action as an error.
+ -->
+ <CustomAction
+ Id="Close_IE"
+ BinaryKey="installer_ca"
+ DllEntry="abp_close_applications"
+ Return="check"
+ />
+ <Binary Id="installer_ca" SourceFile="build\ia32\Debug\installer-ca.dll"/>
+ <InstallUISequence>
+ <!--
+ The LaunchConditions action occurs near the beginning, before any of the expensive operations.
+ -->
+ <Custom
+ Action="Close_IE"
+ After="LaunchConditions"
+ />
+ </InstallUISequence>
+
+ <!--
We have only a single feature, since there aren't any optional parts.
The display is hidden for the same reason; there's nothing to choose from.
-->
« no previous file with comments | « installer/Makefile ('k') | installer/createsolution.bat » ('j') | installer/installer.gyp » ('J')

Powered by Google App Engine
This is Rietveld