Check online for Updates: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
No edit summary |
|||
Line 30: | Line 30: | ||
== Download == | == Download == | ||
[http://nsis.sourceforge.net/mediawiki/images/3/39/OnlineUpdate-0.1.zip OnlineUpdate-0.1.zip] | [http://nsis.sourceforge.net/mediawiki/images/3/39/OnlineUpdate-0.1.zip OnlineUpdate-0.1.zip] | ||
[http://nsis.sourceforge.net/XML_plug-in XML plug-in (required)] |
Revision as of 16:10, 8 December 2007
Description
Let the installer check for newer versions. This function downloads an XML file and queries it for the program version. Useful scenarios are using it with RSS feeds or PAD files. Work in progress!
Syntax
${UpdateXml} [url] [path] $var "[url]" ; URL to an XML file "[path]" ; path to the version resource in your XML file ; ; Example: ; <XML> ; <A> ; <B>information</B> ; </A> ; </XML> ; ; -> use "/XML/A/B" as path ; $var ; result, in the above example "information"
Example
Read version from PAD file (XML)
${UpdateXml} "http://198.63.208.118/padinfo/padgen.xml" "/XML_DIZ_INFO/Program_Info/Program_Version" $0 MessageBox MB_OK "The latest version of PADGen is $0"