diff --git a/win32/deluge.nsi b/win32/deluge.nsi index cf0c4f0e7..85c3e0a4e 100644 --- a/win32/deluge.nsi +++ b/win32/deluge.nsi @@ -13,7 +13,11 @@ OutFile "deluge.exe" ; Default install dir - InstallDir "$PROGRAMFILES\Deluge" + InstallDir "$PROGRAMFILES" + +; Dependencies + + !define LIBTORRENT ; Interface Settings @@ -43,18 +47,32 @@ ; Installer Sections -Section "Deluge" deluge +Section "Deluge Core" deluge SectionIn RO - SetOutPath "$INSTDIR" - - file "..\README" + SetOutPath "$INSTDIR\Deluge" WriteUninstaller "$INSTDIR\uninstall.exe" SectionEnd +SubSection /e "Dependencies" deps + + Section "Libtorrent" libtorrent + + SectionIn 1 + + ; Download MSI + NSIS:dl download ${LIBTORRENT_URL} "$TEMP\${LIBTORRENT}" + + ; Install MSI + delete "$TEMP\${LIBTORRENT}" + + SectionEnd + +SubSectionEnd + ; Descriptions ; Language strings