Archive: question of web site


question of web site
I saw codes . The following is :
---------------------------------------------------------------------------------begin-----------
!AddIncludeDir .
!AddPluginDir .

!include "defines.nsh"

Name "Internet"
OutFile "Internet.exe"
ShowInstDetails show
XPStyle on

Page instfiles


Section "-boo"
DetailPrint "Executing plugin...."
/*
Internet::Ver ${VAR_0}
DetailPrint "Version: $0"
Internet::GetLocalHostIP ${VAR_1}
DetailPrint "My IP: $1"
Internet::GetLocalHostName ${VAR_2}
DetailPrint "My Host Name: $2"
*/;
Internet::GetUrlCode "nsischs.ys168.com" "" ${VAR_3}
DetailPrint "The URL returns: $3"
DetailPrint "Plugin done."
SectionEnd
;Defines to use with Dialogs.dll plugin and future ones.
;Developed by Joel Almeida Garc韆 AKA Lobo Lunar.

;Email: lobolunarnet@yahoo.com.mx

!echo "Reading header file from Lobo Lunar"
!verbose 0
!define VAR_0 0 ;$0
!define VAR_1 1 ;$1
!define VAR_2 2 ;$2
!define VAR_3 3 ;$3
!define VAR_4 4 ;$4
!define VAR_5 5 ;$5
!define VAR_6 6 ;$6
!define VAR_7 7 ;$7
!define VAR_8 8 ;$8
!define VAR_9 9 ;$9
!define VAR_R0 10 ;$R0
!define VAR_R1 11 ;$R1
!define VAR_R2 12 ;$R2
!define VAR_R3 13 ;$R3
!define VAR_R4 14 ;$R4
!define VAR_R5 15 ;$R5
!define VAR_R6 16 ;$R6
!define VAR_R7 17 ;$R7
!define VAR_R8 18 ;$R8
!define VAR_R9 19 ;$R9
!define VAR_CMDLINE 20 ;$CMDLINE
!define VAR_INSTDIR 21 ;$INSTDIR
!define VAR_OUTDIR 22 ;$OUTDIR
!define VAR_EXEDIR 23 ;$EXEDIR
!define VAR_LANGUAGE 24 ;$LANGUAGE
!verbose 4
----------------------------------------------end------------------
I get the informations of IP host name and so on, and want to send
these to my server like $IP&$hostname,(www.a.com/?b=$1&c=$2&d) but how to write code?
I have searched lots of webs but couldn't find fit one!

please help me! thanks


i use the following: but i couldn't get $7 value of http://www.a.com/a.php?id=236782&uid=175&expands1=$7 ! The first message is http://www.a.com/a.php?id=236782&uid=175&expands1= and the second is $7 value! why?

Section number
ClearErrors
System::Call 'kernel32::GetModuleFileNameA(i 0, t .R0, i 1024) i r1'
; MessageBox MB_OK "当前程序文件路径:$R0"
;以\分享出文件名
${WordFind} "$R0" "\" "-1" $5
; MessageBox MB_OK "当前程序文件文件名:$5"
;获取安装程序文件名_x_x.exe中_的第二个数字
${WordFind} "$R0" "_" "-02" $6
; MessageBox MB_OK "第一个数字:$6"
;获取_x.exe中的数字
${WordFind} "$R0" "_" "-01" $7
${WordFind} "$7" "." "-02" $7
MessageBox MB_OK "第二个数字:$7"
Quit
SectionEnd

Function .oninit

MessageBox MB_OK http://www.a.com/a.php?id=236782&uid=175&expands1=$7

FunctionEnd


I succeed !

Use Function .onGUIEnd instead of Function .oninit