1
+ <?xml version =' 1.0' encoding =' windows-1252' ?>
2
+ <?define Manufacturer =' Microsoft' ?>
3
+ <?define ProductName =' Azure Functions Core Tools' ?>
4
+
5
+ <?if $(var.Platform)=x64?>
6
+ <?define UpgradeCodeGuid =' E9F5190E-0E1F-49C0-BAF5-3D47FE5837B9' ?>
7
+ <?define PathGuid =' E7D05676-5209-45E2-99DB-F4B20CF3D89D' ?>
8
+ <?define ProgramMenuDirGuid =' 09195356-949C-4CEF-9C2C-84EA559E5C19' ?>
9
+ <?define PlatformProgramFilesFolder =' ProgramFiles64Folder' ?>
10
+ <?else ?>
11
+ <?define UpgradeCodeGuid =' 31C010A9-2414-4DB7-BFEA-A6F1D085382E' ?>
12
+ <?define PathGuid =' 35765F38-08D4-4E00-A006-CD71240AD39F' ?>
13
+ <?define ProgramMenuDirGuid =' 46CAA18B-4C44-4954-8D99-C681CD1F301D' ?>
14
+ <?define PlatformProgramFilesFolder =' ProgramFilesFolder' ?>
15
+ <?endif ?>
16
+
17
+ <Wix xmlns =' http://schemas.microsoft.com/wix/2006/wi' >
18
+ <!-- Product, Package and Upgrade Information -->
19
+ <Product Id =' *'
20
+ Name =' $(var.ProductName) - $(var.ProductVersion) ($(var.Platform))'
21
+ UpgradeCode =' $(var.UpgradeCodeGuid)'
22
+ Language =' 1033'
23
+ Codepage =' 1252'
24
+ Version =' $(var.ProductVersion)'
25
+ Manufacturer =' $(var.Manufacturer)' >
26
+
27
+ <Package Id =' *'
28
+ Keywords =' Azure, Functions, Core Tools, Installer'
29
+ Description =' $(var.ProductName) $(var.ProductVersion) $(var.Platform) Installer'
30
+ Manufacturer =' $(var.Manufacturer)'
31
+ Comments =' Copyright (c) .NET Foundation. All rights reserved. Licensed under the MIT License.'
32
+ InstallerVersion =' 300'
33
+ Compressed =' yes'
34
+ Languages =' 1033'
35
+ SummaryCodepage =' 1252' />
36
+
37
+ <MajorUpgrade AllowDowngrades =' yes' Schedule =' afterInstallInitialize' />
38
+
39
+ <Media Id =' 1' Cabinet =' funchost.cab' EmbedCab =' yes' />
40
+
41
+ <!-- Directory Structure and Feature Definition -->
42
+ <Directory Id =' TARGETDIR' Name =' SourceDir' >
43
+ <Directory Id =' $(var.PlatformProgramFilesFolder)' Name =' PFiles' >
44
+ <Directory Id =' $(var.Manufacturer)' Name =' $(var.Manufacturer)' >
45
+ <Directory Id =' INSTALLDIR' Name =' $(var.ProductName)' >
46
+ <!-- FuncHost componentgroup in fragment -->
47
+ <Component Id =' Path' Guid =' $(var.PathGuid)' KeyPath =' yes' >
48
+ <Environment Id =' UpdatePath' Name =' PATH' Value =' [INSTALLDIR]' Permanent =' no' Part =' last' Action =' set' System =' yes' />
49
+ </Component >
50
+ </Directory >
51
+ </Directory >
52
+ </Directory >
53
+
54
+ <Directory Id =' ProgramMenuFolder' Name =' Programs' >
55
+ <Directory Id =' ProgramMenuDir' Name =' $(var.ProductName)' >
56
+ <Component Id =' ProgramMenuDir' Guid =' $(var.ProgramMenuDirGuid)' >
57
+ <RemoveFolder Id =' ProgramMenuDir' On =' uninstall' />
58
+ <RegistryValue Root =' HKCU' Key =' Software\[Manufacturer]\[ProductName]' Type =' string' Value =' ' KeyPath =' yes' />
59
+ </Component >
60
+ </Directory >
61
+ </Directory >
62
+ </Directory >
63
+
64
+ <Feature Id =' Complete'
65
+ Level =' 1'
66
+ Title =' $(var.ProductName)'
67
+ Description =' Placeholder description'
68
+ Display =' expand' >
69
+ <ComponentGroupRef Id =' FuncHost' />
70
+ <ComponentRef Id =' ProgramMenuDir' />
71
+ <ComponentRef Id =' Path' />
72
+ </Feature >
73
+
74
+ <!-- UI -->
75
+ <UIRef Id =' WixUI_InstallDir' />
76
+ <UIRef Id =' WixUI_ErrorProgressText' />
77
+ <Property Id =' WIXUI_INSTALLDIR' Value =' INSTALLDIR' />
78
+
79
+ <Icon Id =' icon.ico' SourceFile =' icon.ico' />
80
+ <Property Id =' ARPPRODUCTICON' Value =' icon.ico' />
81
+
82
+ <WixVariable Id =' WixUILicenseRtf' Value =' license.rtf' />
83
+ <WixVariable Id =' WixUIBannerBmp' Value =' installbanner.bmp' />
84
+ <WixVariable Id =' WixUIDialogBmp' Value =' installdialog.bmp' />
85
+ </Product >
86
+ </Wix >
0 commit comments