|
| 1 | +<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs"> |
| 2 | + <Package Name="Sentry Replay" |
| 3 | + Manufacturer="Daniel Chalmers" |
| 4 | + Version="$(var.Version)" |
| 5 | + UpgradeCode="98E07D4B-45EB-45A6-90A5-2A68E772F2E7" |
| 6 | + Scope="perUser"> |
| 7 | + <Property Id="ARPNOMODIFY" Value="1" /> |
| 8 | + <MajorUpgrade AllowSameVersionUpgrades="yes" |
| 9 | + DowngradeErrorMessage="A newer version of Sentry Replay is already installed." /> |
| 10 | + <MediaTemplate EmbedCab="yes" /> |
| 11 | + |
| 12 | + <CustomAction Id="LaunchApp" |
| 13 | + Directory="INSTALLFOLDER" |
| 14 | + ExeCommand=""[INSTALLFOLDER]SentryReplay.exe"" |
| 15 | + Execute="immediate" |
| 16 | + Impersonate="yes" |
| 17 | + Return="asyncNoWait" /> |
| 18 | + |
| 19 | + <InstallExecuteSequence> |
| 20 | + <Custom Action="LaunchApp" After="InstallFinalize" Condition="NOT Installed" /> |
| 21 | + </InstallExecuteSequence> |
| 22 | + |
| 23 | + <Feature Id="Main" Title="SentryReplay" Level="1"> |
| 24 | + <ComponentGroupRef Id="ProductComponents" /> |
| 25 | + </Feature> |
| 26 | + </Package> |
| 27 | + |
| 28 | + <Fragment> |
| 29 | + <StandardDirectory Id="LocalAppDataFolder"> |
| 30 | + <Directory Id="SentryReplayRoot" Name="SentryReplay"> |
| 31 | + <Directory Id="INSTALLFOLDER" Name="SentryReplay" /> |
| 32 | + </Directory> |
| 33 | + </StandardDirectory> |
| 34 | + <StandardDirectory Id="ProgramMenuFolder"> |
| 35 | + <Directory Id="ProgramMenuSentryReplay" Name="Sentry Replay" /> |
| 36 | + </StandardDirectory> |
| 37 | + </Fragment> |
| 38 | + |
| 39 | + <Fragment> |
| 40 | + <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER"> |
| 41 | + <Component Id="MainExecutable" Guid="*"> |
| 42 | + <File Id="SentryReplayExe" Source="publish/$(var.Arch)/SentryReplay.exe" KeyPath="yes" /> |
| 43 | + <RemoveFile Id="RemoveOldFiles" Name="*.*" On="both" /> |
| 44 | + <RemoveFolder Id="RemoveInstallFolder" Directory="INSTALLFOLDER" On="uninstall" /> |
| 45 | + </Component> |
| 46 | + <Component Id="StartMenuShortcut" Guid="*"> |
| 47 | + <Shortcut Id="SentryReplayShortcut" |
| 48 | + Name="Sentry Replay" |
| 49 | + Description="Sentry Replay" |
| 50 | + Directory="ProgramMenuSentryReplay" |
| 51 | + Target="[INSTALLFOLDER]SentryReplay.exe" |
| 52 | + WorkingDirectory="INSTALLFOLDER" /> |
| 53 | + <RemoveFolder Id="RemoveStartMenuFolder" Directory="ProgramMenuSentryReplay" On="uninstall" /> |
| 54 | + <RegistryValue Root="HKCU" |
| 55 | + Key="Software\\Daniel Chalmers\\SentryReplay" |
| 56 | + Name="StartMenuShortcut" |
| 57 | + Type="integer" |
| 58 | + Value="1" |
| 59 | + KeyPath="yes" /> |
| 60 | + </Component> |
| 61 | + <Files Include="publish/$(var.Arch)/**"> |
| 62 | + <Exclude Files="publish/$(var.Arch)/SentryReplay.exe" /> |
| 63 | + </Files> |
| 64 | + </ComponentGroup> |
| 65 | + </Fragment> |
| 66 | +</Wix> |
0 commit comments