Version displayed in Control Panel

Hi,

What happens to the version of my software displayed under "Control Panel\Programs\Programs and Features" after running an update? The displayed version is stored in the registry key HKLM\Software\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\wyUpdate\DisplayVersion for example. If this needs adding 'Registry Changes' to the project, how can this be achieved through the xml format (AddVersion)?

ThanksYves

Hey Yves,

Simply set the value data with the "%version%" value. (This will use the version of the update):

[attachment=0]uninstall-data.png[/attachment]

Then use the "<InheritPrevRegistry />" element. This will use the registry from the previous version. But since you used the variable %version% it will use the correct values when you install the updates.

E.g.:

<?xml version="1.0" encoding="utf-8"?><Versions>    <AddVersion>        <Version>1.2</Version>        <Changes>Some very very cool stuff</Changes>        <InheritPrevRegistry />        <Files dir="basedir">            <File source="C:\YourProduct\1.2\YourProduct.exe" />            <File source="C:\YourProduct\1.2\Awesome.dll">NewName.dll</File>


            <Files dir="Sub folder">                <File source="C:\YourProduct\1.2\Sub folder\File.dat" />            </Files>        </Files>


        <Files dir="sys32\YourProduct">            <File source="C:\YourProduct\1.2\AnotherFile.dll" />        </Files>    </AddVersion></Versions>

Tell me if this helps.