Hi,
I store a registry value when the software installs. When the newer version of software is installed I run a custom action (an EXE) to do database updates i.e. run some scripts. I have a check in the custom EXE that it should not run scripts for version that was already installed.
The trouble however is that during installation the older version is removed first (the registry is removed) and then the new files (including new scripts) are copied. This means that the custom EXE runs all the scripts because it does not find anything in the registry.
How can I retain the registry key on uninstall? Is there another way to do what I am doing? What are environment variables and can they help me here?
Many thanks
Tahir
FOLLOW US
Get the latest news in Application Packaging