OK this blows up on upgrade, but the install works fine. Presumably this is because

INSTALLDIR isn't being set on upgrade at any point so can we switch this directory
so we only use INSTALLDIR in the UI?
This commit is contained in:
Rob Emery 2026-04-13 18:02:49 +01:00
parent 36380715cd
commit 9c72f8acef

View File

@ -40,7 +40,7 @@
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id="$(var.PlatformProgramFilesFolder)">
<Directory Id="INSTALLDIR" Name="Navidrome">
<Directory Id="INSTALLATIONDIRECTORY" Name="Navidrome">
<Component Id='LICENSEFile' Guid='eb5610a4-e3f3-4f36-ae2c-e96914e460c2' Win64="$(var.Win64)">
<File Id='LICENSE' Name='LICENSE' DiskId='1' Source='LICENSE' KeyPath='yes' />
@ -100,7 +100,7 @@
<CustomAction Id="CopyInstallDirToInstallationDirectory" Property="INSTALLATIONDIRECTORY" Value="[INSTALLDIR]" />
<InstallExecuteSequence>
<Custom Action="CopyInstallDirToInstallationDirectory" After="MyCustomPropertiesDlg" >Not Installed AND NOT WIX_UPGRADE_DETECTED</Custom>
<Custom Action="CopyInstallDirToInstallationDirectory" After="MyCustomPropertiesDlg">Not Installed AND NOT WIX_UPGRADE_DETECTED</Custom>
</InstallExecuteSequence>
<Feature Id='Complete' Level='1'>