Winamp & Shoutcast Forums

Winamp & Shoutcast Forums (http://forums.winamp.com/index.php)
-   NSIS Discussion (http://forums.winamp.com/forumdisplay.php?f=65)
-   -   Check versions and download (http://forums.winamp.com/showthread.php?t=239621)

Karavirs 1st March 2006 19:02

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.

glory_man 2nd March 2006 08:49

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

code:
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.


All times are GMT. The time now is 04:39.

Copyright © 1999 - 2010 Nullsoft. All Rights Reserved.