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.