|
|
#1 |
|
Junior Member
Join Date: Dec 2006
Posts: 2
|
How to get text box output via installoptions
Hi,
I'm adding an option to my installer for the user to enter a license key, and the installer than posts some details to my server and download an encrypted license file. I've got this latter part working OK when I hard-code the initial license key. The area I'm having problems is getting the user input. Here's my code: code: When I don't enter a license key,and just press "Next", I get no message box, and do NOT go to the next page. If I do enter a license key, I get "Got License: " in the pop-up box, no actual key. And then I DO go onto the next page. Any ideas why $R0 is not populated with the contents of the text box. Also, I've set up the ini file as follows: code: But I don't even get the "Please enter your license key" validation text. Any ideas? Andy |
|
|
|
|
|
#2 |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
StrCmp $R0 '' GotLicense NoLicense ->
StrCmp $R0 '' NoLicense GotLicense Also remove the exit: label while you're not actually use it. Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Dec 2006
Posts: 2
|
Thanks Red Wine.
That helped, but I still couldn't get the value. However, a few hours later I've gotten there. I was calling the .ini as code: And then had code: Some confusion over the CheckLicenseShow I think. I now have code: and code: and it works perfectly. Andy |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|