Skip to content
⌘ NSIS Forum Archive

How to connect to a server using a custom page

7 posts

ashley_desilva#edited

How to connect to a server using a custom page

Hi,
How can I connect to a particular server and access a database in that server from a custom page that is created using the 'InstallOptions' plug-in.
Basically what I have is a registration form which asks the user for a registration key. In my setup it is crucial that I contact the server from the custom page, so that I can identify that the registration key entered by the user is a valid one and allow the installation to continue only if is a valid key.

What is the way around this issue? Please let me know the best solution and other alternatives too.

Can you please help me on this.
kichik#
You can use NSISdl, InetC or InetLoad to download pages by HTTP. Use them to access your server side script and verify the registration.
ashley_desilva#
Thanks a lot, As a novice I appreciate you taking the time to explain things to me. Thank you.
Afrow UK#
NSISdl is included with NSIS. The other two you will find if you search the Wiki or these forums.

Stu
DEbln001#
Deactivating Buttons

Hello,

I am using inetc in sections and in custom pages. when inetc is downloading files in sections, the install button is deactivated. on custompages, the back/next/abort button are aktivated. now, when inetc is downloading files and i push one of these buttons, the installer crashes. is there any possibilty to deaktivate those buttons during the download process?

thx for your help
Afrow UK#
GetDlgItem $R0 $HWNDPARENT 1
EnableWindow $R0 0
GetDlgItem $R0 $HWNDPARENT 2
EnableWindow $R0 0
GetDlgItem $R0 $HWNDPARENT 3
EnableWindow $R0 0

1 is the Next button, 2 and 3 are the Cancel and Back buttons.

Stu