I am trying to find documentation on how the stateSaver / savedState Dictionary file for a Windows installer works in overriding Install and UnInstall, can someone help.
In my CustomAction installers, which I wrote in the registry entry, every time I do this, I add some details from this state to stateSaver. I assumed that this was taken into account when deleting, but how?
I think that the StateSaver dictionary is written to the file during installation, and when deleting the contents of this file, .InstallState is read and used to install the found records.
My problem is that some registry entries remain after deletion, I don’t know why my understanding of how the dictionary works does not help either.
Here is an example of what the installation does
RegistryKey expressionEvaluatorVersionKey = expressionEvaluatorKey.CreateSubKey(packageVersion);
This creates an additional key for the key added with the Windows installer. How to remove this extra key when deleting?
installer installation windows-installer
learnerplates
source share