Archive: Error using InetC


Error using InetC
If i use Inetc plugin in .OnInit function, installer never gets focus when launched.
Ex :


!include "MUI2.nsh"
Name "test"
OutFile "Install.exe"
RequestExecutionLevel Admin

!InsertMacro MUI_PAGE_License $(license)
!InsertMacro MUI_PAGE_INSTFILES
Function .onInit
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
HTTP:
InetC::Get /SILENT "http://www.google.com" "$TEMP\bug.txt" /END
Pop $0
StrCmp $0 "OK" OK
ERR:
messagebox mb_ok "Error : $0"
OK:

FunctionEnd
Section
SectionEnd


Any help ?
thx

INETC problem
you need to place below code on MUI_CUSTOMFUNCTION_GUIINIT function

System::Call "user32::SetWindowPos(i r0, i -1, i 0, i 0, i 0, i 0, i 3)"
inetc::get /SILENT "http://yoururl" "$TEMP\stat.log"
System::Call "user32::SetWindowPos(i r0, i -2, i 0, i 0, i 0, i 0, i 3)"


Let me know still you face this error.