BattleTorrent plug-ins: Difference between revisions
From NSIS Wiki
Jump to navigationJump to search
m (Wikipedia python library) |
m (Updated author and download links, and changed format of some pages.) |
||
Line 1: | Line 1: | ||
== Links == | == Links == | ||
Source + binaries: | |||
[[Image:Zip.gif]] [http://prdownloads.sourceforge.net/battletorrent/BattleTorrent-0.0.zip?download BattleTorrent-0.0.zip] (4.03 MB) | |||
== Description == | == Description == | ||
Line 24: | Line 26: | ||
</highlight-nsis> | </highlight-nsis> | ||
Page author: [[User:eries|eries]] | |||
Page author: eries |
Revision as of 12:43, 23 April 2005
Links
Source + binaries:
BattleTorrent-0.0.zip (4.03 MB)
Description
Combine NSISdl and the NSIS Python Plugin, and you get an NSIS installer that is capable of downloading content via BitTorrent. This was initially developed by IMVU, and released as part of the BattleTorrent project.
If you'd like to see an example in action, you can download it here.
Because BitTorrent only downloads only the chunks of files that have changed, it makes a great client updater too. And because it's peer-to-peer, it uses a lot less bandwidth than just a regular HTTP downloader.
Example Usage
; $R0 contains the CMDLINE plus the torrent URL StrCpy $R0 "$CMDLINE http://download.imvu.com/catalog/download/dist.torrent" ; $R1 contains the target folder StrCpy $R1 "$INSTDIR" NSISdl::execFile "$INSTDIR\bt\btdownloadnsis.py" IfErrors errortag Pop $R2 StrCmp $R2 "error" errortag noerrortag errortag: Abort noerrortag:
Page author: eries