/
Product.wxs
115 lines (94 loc) · 5.09 KB
/
Product.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
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<?define ProductName = "Scratch Desktop" ?>
<?define Manufacturer = "Massachusetts Institute of Technology" ?>
<?define UpgradeCode = "{3E96976A-DE44-403A-B3FA-CF2D1C3DA8F8}" ?>
<Product Id="*"
Name="$(var.ProductName)"
Language="1033"
Version="$(var.ProductVersion)"
Manufacturer="$(var.Manufacturer)"
UpgradeCode="$(var.UpgradeCode)">
<Package InstallerVersion="405"
Platform="x86"
Compressed="yes"
ReadOnly="no"
InstallScope="perMachine"
InstallPrivileges="elevated" />
<!-- Launch Conditions: START -->
<MajorUpgrade DowngradeErrorMessage="A newer version of $(var.ProductName) is already installed. Setup will now exit." />
<Condition Message="You need to be an administrator to install this application."><![CDATA[Privileged]]></Condition>
<Condition Message="This application does not support admin installs."><![CDATA[ACTION<>ADMIN]]></Condition>
<Condition Message="This application is not supported on your current operating system. The minimum is Windows 7 SP1.">
<![CDATA[Installed OR (VersionNT>=601)]]>
</Condition>
<!-- Launch Conditions: END -->
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLDIR" Name="$(var.ProductName)">
<Component Id="App.exe">
<File Id="ScratchDesktop.exe" Source=".\Source\Scratch Desktop.exe" KeyPath="yes" />
<!-- This file association has been commented out because Scratch Desktop doesn't support it yet.
<ProgId Id="ScratchProjectFile" Description="Scratch Project" Advertise="yes" Icon="Icons.exe" IconIndex="0">
<Extension Id="sb3">
<Verb Id="open" Command="Open" Sequence="1" Argument=""%1"" />
</Extension>
</ProgId>
-->
</Component>
</Directory>
</Directory>
<Directory Id="ProgramMenuFolder">
<Component Id="Shortcut.lnk">
<Condition><![CDATA[SHORTCUT=1]]></Condition>
<Shortcut Id="StartMenuShortcut_001"
Name="$(var.ProductName)"
Description="$(var.ProductName)"
Target="[INSTALLDIR]Scratch Desktop.exe"
Icon="Icons.exe"
IconIndex="0"
WorkingDirectory="INSTALLDIR">
<ShortcutProperty Key="System.AppUserModel.PreventPinning" Value="0" />
<ShortcutProperty Key="System.AppUserModel.ExcludeFromShowInNewInstall" Value="1" />
</Shortcut>
<RegistryValue Root="HKCU" Key="Software\$(var.ProductName)" Name="Shortcut" Value="1" Type="integer" KeyPath="yes" />
</Component>
</Directory>
</Directory>
<Feature Id="Complete"
Title="$(var.ProductName)"
Description="The core files required to install the application."
Level="1"
Absent="disallow"
AllowAdvertise="no"
Display="collapse">
<ComponentRef Id="App.exe" />
<ComponentRef Id="Shortcut.lnk" />
<ComponentGroupRef Id="HeatGenerated" />
</Feature>
<MediaTemplate CabinetTemplate="disk{0}.cab" EmbedCab="yes" MaximumUncompressedMediaSize="450" />
<Property Id="ARPCONTACT" Value="IT Department" />
<Property Id="ARPHELPLINK" Value="https://scratch.mit.edu/" />
<Property Id="ARPPRODUCTICON" Value="Icons.exe" />
<Property Id="ARPURLINFOABOUT" Value="https://scratch.mit.edu/" />
<Property Id="ARPURLUPDATEINFO" Value="https://scratch.mit.edu/download/" />
<Property Id="DISABLEADVTSHORTCUTS" Value="1" />
<Property Id="LicenseAccepted" Value="1" />
<Property Id="LIMITUI" Value="1" />
<Property Id="MSIFASTINSTALL" Value="6" />
<Property Id="REBOOT" Value="ReallySuppress" />
<Property Id="SHORTCUT" Value="1" />
<Icon Id="Icons.exe" SourceFile=".\Resources\App.ico"/>
<!--
<WixVariable Id="WixUILicenseRtf" Value=".\Resources\License_en-US.rtf" />
<WixVariable Id="WixUIBannerBmp" Value=".\Resources\Banner.bmp" />
<WixVariable Id="WixUIDialogBmp" Value=".\Resources\Dialog.bmp" />
-->
<UI Id="MyUI">
<UIRef Id="WixUI_Minimal" />
<UIRef Id="WixUI_ErrorProgressText" />
</UI>
</Product>
</Wix>