Old 1st March 2006, 19:02   #1
Karavirs
Junior Member
 
Join Date: Mar 2006
Location: Chicago
Posts: 2
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.
Karavirs is offline   Reply With Quote
Old 2nd March 2006, 08:49   #2
glory_man
Senior Member
 
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
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.
glory_man is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump