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 =' 4E39ECC2-3CAE-43BD-94A6-AF9F97F54684' ?>
7+ <?define PathGuid =' 240C4066-04AB-4F29-8593-079B6FB3C1DA' ?>
8+ <?define ProgramMenuDirGuid =' C3A3339D-DE95-46E2-8AE0-23C03793B365' ?>
9+ <?define PlatformProgramFilesFolder =' ProgramFiles64Folder' ?>
10+ <?else ?>
11+ <?define UpgradeCodeGuid =' E8B743C0-51BE-43DF-A344-E995DD3FFD7E' ?>
12+ <?define PathGuid =' 1CF628D0-C094-42EE-AC0B-9C2419A136C4' ?>
13+ <?define ProgramMenuDirGuid =' 09A34A64-54B8-4017-8972-399981526250' ?>
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