Archive: Versionnumber in Registry


Versionnumber in Registry
Hello

I want to save the Versionnumber of my Programm into the Registry. So I can check when the Installer starts if the Version on my computer is older or newer or the same.

The actual Version of mit Program is 1.23.
When I save it as a string in the registry, I cant calculate with it, but I can use the string for messages or something else.
When I save it as a DWORD, I cant write it as "1.23"; only as "123". Now I can calculate with it (122 < 123 e.g.). But I cant use it in Messages because the point is missing.


It is a small problem but maybe anyone knows an answer.

Thanks,
aemik


The NSIS package installer saves all 4 parts of its version separately. Each has its own DWORD. This way, it can be easily converted to a string and comparison is still possible.