Talk:BattleTorrent plug-ins
From NSIS Wiki
Jump to navigationJump to search
Problems with BattleTorrent version 0.0 and NSIS 2.35
Tpokorra 08:42, 6 April 2008 (PDT)tpokorra
- I tried to use this plugin with NSIS 2.35 but found that the installer crashed after a successful download of file hosted as a torrent.
- I also found that a normal download via http would not work anymore with the new /TRANSLATE2 parameters
my solution:
- I have found that BattleTorrent 0.0 nsisdl.cpp was based on NSIS 2.0 RC3.
- I have now created a new version of nsisdl.cpp that is based on NSIS 2.35 (actually 2.36 has no changes in nsisdl)
- the function setupProgressBar is now much smaller
- I have not implemented g_hwndStatic2
- I had to add somewhere at the end of the function execFile to avoid the crash after a successful download:
if (g_hwndParent) { SetWindowLong(g_hwndParent,GWL_WNDPROC,(long)lpWndProcOld); }
I have uploaded my modified nsisdl.cpp and the Release dll here: http://download.pokorra.de/coding/BattleTorrentFix.zip
Please feel free to use my changes or files in any future release. Please drop me an email at timo *at* pokorra.de if you have any questions.