OLD | NEW |
(Empty) | |
| 1 <?xml version="1.0" encoding="UTF-8"?> |
| 2 <?define installer_dir="..\.." ?> |
| 3 <?define CA_Configuration="Release" ?> |
| 4 |
| 5 <?if $(sys.BUILDARCH)="x86"?> |
| 6 <?define Program_Files="ProgramFilesFolder"?> |
| 7 <?define Product_Name="!(loc.ProductName32)"?> |
| 8 <?define build_dir="ia32"?> |
| 9 <?elseif $(sys.BUILDARCH)="x64"?> |
| 10 <?define Program_Files="ProgramFiles64Folder"?> |
| 11 <?define Product_Name="!(loc.ProductName64)"?> |
| 12 <?define build_dir="x64"?> |
| 13 <?else?> |
| 14 <?error Unsupported value of sys.BUILDARCH=$(sys.BUILDARCH)?> |
| 15 <?endif?> |
| 16 |
| 17 <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
| 18 <!-- |
| 19 The attributes 'Language' and 'Codepage' are specifications for the database
only. |
| 20 Codepage 65001 is UTF-8. |
| 21 --> |
| 22 <Product |
| 23 Name="ABP Installer Library Test MSI" |
| 24 Manufacturer="Eyeo GmbH" |
| 25 Version="1.0" |
| 26 Language="9" Codepage="1252" |
| 27 Id="*" |
| 28 UpgradeCode="8D94C7AB-91B3-4A5B-A013-FB01DCC20C58"> |
| 29 <Package |
| 30 SummaryCodepage="1252" |
| 31 Keywords="Installer, Adblock Plus" |
| 32 Description="Adblock Plus for IE" |
| 33 Comments="Thank you for using Adblock Plus." |
| 34 Manufacturer="Eyeo GmbH" |
| 35 InstallerVersion="200" |
| 36 Languages="0" |
| 37 Compressed="yes" |
| 38 InstallScope="perMachine" InstallPrivileges="elevated" |
| 39 /> |
| 40 <MediaTemplate EmbedCab="yes"/> |
| 41 |
| 42 <!-- |
| 43 User interface |
| 44 --> |
| 45 <UIRef Id="WixUI_ErrorProgressText"/> |
| 46 <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER"/> |
| 47 |
| 48 <!-- |
| 49 Define and schedule a "Custom Action Type 1" to ensure that IE is closed b
efore installation. |
| 50 Because WiX is closely tied to the MSI database format, there are multiple
tags required to do this. |
| 51 The "CustomAction" tag defines the tag itself, but doesn't sequence it; |
| 52 it defines an entry in the "CustomAction" table. |
| 53 The "Binary" tag describe an asset that's incorporated into the MSI but th
at is not an installed component. |
| 54 The "Custom" tag defines when the action executes by defining an entry in
one of the sequence tables. |
| 55 |
| 56 Attribute "Return" sets the "Custom Action Return Processing Options" to z
ero, |
| 57 which indicates to block the installer until the action completes |
| 58 and to treat a non-zero return value from the action as an error. |
| 59 --> |
| 60 <CustomAction |
| 61 Id="Sandbox" |
| 62 BinaryKey="installer_library_test_ca" |
| 63 DllEntry="sandbox" |
| 64 Return="check" |
| 65 /> |
| 66 <CustomAction |
| 67 Id="Close_IE" |
| 68 BinaryKey="installer_library_test_ca" |
| 69 DllEntry="abp_close_ie" |
| 70 Return="check" |
| 71 /> |
| 72 <!-- Always check the return of the "always fail" action; otherwise there's
no point in running it. --> |
| 73 <CustomAction |
| 74 Id="Fail" |
| 75 BinaryKey="installer_library_test_ca" |
| 76 DllEntry="fail" |
| 77 Return="check" |
| 78 /> |
| 79 <!-- |
| 80 Note that we're using a 32-bit custom action library for both 32- and 64-b
it installers. |
| 81 --> |
| 82 <Binary Id="installer_library_test_ca" SourceFile="$(var.installer_dir)\buil
d\$(var.build_dir)\$(var.CA_Configuration)\installer-library-test-customactions.
dll"/> |
| 83 <!-- |
| 84 The sequence of testing actions go here. |
| 85 Alter this sequence at will to test, exercise, observe, or debug custom ac
tion code. |
| 86 The "Fail" action can be put at the end to ensure that the installer termi
nates before actually trying to install anything. |
| 87 Action might also be put into the InstallExecuteSequence, if needed. |
| 88 --> |
| 89 <InstallUISequence> |
| 90 <!-- |
| 91 "LaunchConditions" occurs at the beginning of the InstallUISequence, bef
ore any of the expensive operations. |
| 92 --> |
| 93 <Custom Action="Sandbox" After="LaunchConditions">1</Custom> |
| 94 <Custom Action="Close_IE" After="Sandbox" /> |
| 95 <Custom Action="Fail" After="Close_IE" /> |
| 96 </InstallUISequence> |
| 97 |
| 98 <!-- |
| 99 We have only a single feature, since there aren't any optional parts. |
| 100 The display is hidden for the same reason; there's nothing to choose from. |
| 101 --> |
| 102 <Feature Id="ProductFeature" |
| 103 Title="Empty_Feature" Description="This is a test MSI for custom actions.
We don't need no stinking features." |
| 104 Display="hidden"> |
| 105 </Feature> |
| 106 |
| 107 <!-- |
| 108 The top-level directory structure. |
| 109 --> |
| 110 <Directory Id="TARGETDIR" Name="SourceDir"> |
| 111 <Directory Id="$(var.Program_Files)"> |
| 112 <!-- |
| 113 INSTALLFOLDER is within ProgramFilesFolder, which is a protected direc
tory. |
| 114 As a result, this installer requires elevated permissions to operate. |
| 115 --> |
| 116 <Directory Id="INSTALLFOLDER" Name="ABP Test Installer Library"/> |
| 117 </Directory> |
| 118 </Directory> |
| 119 |
| 120 <!-- |
| 121 Unit tests verify the number of rows and columns of the table, as well as
the presence of certain data. |
| 122 --> |
| 123 <?include ../custom-i18n.wxi ?> |
| 124 <?include ../../custom-action/close_ie.wxi ?> |
| 125 </Product> |
| 126 </Wix> |
OLD | NEW |