(I couldn't find anything searching)
This mistaken code will help you understand my question:
ReadRegStr $4 HKCU "Software\foobar2000" InstallDir
Rename "$4\foobar.cfg" "$4\foobar pre-${FULL}.cfg"
SetOutPath "$4"
File "$4\foobar.cfg"
5 posts
ReadRegStr $4 HKCU "Software\foobar2000" InstallDir
Rename "$4\foobar.cfg" "$4\foobar pre-${FULL}.cfg"
SetOutPath "$4"
File "$4\foobar.cfg"