Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 2005
    Posts
    13

    Create Registry Key

    I have a Page called "LicenseDetails-Add".

    On that page I have an Input Filed and a button.

    I want the button to add a registry entry in the system Registry with the code thats is inputted into the input filed on the page. (the license code)

    This is what I have so far on the button...

    01. --get the serial number
    02. sSerial = Input.GetText("serial");
    03. -- now create the registry key
    04. Registry.CreateKey(HKEY_LOCAL_MACHINE, "Software\\BlueZebra");
    05. --then go back to the license check page
    06. Page.Jump("LicenseCheck");

    I think I need to add some more script to Line 4 so that it creates the license entry in the registry based on the input of the input field.

    Help anyone?

  2. #2
    Join Date
    Oct 2005
    Location
    Brazil - Belo Horizonte
    Posts
    118
    Use this
    Code:
    Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\BlueZebra", "Serial", ""..sSerial.."", REG_SZ);

  3. #3
    Join Date
    Dec 2005
    Posts
    13

    That worked great

    That woked Great Thanks!

Similar Threads

  1. Default value when getting a registry Key
    By ChristianD in forum AutoPlay Media Studio 6.0
    Replies: 2
    Last Post: 11-09-2005, 11:14 AM
  2. Unable to find software?
    By NigelLacey in forum Visual Patch 2.0
    Replies: 4
    Last Post: 10-11-2005, 10:35 AM
  3. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  4. HOWTO: Create a Page Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-26-2002, 05:20 AM
  5. HOWTO: Create a File Association
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-04-2002, 02:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts