Old 9th March 2017, 12:27   #1
Coby
Junior Member
 
Join Date: Feb 2016
Posts: 36
Plugins itdownload.dll

How do I download files using this plugin itdownload.dll?
This plugin is used mainly installers Inno Setup but we tried to use it and NSIS
I'm not sure if this is the correct configuration.

PHP Code:
# INFO #

Name "itdownload"
OutFile "itdownload.exe"
InstallDir "$TEMP\itdownload"

# COMPRESSOR #

SetCompressor /SOLID /FINAL lzma

# RUNTIME #

RequestExecutionLevel "USER"

# HIDE # SHOW #

ShowInstDetails nevershow
ShowUninstDetails NeverShow

# INCLUDES #

!include "MUI2.nsh"

# STYLE & ICON #

BrandingText ` `

# PAGE #

Page instfiles "" ""

# LANGUAGE #

!insertmacro MUI_LANGUAGE English

# INIT #

Function .onInit
  InitPluginsDir
  SetOverwrite 
try
  
AllowSkipFiles off
  Setoutpath 
"$PLUGINSDIR"
  
File "${NSISDIR}\Plugins\itdownload.dll"
FunctionEnd

# SECTION #

Section "MAIN" SEC01

 ClearErrors
 CreateDirectory 
"C:\Downloads"

 
DetailPrint `Downloading ... Please wait ...`

 
System::Call '$PLUGINSDIR\itdownload.dll::itd_downloadfile(t"http://download.iobit.com/unlocker-setup.exe", t"C:\Downloads\unlocker-setup.exe",i0)i.s'
 
Pop $0
 
${If} $0
    DetailPrint 
`$0`
 ${Else}
   
DetailPrint `$0`
 ${Endif}

 
Setautoclose "True"
SectionEnd

# END #

Function .onGUIEnd
FunctionEnd 
Attached Files
File Type: 7z itdownload.7z (79.8 KB, 16 views)
Coby is offline   Reply With Quote
Old 9th March 2017, 17:13   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,481
You are not sure? Does it work or not? Without knowing the function signature there is nothing I can do to help.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 10th March 2017, 09:24   #3
Coby
Junior Member
 
Join Date: Feb 2016
Posts: 36
Using the above configuration it works.
More about this plugin can be found here: http://www.sherlocksoftware.org/page.php?id=2

https://github.com/wilbit/itdownload

I have already contacted the manufacturer of the plugin for a variant of use and NSIS.
Coby is offline   Reply With Quote
Old 10th March 2017, 11:51   #4
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,481
IDT_DownloadFile only takes 2 parameters, not 3 and you want 'm' not 't' unless they also have a Unicode version.

IntOp $PostCount $PostCount + 1
Anders 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