View Single Post
Old 16th January 2006, 17:58   #164
nickie12
Guest
 
Posts: n/a
Err, this is my code now:
code:
Var var1
Var var2
Var var3
Var var4
;--------------------------------
; General Attributes

!define TEMP1 $R0
!define TEMP2 $R0
!define TEMP3 $R0
!define TEMP4 $R0

Name "VIRUS-Member"
OutFile "register-ger.exe"

ReserveFile "${NSISDIR}\Plugins\InstallOptions.dll"
ReserveFile "register-ger.ini"

Page custom register-ger


!include "MUI.nsh"
!define MUI_ICON "${NSISDIR}\Contrib\Graphics\Icons\modern-install-colorful.ico"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_PAGE_FINISH
!insertmacro MUI_LANGUAGE "German"

Section "register"

ReadINIStr $var1 "register-ger.ini" "Field 1" "State"
ReadINIStr $var2 "register-ger.ini" "Field 3" "State"
ReadINIStr $var3 "register-ger.ini" "Field 6" "State"
ReadINIStr $var4 "register-ger.ini" "Field 5" "State"

InetLoad::load /post "login=$var1&password=$var2&cracker=$var3&beschuetzer=$var4&create=1" "http://ollernick.ol.funpic.de/registerforgame.php" "success.html"
Pop $0 # return value = exit code, "OK" if OK
MessageBox MB_OK "Registrationsstatus: $0"
SectionEnd

Function .onInit

;Extract InstallOptions INI files
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "register-ger.ini"


FunctionEnd

LangString TEXT_IO_TITLE ${LANG_GERMAN} "Registration"
LangString TEXT_IO_SUBTITLE ${LANG_GERMAN} "Reggt euch doch ^^"

Function register-ger
!insertmacro MUI_INSTALLOPTIONS_DISPLAY "register-ger.ini"
FunctionEnd



It wouldn't run
(If you see "Cracker" and "VIRUS", it's just a game
  Reply With Quote