Repository navigation
Expand file tree
/
Copy pathProduct.wxs
More file actions
43 lines (32 loc) · 2.34 KB
/
Copy pathProduct.wxs
File metadata and controls
43 lines (32 loc) · 2.34 KB
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
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Package Name="DesktopClock" Manufacturer="Daniel Chalmers" Version="!(bind.FileVersion.DesktopClock.exe)" UpgradeCode="6BD5BA59-2419-4A0E-89F8-C6F8A4EA08F7" Scope="perUser">
<Icon Id="DesktopClock.ico" SourceFile="DesktopClock\DesktopClock.ico" />
<Property Id="ARPPRODUCTICON" Value="DesktopClock.ico" />
<Property Id="ARPURLINFOABOUT" Value="https://github.com/danielchalmers/DesktopClock" />
<Property Id="ARPHELPLINK" Value="https://github.com/danielchalmers/DesktopClock/issues" />
<Property Id="ARPNOREPAIR" Value="1" />
<Property Id="ARPNOMODIFY" Value="1" />
<!--Skips the System Restore point, which can hold a double-click install at "Please wait" for most of a minute and protects nothing in a per-user app folder-->
<Property Id="MSIFASTINSTALL" Value="1" />
<!--The default schedule removes the old version before installing the new one, which a per-user upgrade needs to roll back cleanly-->
<MajorUpgrade AllowSameVersionUpgrades="yes" DowngradeErrorMessage="!(loc.WixDowngradePreventedMessage)" />
<MediaTemplate EmbedCab="yes" />
<!--Not WiX's default INSTALLFOLDER under Programs: the settings file lives next to the exe, so moving the app would lose it-->
<StandardDirectory Id="LocalAppDataFolder">
<Directory Id="INSTALLFOLDER" Name="DesktopClock" />
</StandardDirectory>
<File Id="DesktopClock.exe" Source="publish\$(sys.BUILDARCH)\DesktopClock.exe" />
<StandardDirectory Id="ProgramMenuFolder">
<Component>
<Shortcut Name="DesktopClock" Target="[INSTALLFOLDER]DesktopClock.exe" WorkingDirectory="INSTALLFOLDER" />
<RegistryValue Root="HKCU" Key="Software\Daniel Chalmers\DesktopClock" Name="StartMenuShortcut" Type="integer" Value="1" KeyPath="yes" />
<RemoveFolder Directory="INSTALLFOLDER" On="uninstall" />
</Component>
</StandardDirectory>
<!--Started through Explorer so the clock gets the user's environment instead of the Windows Installer service's-->
<CustomAction Id="LaunchApp" Directory="INSTALLFOLDER" ExeCommand=""[WindowsFolder]explorer.exe" "[#DesktopClock.exe]"" Return="asyncNoWait" />
<InstallExecuteSequence>
<Custom Action="LaunchApp" After="InstallFinalize" Condition="NOT Installed" />
</InstallExecuteSequence>
</Package>
</Wix>