So on fresh install, the UI was empty because INSTALLDIR wasn't pre

populated by the Directory tags, also on upgrade it default back...
This commit is contained in:
Rob Emery 2026-04-13 18:22:20 +01:00
parent 9c72f8acef
commit d90fa8158c

View File

@ -40,8 +40,9 @@
<Directory Id='TARGETDIR' Name='SourceDir'>
<Directory Id="$(var.PlatformProgramFilesFolder)">
<Directory Id="INSTALLATIONDIRECTORY" Name="Navidrome">
<Directory Id="INSTALLDIR" Name="Navidrome"></Directory>
</Directory>
<Directory Id="INSTALLATIONDIRECTORY">
<Component Id='LICENSEFile' Guid='eb5610a4-e3f3-4f36-ae2c-e96914e460c2' Win64="$(var.Win64)">
<File Id='LICENSE' Name='LICENSE' DiskId='1' Source='LICENSE' KeyPath='yes' />
</Component>
@ -100,7 +101,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'>