Solved

Shareware idea?

Posted on 1998-11-20
10
233 Views
Last Modified: 2010-04-04
I am trying to create a programme where a message box appears asking to register the software and when a correct code is then input this box doesn't appear again. I can do this for the first time the programme is run, but then on subsequent start-ups the box reappears asking for user input.
Is there any way that with correct user input the message box is destroyed and doesn't appear again (even after Windows is restarted)?
(A shareware sort of idea I suppose).
Chris

PS
Sorry for low points but I'm broke.
0
Comment
Question by:xpher
  • 4
  • 3
  • 3
10 Comments
 
LVL 1

Expert Comment

by:jecksom
ID: 1347429
hi xpher!

why not not store user input (crypted or not) into regestry ? something like :

\\HKEY_CURRENT_USER\Software\<your_prog_name\key = "passed".
So you can check , if current user already passed first time dialog.

Jecksom

0
 
LVL 1

Expert Comment

by:jecksom
ID: 1347430
hi xpher!

why not to store user input (crypted or not) into regestry ? something like :

\\HKEY_CURRENT_USER\Software\<your_prog_name\key = "passed".
So you can check , if current user already passed first time dialog.

Jecksom

0
 
LVL 1

Author Comment

by:xpher
ID: 1347431
Hi jecksom

I'm a bit of a novice to this, I see sort of what you mean but don't know how to implement it.

Appreciate a little more help.

Thanks
Chris :)
0
 
LVL 1

Accepted Solution

by:
jecksom earned 50 total points
ID: 1347432
Hi xpher !

here is example , run program twice :
procedure TForm1.FormCreate(Sender: TObject);
var reg:tregistry;
begin
Reg := TRegistry.Create;
try
  with Reg do
  begin
    RootKey := HKEY_CURRENT_USER;
    if OpenKey('\Software\xpher', True) then
    if not valueexists('passed') then
    begin
    writebool('passed',true);
    showmessage('First time');
    closekey;
    end;
  end;
finally
  Reg.Free;
end;
  end;

Don't forget to check Your values in 'regedit' then you trying to reinitialize program to
first start , just delete 'xper\' key !

Best Regards,
Jecksom

0
 
LVL 10

Expert Comment

by:viktornet
ID: 1347433
These registry stuff is very easy to crakc y'all B-)
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 10

Expert Comment

by:viktornet
ID: 1347434
i mean crack P-)
0
 
LVL 1

Author Comment

by:xpher
ID: 1347435
To jecksom
Sorry for delay in reply. Took me a little time to adapt and understand. But works vry well. I've just got to try and learn how to use encryption now.

Thanks
Chris :))

viktornet
As we say very droll. But nice to know you are still there.
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1347436
Hello again ya B-)

Just gettin' jiggy wit it P-)
0
 
LVL 1

Author Comment

by:xpher
ID: 1347437
viktornet
what the hell do those emoticons mean?

cheers
Chris
0
 
LVL 10

Expert Comment

by:viktornet
ID: 1347438
That's a song of Will Smith if you know who that is... "Getting Jiggy With It" is the name of the song... I'm only saying that I just surf through the questions sometimes when I have some time, and maybe answer the question or leave for someone else to answer.. B-)

Cheers,
Viktor
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
calling Tcolordialog in dll make the form disappear 8 103
Strange behavior when a form is closed 6 50
Convert a string into a TDateTime 5 50
SUM 2 INTEGER ARRAYS INTO 1 10 93
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …
This is a video describing the growing solar energy use in Utah. This is a topic that greatly interests me and so I decided to produce a video about it.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now