Excellent that is what I’ve been looking for. Cheers!
Will NSIS do what i'm looking to do?
47 posts
I always find something that I am looking for in Examples directory
👍
👍
hello, how is it goin?
i could very easily develop the program by means of your nice method! and, by the way, the username and password work properly!
but please tell me, if i want the username and password work only on one computer,what should i do?
i appreciate if you could guide me through this: when the subscriber wants to install the program, i want to do sth that the serial number on his hard disk or motherboard be sent to me in order that i can realize that he is the real subscriber or not!!!
if there is any plug-in, i appreciate if you send it to me with an example.
thanks in advance!!! i'm eagerly looking forward to hearing from you soon...
i could very easily develop the program by means of your nice method! and, by the way, the username and password work properly!
but please tell me, if i want the username and password work only on one computer,what should i do?
i appreciate if you could guide me through this: when the subscriber wants to install the program, i want to do sth that the serial number on his hard disk or motherboard be sent to me in order that i can realize that he is the real subscriber or not!!!
if there is any plug-in, i appreciate if you send it to me with an example.
thanks in advance!!! i'm eagerly looking forward to hearing from you soon...
hello...
Here's an example of how to get the drive serial number:
But just keep in mind you'd be restricting installation that DRIVE not to the computer.
Getting the serial numbers from other hardware might be more involved. This is the best info I could find from NSIS:
Other than that, you'll probably have to do some research on your own (maybe at MSDN, etc.)
But just keep in mind you'd be restricting installation that DRIVE not to the computer.
Getting the serial numbers from other hardware might be more involved. This is the best info I could find from NSIS:
Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
Other than that, you'll probably have to do some research on your own (maybe at MSDN, etc.)
thanks Comperio.
Originally posted by pankajch82Hi, the same happens to me, I created a database and a table with 2 fields, one for the key and another for the status, insert a key into the database to perform the test but does not work.
i am trying same , using above code & using below url
pnilyaoverseas.com is your first and best source for all of the information you’re looking for. From general topics to more of what you would expect to find here, pnilyaoverseas.com has it all. We hope you find what you are searching for!
for easy testing i had disabled post from 5 boxes , now it just post from 1st box .....so if u type 12345 it should return Valid , if u type 00000 it should return INVALID.
But its not happening , its taking valid for everything
I think that everything is fine, because if i apply the test directly to the site the result is the expected, but not with the installer.
Any help is welcome.
Hello all,
I was wondering what the solution was on that problem when you enter a false key and where send back to the insert product key page, then when you entered the same key the key was valid.
Thanks in advance
I was wondering what the solution was on that problem when you enter a false key and where send back to the insert product key page, then when you entered the same key the key was valid.
Thanks in advance
hello
iam searching a serialUI like that, i spending lot of time to find the code. now i got the result. see my attachement
iam searching a serialUI like that, i spending lot of time to find the code. now i got the result. see my attachement
putting output into variable, is it possible
Hello there,
Does anyone have an example on how I can put the return html status into a variable?
I'm still new to NSIS, and I fully admit i'm not a programmer (systems admin guy here). I'm creating a username and password functionality, and the return from the PHP file would normally go into a file, but I'd like to have this return into a variable.
Do I need to do fileOpen ?
or?
Hello there,
Does anyone have an example on how I can put the return html status into a variable?
I'm still new to NSIS, and I fully admit i'm not a programmer (systems admin guy here). I'm creating a username and password functionality, and the return from the PHP file would normally go into a file, but I'd like to have this return into a variable.
Do I need to do fileOpen ?
or?
can you help me please post the source for the validate serial number.zip file?
thanks
thanks
anyone still watching this?
looking for some help with an issues that came up after implementing this,
everything working fine here; info gets to the right place and validated;
(using -> InetLoad::load /POST "" "http://...)
the issue is when a special character exists in any one of the fields submitted,
in particular + sign is stripped off from passwords field 🤪
trying to find help using NSIS+"+" or plus or just about any search combination;
brings up every possible thread that has a + or Plus in it;
impossible to find the answer which im sure is out there 🧟
any help greatly appreciated 🙂
TIA
Chris,
looking for some help with an issues that came up after implementing this,
everything working fine here; info gets to the right place and validated;
(using -> InetLoad::load /POST "" "http://...)
the issue is when a special character exists in any one of the fields submitted,
in particular + sign is stripped off from passwords field 🤪
trying to find help using NSIS+"+" or plus or just about any search combination;
brings up every possible thread that has a + or Plus in it;
impossible to find the answer which im sure is out there 🧟
any help greatly appreciated 🙂
TIA
Chris,
how typical,
struggling with this so long; a minute after i post for help i find the answer,
Unicode true
now to the next obstacle; a 3 attempt exit loop for this gem 🙂
struggling with this so long; a minute after i post for help i find the answer,
Unicode true
now to the next obstacle; a 3 attempt exit loop for this gem 🙂
the last frontier; been driving me crazy the past two days,
i need some help getting this to exit if INVALID 3 times, any advice?
TIA
Chris,
i need some help getting this to exit if INVALID 3 times, any advice?
TIA
Chris,
Alright, quick once over:
In CustomCreate, why are you pushing/popping $1? Installoptions is a plugin call, not a standard function call, so you don't have to push arguments for it to work, so this is all you need:
Try something like this:
In CustomCreate, why are you pushing/popping $1? Installoptions is a plugin call, not a standard function call, so you don't have to push arguments for it to work, so this is all you need:
InstallOptions:😁ialog '${CUST_INI}'In CustomLeave, you don't have to push all the variables onto the stack, this is only used for functions that don't reach into the installer code and need space to do its job and pops the variables back when it's finished.
pop $1
Try something like this:
Unicode true
## Include headers
!include LogicLib.nsh
!include CheckUserEmailAddress.nsh
!define APP_NAME "My Application"
!define CUST_INI "$PLUGINSDIR\custom.ini"
LoadLanguageFile "${NSISDIR}\Contrib\Language files\English.nlf"
LangString MsgUsrField ${LANG_ENGLISH} "Please enter a valid Email address"
LangString MsgOrgField ${LANG_ENGLISH} "Invalid License Key, please try again"
Name "${APP_NAME}"
OutFile "${APP_NAME}.exe"
ShowInstDetails show
Var count
page custom CustomCreate CustomLeave
page instfiles
Section -
;
SectionEnd
Function .onInit
StrCpy $count 0
InitPluginsDir
GetTempFileName $0
Rename $0 '${CUST_INI}'
Call WriteIni
FunctionEnd
Function CustomCreate
InstallOptions::Dialog '${CUST_INI}'
pop $1
FunctionEnd
Function CustomLeave
ReadIniStr $2 '${CUST_INI}' 'Field 2' 'State'
${CheckUserEmailAddress} "$2" "$R0"
StrCmp $R0 "1" 0 next
MessageBox MB_OK "Invalid e-mail address, please try again."
Abort
next:
ReadIniStr $3 '${CUST_INI}' 'Field 3' 'State'
InetLoad::load /POST "" "http://www...php?$2&$3"
Pop $1
FileOpen $2 $0 "r"
FileRead $2 $3
FileClose $2
${If} $3 == 'INVALID'
MessageBox MB_OK|MB_ICONEXCLAMATION "Invalid Serial"
IntOp $count $count + 1
IntCmp $count 3 0 continue 0
MessageBox MB_OK|MB_ICONSTOP "Invalid Serial was entered three or more times."
continue:
Abort
${EndIf}
FunctionEnd
#################################################################################
# build custom.ini at runtime
#################################################################################
Function WriteIni
WriteIniStr '${CUST_INI}' 'Settings' 'NumFields' '5'
WriteIniStr '${CUST_INI}' 'Field 1' 'Type' 'GroupBox'
WriteIniStr '${CUST_INI}' 'Field 1' 'Left' '8'
WriteIniStr '${CUST_INI}' 'Field 1' 'Top' '10'
WriteIniStr '${CUST_INI}' 'Field 1' 'Right' '-20'
WriteIniStr '${CUST_INI}' 'Field 1' 'Bottom' '-54'
WriteIniStr '${CUST_INI}' 'Field 1' 'Text' 'Order Details'
WriteIniStr '${CUST_INI}' 'Field 2' 'Type' 'Text'
WriteIniStr '${CUST_INI}' 'Field 2' 'Left' '60'
WriteIniStr '${CUST_INI}' 'Field 2' 'Top' '26'
WriteIniStr '${CUST_INI}' 'Field 2' 'Right' '-61'
WriteIniStr '${CUST_INI}' 'Field 2' 'Bottom' '40'
WriteIniStr '${CUST_INI}' 'Field 2' 'State' 'Email address here...'
WriteIniStr '${CUST_INI}' 'Field 2' 'Minlen' '6'
WriteIniStr '${CUST_INI}' 'Field 2' 'ValidateText' ''
WriteIniStr '${CUST_INI}' 'Field 3' 'Type' 'Text'
WriteIniStr '${CUST_INI}' 'Field 3' 'Left' '60'
WriteIniStr '${CUST_INI}' 'Field 3' 'Top' '50'
WriteIniStr '${CUST_INI}' 'Field 3' 'Right' '-61'
WriteIniStr '${CUST_INI}' 'Field 3' 'Bottom' '64'
WriteIniStr '${CUST_INI}' 'Field 3' 'State' 'Serial key here...'
WriteIniStr '${CUST_INI}' 'Field 3' 'Minlen' '16'
WriteIniStr '${CUST_INI}' 'Field 3' 'ValidateText' ''
WriteIniStr '${CUST_INI}' 'Field 4' 'Type' 'label'
WriteIniStr '${CUST_INI}' 'Field 4' 'Text' 'Email:'
WriteIniStr '${CUST_INI}' 'Field 4' 'Left' '15'
WriteIniStr '${CUST_INI}' 'Field 4' 'Top' '31'
WriteIniStr '${CUST_INI}' 'Field 4' 'Right' '-61'
WriteIniStr '${CUST_INI}' 'Field 4' 'Bottom' '40'
WriteIniStr '${CUST_INI}' 'Field 5' 'Type' 'label'
WriteIniStr '${CUST_INI}' 'Field 5' 'Text' 'License Key:'
WriteIniStr '${CUST_INI}' 'Field 5' 'Left' '15'
WriteIniStr '${CUST_INI}' 'Field 5' 'Top' '55'
WriteIniStr '${CUST_INI}' 'Field 5' 'Right' '-61'
WriteIniStr '${CUST_INI}' 'Field 5' 'Bottom' '64'
Functionend Thank you very much Jason, elegantly done!
i had removed some of the junk code before posting;
in that section i called info from the reg then attempt to enter it in the user name field,
still learning NSIS; but by all means i didn't think id be able to get half this far this quick;
following this thread is a must for anyone working with NSIS; great work guys!
thank you again Jason, worked perfect!
Chris,
i had removed some of the junk code before posting;
in that section i called info from the reg then attempt to enter it in the user name field,
still learning NSIS; but by all means i didn't think id be able to get half this far this quick;
following this thread is a must for anyone working with NSIS; great work guys!
thank you again Jason, worked perfect!
Chris,
No problem. I consider myself a senior member now (been on the forums since 2005), not just a user but a contributor to the source code too. Good luck with your installer.