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