|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 | <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> |
3 | | - <Product Id="*" Name="Branch TestBed (Basic)" Language="1033" Version="1.0.0.0" Manufacturer="Branch Metrics, Inc." UpgradeCode="f66f62db-fbea-4c26-b0e3-ab91241a71da"> |
4 | | - <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> |
| 3 | + <Product Id="*" Name="Branch TestBed (Basic)" Language="1033" Version="1.0.0.0" Manufacturer="Branch Metrics, Inc." UpgradeCode="f66f62db-fbea-4c26-b0e3-ab91241a71da"> |
| 4 | + <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" /> |
5 | 5 |
|
6 | | - <MajorUpgrade DowngradeErrorMessage="A newer version of TestBed (Basic) is already installed." /> |
| 6 | + <MajorUpgrade DowngradeErrorMessage="A newer version of TestBed (Basic) is already installed." /> |
7 | 7 | <Media Cabinet="cab1.cab" EmbedCab="yes" Id="1"/> |
8 | 8 |
|
9 | 9 | <UIRef Id="WixUI_InstallDir_NoLic"/> |
10 | | - <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" /> |
| 10 | + <Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" /> |
11 | 11 | <Icon Id="branch.exe" SourceFile="branch-badge-dark.ico"/> |
12 | 12 | <Property Id="ARPPRODUCTICON" Value="branch.exe"/> |
13 | 13 | <Property Id="ARPHELPLINK" Value="https://help.branch.io/developers-hub/docs/windows-cpp-sdk-overview"/> |
14 | 14 | <WixVariable Id="WixUIDialogBmp" Value="branch-background.bmp"/> |
15 | 15 | <WixVariable Id="WixUIBannerBmp" Value="branch-banner.bmp"/> |
16 | 16 |
|
17 | | - <Directory Id="TARGETDIR" Name="SourceDir"> |
18 | | - <Directory Id="ProgramFilesFolder"> |
19 | | - <Directory Id="INSTALLFOLDER" Name="Branch TestBed (Basic)" > |
20 | | - <Directory Id="INSTALLBINFOLDER" Name="bin" /> |
21 | | - </Directory> |
22 | | - </Directory> |
| 17 | + <Directory Id="TARGETDIR" Name="SourceDir"> |
| 18 | + <Directory Id="ProgramFilesFolder"> |
| 19 | + <Directory Id="INSTALLFOLDER" Name="Branch TestBed (Basic)" /> |
| 20 | + </Directory> |
23 | 21 | <Directory Id="ProgramMenuFolder"> |
24 | 22 | <Directory Id="ApplicationProgramsFolder" Name="Branch TestBed (Basic)" /> |
25 | 23 | </Directory> |
26 | | - </Directory> |
| 24 | + </Directory> |
27 | 25 |
|
28 | | - <DirectoryRef Id="INSTALLBINFOLDER"> |
29 | | - <Component Id="TestBedBinary" Guid="b5efe49a-f3f1-4623-b82e-9b2500d8f340"> |
| 26 | + <DirectoryRef Id="INSTALLFOLDER"> |
| 27 | + <Component Id="TestBedBinary" Guid="b5efe49a-f3f1-4623-b82e-9b2500d8f340"> |
30 | 28 | <File Id="TestBedBinaryFile" Source="$(var.ProjectDir)..\Debug\TestBed-Basic.exe" KeyPath="yes" Checksum="yes"> |
31 | | - <Shortcut Id="ApplicationStartMenuShortcut" |
| 29 | + <Shortcut Id="ApplicationStartMenuShortcut" |
32 | 30 | Name="Branch TestBed (Basic)" |
33 | 31 | Directory="ApplicationProgramsFolder" |
34 | 32 | Description="TestBed QA application without MSIX" |
35 | | - WorkingDirectory="INSTALLBINFOLDER" |
| 33 | + WorkingDirectory="INSTALLFOLDER" |
36 | 34 | Advertise="yes" |
37 | 35 | Icon="branch.exe" /> |
38 | 36 | </File> |
| 37 | + </Component> |
| 38 | + <Component Id="ExamplePage" Guid="fc9d0d52-7c4e-4402-b189-db6711b3d154"> |
| 39 | + <File Id="example.html" Source="$(var.ProjectDir)..\example.html" KeyPath="yes"> |
| 40 | + <Shortcut Id="ExamplePageShortcut" |
| 41 | + Name="Example Page" |
| 42 | + Directory="ApplicationProgramsFolder" |
| 43 | + Description="Example Page for Branch TestBed (Basic)" |
| 44 | + Advertise="yes" /> |
| 45 | + </File> |
39 | 46 | <RemoveFolder Id="ApplicationProgramsFolder" On="uninstall" Directory="ApplicationProgramsFolder"/> |
40 | 47 | </Component> |
41 | 48 | <Component Id="TestBedURIScheme" Guid="502eb451-4bb1-4f67-8016-ba0009fb8d6a"> |
42 | | - <!-- Add Registry entries for URI redirection --> |
43 | | - <!-- testbedbasic is the URI scheme from the Branch Dashboard --> |
44 | | - <RegistryKey Root="HKCU" Key="SOFTWARE\Classes\testbedbasic" > |
45 | | - <RegistryValue Value="URL:testbedbasic" Type="string" /> |
46 | | - <RegistryValue Name="URL Protocol" Value="" Type="string" /> |
47 | | - <RegistryKey Key="DefaultIcon"> |
48 | | - <RegistryValue Value="[INSTALLBINFOLDER]TestBed-Basic.exe,1" Type="string"/> |
49 | | - </RegistryKey> |
50 | | - <RegistryKey Key="shell\open\command"> |
51 | | - <RegistryValue Value='"[INSTALLBINFOLDER]TestBed-Basic.exe" "%1"' Type="string"/> |
52 | | - </RegistryKey> |
| 49 | + <!-- Add Registry entries for URI redirection --> |
| 50 | + <!-- testbedbasic is the URI scheme from the Branch Dashboard --> |
| 51 | + <RegistryKey Root="HKCU" Key="SOFTWARE\Classes\testbedbasic" > |
| 52 | + <RegistryValue Value="URL:testbedbasic" Type="string" /> |
| 53 | + <RegistryValue Name="URL Protocol" Value="" Type="string" /> |
| 54 | + <RegistryKey Key="DefaultIcon"> |
| 55 | + <RegistryValue Value="[INSTALLFOLDER]TestBed-Basic.exe,1" Type="string"/> |
53 | 56 | </RegistryKey> |
| 57 | + <RegistryKey Key="shell\open\command"> |
| 58 | + <RegistryValue Value='"[INSTALLFOLDER]TestBed-Basic.exe" "%1"' Type="string"/> |
| 59 | + </RegistryKey> |
| 60 | + </RegistryKey> |
54 | 61 | </Component> |
55 | 62 | </DirectoryRef> |
56 | | - |
57 | | - <Feature Id="ProductFeature" Title="TestBed (Basic) Application" Level="1" AllowAdvertise="yes" TypicalDefault="advertise"> |
58 | | - <ComponentRef Id="TestBedBinary" /> |
| 63 | + |
| 64 | + <Feature Id="ProductFeature" Title="TestBed (Basic) Application" Level="1" AllowAdvertise="yes" TypicalDefault="advertise"> |
| 65 | + <ComponentRef Id="TestBedBinary" /> |
59 | 66 | <ComponentRef Id="TestBedURIScheme"/> |
60 | | - </Feature> |
61 | | - |
62 | | - </Product> |
| 67 | + <ComponentRef Id="ExamplePage"/> |
| 68 | + </Feature> |
| 69 | + </Product> |
63 | 70 | </Wix> |
0 commit comments