Skip to content

Commit f7ae4dd

Browse files
committed
Add ARP example test
1 parent 14b9940 commit f7ae4dd

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

Diff for: tests/data/test-arp.wxs

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?xml version="1.0"?>
2+
<?define Version = "0.2.0"?>
3+
<?define UpgradeCode = "ABCDDCBA-8392-0202-1993-199374829923"?>
4+
<Wix xmlns='http://schemas.microsoft.com/wix/2006/wi'>
5+
6+
<Product Id="*" Name="name" Manufacturer="manufacturer"
7+
Version="$(var.Version)" UpgradeCode="$(var.UpgradeCode)"
8+
Language="1033">
9+
10+
<Package InstallerVersion="200" Compressed="yes" Comments="comments"/>
11+
<Media Id="1" Cabinet="cabinet.cab" EmbedCab="yes"/>
12+
13+
<Property Id="ARPHELPLINK" Value="http://www.foobar.baz"/>
14+
<Property Id="ARPNOMODIFY" Value="1"/>
15+
<Property Id="ARPNOREPAIR" Value="1"/>
16+
<Property Id="ARPPRODUCTICON" Value="FoobarAppl10.exe"/>
17+
<Property Id="ARPURLINFOABOUT" Value="http://www.foobar.baz/info"/>
18+
<Upgrade Id="$(var.UpgradeCode)">
19+
<UpgradeVersion Minimum="$(var.Version)" OnlyDetect="yes" Property="NEWERVERSIONDETECTED"/>
20+
<UpgradeVersion Minimum="0.0.0" Maximum="$(var.Version)" IncludeMinimum="yes" IncludeMaximum="no" Property="OLDERVERSIONBEINGUPGRADED"/>
21+
</Upgrade>
22+
<Condition Message="A newer version is already installed.">NOT NEWERVERSIONDETECTED</Condition>
23+
24+
<Directory Id="TARGETDIR" Name="SourceDir">
25+
<Directory Id="ProgramFilesFolder">
26+
<Directory Id="INSTALLDIR" Name="Example">
27+
<Component Id="MainExecutable" Guid="ABCDDCBA-2034-1019-3233-949940039491">
28+
<File Id="FoobarAppl10.exe" Source="FoobarAppl10.exe"/>
29+
</Component>
30+
</Directory>
31+
</Directory>
32+
</Directory>
33+
34+
<Feature Id="Complete" Level="1">
35+
<ComponentRef Id="MainExecutable"/>
36+
</Feature>
37+
38+
<InstallExecuteSequence>
39+
<RemoveExistingProducts After="InstallValidate"/>
40+
</InstallExecuteSequence>
41+
42+
<Icon Id="FoobarAppl10.exe" SourceFile="FoobarAppl10.exe"/>
43+
44+
</Product>
45+
</Wix>

Diff for: tests/testsuite.at

+7
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,12 @@ AT_CHECK_WIXL([-E variables.wxs -D Foo -D Zig=Zag], [0], [<?xml version="1.0"?>
8787
<Property Id="IdZag" Value="Zag"/>
8888
</Wix>
8989
], [ignore])
90+
AT_CLEANUP
9091

92+
AT_SETUP([ARP example])
93+
AT_WIXLDATA([test-arp.wxs])
94+
AT_WIXLDATA([FoobarAppl10.exe])
95+
AT_CHECK_WIXL([-o out.msi test-arp.wxs], [0], [ignore], [ignore])
96+
# FIXME: add tons of tests on out.msi
97+
AT_CHECK([test -f out.msi], [0])
9198
AT_CLEANUP

0 commit comments

Comments
 (0)