The previous version is 1.1.2. I call the uninstaller of previous version with!define AppVersion "1.1.3"
although the new installer is started before the old uninstaller finishes (but that's another topic). I uninstall the old version successfully and continue with the installer of the new version. To my astonishment, AppVersion gets the old value from the uninstalled version, i.e. 1.1.2! Almost everywhere I use the version number, e.g.ExecWait
InstallDir "C:\foo\bar\${AppVersion}" the version number is 1.1.2. However, the version number I write to the registry is the correct new one, 1.1.3, although I use AppVersion for that, too: WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${RegistryName}" "DisplayVersion" "${AppVersion}"If I do not have the old version installed, the new version installer works fine with the correct AppVersion 1.1.3.What's the problem here?