Skip to content

Commit

Permalink
Remove existing installations with msi installer
Browse files Browse the repository at this point in the history
  • Loading branch information
schroda authored and Syer10 committed Jan 22, 2025
1 parent e53386c commit fc93ca4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/resources/msi/suwayomi-server-x64.wxs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" UpgradeCode="*"
<Product Id="*" UpgradeCode="174c8f36-0bec-4585-9ddd-469c3d889dc1"
Version="$(var.ProductVersion)" Language="1033" Name="Suwayomi Server" Manufacturer="Suwayomi">
<Package InstallerVersion="300" Compressed="yes" />
<Media Id="1" Cabinet="Suwayomi_Server.cab" EmbedCab="yes" />
Expand All @@ -9,6 +9,12 @@
VersionNT64
</Condition>

<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />

<InstallExecuteSequence>
<RemoveExistingProducts After="InstallValidate" />
</InstallExecuteSequence>

<!-- Directory -->
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFiles64Folder">
Expand Down

0 comments on commit fc93ca4

Please sign in to comment.