Is there any way to view/migrate properties from an installation being removed to the new installation in a major upgrade workflow?
This shouldn't matter too much but here's my context. I'm using MigrateFeatureStates to prevent users from recreating the service during major upgrades. The problem I'm seeing is if a user specifies a custom folder location for the service feature the upgrade fails as the service still uses the custom path while the files are installed to the default location.
Service install/control
<ServiceInstall Id="MyServiceInstall" Name="MyService" DisplayName="MyService" Account="[user]" Password="[pass]" Type="ownProcess" Start="auto" ErrorControl="normal" />
<ServiceControl Id="MyServiceControl" Name="MyService" Wait="yes" Start="install" Stop="both" Remove="uninstall" />
Install sequence
<MigrateFeatureStates Sequence="1001" />
<RemoveExistingProducts Sequence="1020" />
<StopServices Sequence="1700" />
<DeleteServices Sequence="1750"><![CDATA[(NOT UPGRADINGPRODUCTCODE)]]></DeleteServices>
<InstallServices Sequence="5800"><![CDATA[NOT(MIGRATE)]]</InstallServices>
<StartServices Sequence="5900" />