/
bossa.wxs
127 lines (113 loc) · 4.36 KB
/
bossa.wxs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:difx='http://schemas.microsoft.com/wix/DifxAppExtension'>
<?define Manufacturer="ShumaTech"?>
<?define Product="BOSSA"?>
<Product Id="*"
Name="$(var.Product) $(var.Version)"
Language="1033"
Version="$(var.Version)"
Manufacturer="$(var.Manufacturer)"
UpgradeCode="E7A78D6F-FA43-43D0-9849-F6904647EE17">
<Package Id="*"
InstallerVersion="200"
Compressed="yes"
InstallScope="perMachine" />
<Media Id="1"
Cabinet="bossa.cab"
EmbedCab="yes" />
<Directory Id="TARGETDIR"
Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR"
Name="$(var.Product)">
<Component Id='Application'
Guid='697831FC-1E64-4AB7-8922-11B18455A780'
Win64='no'>
<File Id='bossa.exe'
Name='bossa.exe'
DiskId='1'
Source='bin\bossa.exe' />
<File Id='bossac.exe'
Name='bossac.exe'
DiskId='1'
Source='bin\bossac.exe' />
</Component>
<?if $(sys.BUILDARCH) != x64 ?>
<Directory Id="DriverFolder" Name="driver"/>
<?endif ?>
</Directory>
</Directory>
<?if $(sys.BUILDARCH) = x64 ?>
<Directory Id="ProgramFiles64Folder">
<Directory Id="INSTALLDIR64"
Name="$(var.Product)">
<Directory Id="DriverFolder" Name="driver"/>
</Directory>
</Directory>
<?endif ?>
<Directory Id="ProgramMenuFolder">
<Directory Id="ProgramsFolder" Name="$(var.Product)"/>
</Directory>
</Directory>
<DirectoryRef Id="ProgramsFolder">
<Component Id="Shortcut"
Guid="5F1E6D18-D77F-4BF0-9C7E-58B023A31BDC">
<Shortcut Id="Uninstall"
Name="Uninstall"
Description="Uninstalls $(var.Product)"
Target="[System64Folder]msiexec.exe"
Arguments="/x [ProductCode]"/>
<Shortcut Id="StartMenuShortcut"
Name="BOSSA"
Description="Flash Programmer for Atmel SAM Devices"
Target="[INSTALLDIR]bossa.exe"
WorkingDirectory="INSTALLDIR"/>
<RemoveFolder Id="ProgramsFolder"
On="uninstall"/>
<RegistryValue Root="HKMU"
Key="Software\$(var.Manufacturer)\$(var.Product)"
Name="installed"
Type="integer"
Value="1"
KeyPath="yes"/>
</Component>
</DirectoryRef>
<DirectoryRef Id="DriverFolder">
<Component Id='Driver'
Guid='6AF3DCD2-76E2-434B-B341-BC8826F2483E'>
<File Id='bossa.inf'
Name='bossa.inf'
DiskId='1'
Source='install\bossa.inf' />
<difx:Driver Legacy='yes'
ForceInstall='yes'
PlugAndPlayPrompt='no'
AddRemovePrograms='no' />
</Component>
</DirectoryRef>
<Feature Id="MainFeature"
Title="$(var.Product)"
Level="1">
<ComponentRef Id="Application" />
<ComponentRef Id="Driver" />
<ComponentRef Id="Shortcut" />
</Feature>
<MajorUpgrade DowngradeErrorMessage="A later version of $(var.Product) is already installed. Setup will now exit."/>
<?if $(sys.BUILDARCH) != x64 ?>
<Condition Message="This installer only supports 32 bit versions of Windows. You must use the 64 bit installer instead.">
NOT VersionNT64
</Condition>
<?endif ?>
<Property Id="WIXUI_INSTALLDIR"
Value="INSTALLDIR" />
<WixVariable Id="WixUIBannerBmp"
Value="install\banner.bmp" />
<WixVariable Id="WixUIDialogBmp"
Value="install\dialog.bmp" />
<WixVariable Id="WixUILicenseRtf"
Value="install\license.rtf" />
<UIRef Id="WixUI_InstallDir"/>
<UIRef Id="WixUI_ErrorProgressText" />
</Product>
</Wix>