Archive: Check versions and download


Check versions and download
I have read the existing posts re: checking versions and downloading new versions. Unfortunately, it is as clear as mud to me and I could use some assistance.

I have an existing NSIS MUI install script that works just fine. I would like to add version checking (yes I looked at the NSIS install script, but where does the $VERSION come from) and then grab a text/ini file from the host that has links to the current release, beta, and alpha versions (users choice of course)

Pointing me to some sample code would be most appreciated.


Look function PageReinstall at the makensis.nsi (NSIS install script). You can see

ReadRegDWORD $R0 HKLM "Software\NSIS" "VersionMajor"
...
ReadRegDWORD $R0 HKLM "Software\NSIS" "VersionMinor"
...
ReadRegDWORD $R0 HKLM "Software\NSIS" "VersionRevision"
...
ReadRegDWORD $R0 HKLM "Software\NSIS" "VersionBuild"


This is code for read version of installed NSIS package (which wroted in regestry during installation).

To download text/ini file from internet host you can use NSISdl or InetLoad plugins.