1
<?xml version="1.0" encoding="UTF-8"?>
2
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
4
# Copyright 2010 The Go Authors. All rights reserved.
5
# Use of this source code is governed by a BSD-style
6
# license that can be found in the LICENSE file.
9
<?if $(var.Arch) = 386 ?>
10
<?define ProdId = {FF5B30B2-08C2-11E1-85A2-6ACA4824019B} ?>
11
<?define UpgradeCode = {1C3114EA-08C3-11E1-9095-7FCA4824019B} ?>
12
<?define SysFolder=SystemFolder ?>
14
<?define ProdId = {716c3eaa-9302-48d2-8e5e-5cfec5da2fab} ?>
15
<?define UpgradeCode = {22ea7650-4ac6-4001-bf29-f4b8775db1c0} ?>
16
<?define SysFolder=System64Folder ?>
20
Id="FF5B30B2-08C2-11E1-85A2-6ACA4824019B"
21
Name="Go Programming Language $(var.Arch) $(var.Version)"
25
Manufacturer="http://golang.org"
26
UpgradeCode="$(var.UpgradeCode)" >
27
<!-- Version="$(var.Version)" TODO: Version requires X.X.X.X format -->
32
Description="The Go Programming Language Installer"
33
Comments="The Go programming language is an open source project to make programmers more productive."
34
InstallerVersion="300"
36
InstallScope="perMachine"
37
SummaryCodepage="1252"
39
<!-- Platform="x86 or x64" -->
41
<Property Id="ARPCOMMENTS" Value="The Go programming language is a fast, statically typed, compiled language that feels like a dynamically typed, interpreted language." />
42
<Property Id="ARPCONTACT" Value="golang-nuts@googlegroups.com" />
43
<Property Id="ARPHELPLINK" Value="golang.org/doc/community.html" />
44
<Property Id="ARPREADME" Value="golang.org" />
45
<Property Id="ARPURLINFOABOUT" Value="golang.org" />
46
<Property Id="LicenseAccepted">1</Property>
47
<Icon Id="gopher.ico" SourceFile="images\gopher.ico"/>
48
<Property Id="ARPPRODUCTICON" Value="gopher.ico" />
49
<Media Id='1' Cabinet="go.cab" EmbedCab="yes" CompressionLevel="high" />
50
<Condition Message="Windows 2000 or greater required."> VersionNT >= 500</Condition>
51
<MajorUpgrade AllowDowngrades="yes" />
52
<SetDirectory Id="INSTALLDIRROOT" Value="[%SYSTEMDRIVE]"/>
55
Id="SetApplicationRootDirectory"
56
Property="ARPINSTALLLOCATION"
57
Value="[INSTALLDIR]" />
59
<!-- Define the directory structure and environment variables -->
60
<Directory Id="TARGETDIR" Name="SourceDir">
61
<Directory Id="INSTALLDIRROOT">
62
<Directory Id="INSTALLDIR" Name="Go"/>
64
<Directory Id="ProgramMenuFolder">
65
<Directory Id="GoProgramShortcutsDir" Name="Go Programming Language"/>
67
<Directory Id="EnvironmentEntries">
68
<Directory Id="GoEnvironmentEntries" Name="Go Programming Language"/>
72
<!-- Programs Menu Shortcuts -->
73
<DirectoryRef Id="GoProgramShortcutsDir">
74
<Component Id="Component_GoProgramShortCuts" Guid="{f5fbfb5e-6c5c-423b-9298-21b0e3c98f4b}">
76
Id="GoDocServerStartMenuShortcut"
78
Description="Starts the Go documentation server (http://localhost:6060)"
80
Arguments='/c start "Godoc Server http://localhost:6060" "[INSTALLDIR]bin\godoc.exe" -http=localhost:6060 -goroot="[INSTALLDIR]." && start http://localhost:6060'
82
Target="[%ComSpec]" />
84
Id="UninstallShortcut"
86
Description="Uninstalls Go and all of its components"
87
Target="[$(var.SysFolder)]msiexec.exe"
88
Arguments="/x [ProductCode]" />
90
Id="GoProgramShortcutsDir"
94
Key="Software\GoProgrammingLanguage"
102
<!-- Registry & Environment Settings -->
103
<DirectoryRef Id="GoEnvironmentEntries">
104
<Component Id="Component_GoEnvironment" Guid="{3ec7a4d5-eb08-4de7-9312-2df392c45993}">
107
Key="Software\GoProgrammingLanguage"
115
Name="installLocation"
117
Value="[INSTALLDIR]" />
126
Value="[INSTALLDIR]bin" />
134
Value="[INSTALLDIR]" />
136
Id="GoEnvironmentEntries"
141
<!-- Install the files -->
146
<ComponentRef Id="Component_GoEnvironment" />
147
<ComponentGroupRef Id="AppFiles" />
148
<ComponentRef Id="Component_GoProgramShortCuts" />
151
<!-- Update the environment -->
152
<InstallExecuteSequence>
153
<Custom Action="SetApplicationRootDirectory" Before="InstallFinalize" />
154
</InstallExecuteSequence>
156
<!-- Include the user interface -->
157
<WixVariable Id="WixUILicenseRtf" Value="LICENSE.rtf" />
158
<WixVariable Id="WixUIBannerBmp" Value="images\Banner.jpg" />
159
<WixVariable Id="WixUIDialogBmp" Value="images\Dialog.jpg" />
160
<Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR" />
161
<UIRef Id="WixUI_InstallDir" />