Source language: Translate to:

Advice On Writing To Registry

Questions about using NeoBook's scripting language

Moderator: Neosoft Support

Advice On Writing To Registry

Postby Pat Baner » Fri Jun 10, 2011 10:45 am

I am looking for a little advice on a SAFE method of writing to the registry of my end users. I have set up a registration process for my program. I need to store a md5 hash result in the registry for future reference, but I have absolutely no idea how to work with registries though (other than screw them up). My gut is telling me not to, but I need to secure the md5 hash somewhere most people can't get to it, but I can still refer to it.

Pat Baner
Posts: 75
Joined: Tue Jan 04, 2011 9:21 am

Postby Neosoft Support » Fri Jun 10, 2011 11:53 am

Basically, the registry is a database used to store information about the computer, system settings, installed software, drivers, etc. Below are a couple of tutorials about the registry that might be helpful:
NeoSoft Support
Neosoft Support
NeoSoft Team
Posts: 5620
Joined: Thu Mar 31, 2005 10:48 pm
Location: Oregon, USA

Postby Pat Baner » Fri Jun 10, 2011 12:11 pm

Thanks. Here is a more specific question. I see in the help file the following:

RegistryWrite "HKEY_CURRENT_USER" "Software\MyPub\UserName" "Joe" where "Joe" is the data I am writing as the "Username" data.

Now, how do I create the "Software\MyPub\UserName" portions in the registry using neobook?

Thanks in advance.
Pat Baner
Posts: 75
Joined: Tue Jan 04, 2011 9:21 am

Postby smartmedia » Fri Jun 10, 2011 1:32 pm


The "Software\MyPub\UserName" will automatically created if not exist during RegistryWrite.

So if you execute this
Code: Select all
RegistryWrite "HKEY_CURRENT_USER" "Software\MyPub\UserName" "Joe"

In HKEY_CURRENT_USER\Software\MyPub\ a new field will created with UserName and data "Joe"
User avatar
Posts: 889
Joined: Fri Apr 01, 2005 6:50 am
Location: Hellas

Return to NeoBook Action Commands

Who is online

Users browsing this forum: No registered users and 2 guests