Archive: Version check before installation


Version check before installation
Hi, folks... I hope, you can help... :)

I'm a developer of an NSIS-powered software, and I want to perform a check if the current installer is the newest version...

An example:
My user wants to install v3.00, but there's a newer v3.10 available online.

There is a .html file on the internet with these contents:

start 0
version 3.10
build 080504
info_ger 0
info_ger_link 0
info_eng 0
info_eng_link 0
...
end 0


My installer already knows its version:
!define reg_ver "3.00"


Now:
How can I make NSIS check the "version" entry online and compare it with its own reg_ver variable?

Thanks in advance...

Use http://nsis.sourceforge.net/Inetc_plug-in and download the file.

Read version string using FileOpen/FileRead instructions.

Compare versions using http://nsis.sourceforge.net/VersionCompare


OK thanks... I hope I'll manage it...


You can use ConfigRead to get the value by using an entry value of "version " (notice the space).

Stu