Skip to content

Commit be03710

Browse files
committed
Remove TestBed-Basic bin folder. Add example.html.
1 parent baa00ce commit be03710

File tree

1 file changed

+39
-32
lines changed
  • BranchSDK-Samples/Windows/TestBed-Basic/TestBed-Basic-Package

1 file changed

+39
-32
lines changed
Lines changed: 39 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,70 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<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" />
55

6-
<MajorUpgrade DowngradeErrorMessage="A newer version of TestBed (Basic) is already installed." />
6+
<MajorUpgrade DowngradeErrorMessage="A newer version of TestBed (Basic) is already installed." />
77
<Media Cabinet="cab1.cab" EmbedCab="yes" Id="1"/>
88

99
<UIRef Id="WixUI_InstallDir_NoLic"/>
10-
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
10+
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLFOLDER" />
1111
<Icon Id="branch.exe" SourceFile="branch-badge-dark.ico"/>
1212
<Property Id="ARPPRODUCTICON" Value="branch.exe"/>
1313
<Property Id="ARPHELPLINK" Value="https://help.branch.io/developers-hub/docs/windows-cpp-sdk-overview"/>
1414
<WixVariable Id="WixUIDialogBmp" Value="branch-background.bmp"/>
1515
<WixVariable Id="WixUIBannerBmp" Value="branch-banner.bmp"/>
1616

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>
2321
<Directory Id="ProgramMenuFolder">
2422
<Directory Id="ApplicationProgramsFolder" Name="Branch TestBed (Basic)" />
2523
</Directory>
26-
</Directory>
24+
</Directory>
2725

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">
3028
<File Id="TestBedBinaryFile" Source="$(var.ProjectDir)..\Debug\TestBed-Basic.exe" KeyPath="yes" Checksum="yes">
31-
<Shortcut Id="ApplicationStartMenuShortcut"
29+
<Shortcut Id="ApplicationStartMenuShortcut"
3230
Name="Branch TestBed (Basic)"
3331
Directory="ApplicationProgramsFolder"
3432
Description="TestBed QA application without MSIX"
35-
WorkingDirectory="INSTALLBINFOLDER"
33+
WorkingDirectory="INSTALLFOLDER"
3634
Advertise="yes"
3735
Icon="branch.exe" />
3836
</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>
3946
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall" Directory="ApplicationProgramsFolder"/>
4047
</Component>
4148
<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"/>
5356
</RegistryKey>
57+
<RegistryKey Key="shell\open\command">
58+
<RegistryValue Value='"[INSTALLFOLDER]TestBed-Basic.exe" "%1"' Type="string"/>
59+
</RegistryKey>
60+
</RegistryKey>
5461
</Component>
5562
</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" />
5966
<ComponentRef Id="TestBedURIScheme"/>
60-
</Feature>
61-
62-
</Product>
67+
<ComponentRef Id="ExamplePage"/>
68+
</Feature>
69+
</Product>
6370
</Wix>

0 commit comments

Comments
 (0)