Archive: Message-Dialog to enter USERNAME & SERIAL


Message-Dialog to enter USERNAME & SERIAL
Hi there,

I am going to write a shareware-software.
When people buy the serial, they can enter it in the program.
The entered number (etc.) should be handled as a variable.
So you can write them to the serial etc.

How can I do that?

Thanks
Tobias


to get the serial/user, you can probably use the messagebox command, and do an inputbox. not sure exactly, check the nsis docs.


use Install Options :)

It will allow you to create a dialog window which fits right inside the NSIS window.


Make an external program
Make a little external program which ask for the registration data an check it in the way you want, make it return non 0 if all went right, otherwise 0 .Then simply package it you installation, extract to temp dir, ExecWait & check error flag.


Re: Make an external program

Originally posted by BitRider
Make a little external program which ask for the registration data an check it in the way you want, make it return non 0 if all went right, otherwise 0 .Then simply package it you installation, extract to temp dir, ExecWait & check error flag.
I agree. If you use a modified version of NSIS you will be stuck with it. (unless the author keeps his modifications up to date)

You may even want to include this addition into the application itself so it will prompt the user when it first runs.