Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3

Thread: Reg. Problem

  1. #1
    Join Date
    Dec 2007
    Posts
    27

    Reg. Problem

    Hi All , I need help to create a reg check to start my application

    the code in On Startup this example

    Code:
    result = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\My Application\\Name", "ok", true);
    if not ok then
        Application.Exit();
    end

    in reg


    I nee to check my application this value (Start = OK) for to start


    sorry for my english, I talk spanish

    And thank to response

  2. #2
    Join Date
    Aug 2003
    Posts
    2,427
    In your screenshot you show HKEY_CURRENT_USER but in your code you are checking HKEY_LOCAL_MACHINE.

    Based on the screenshot, try -

    Code:
    result = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\My Application\\Name", "Start", false);
    
    if result ~= "ok" then
    Application.Exit()
    end
    Last edited by longedge; 03-21-2008 at 05:02 AM.

  3. #3
    Join Date
    Dec 2007
    Posts
    27
    you have rightly, I make wrong regestry

    heheheh thanks

Similar Threads

  1. Problem installing fonts
    By ByronFS in forum Setup Factory 7.0
    Replies: 5
    Last Post: 05-08-2006, 12:23 PM
  2. Video Problem
    By ScottDuncan in forum AutoPlay Media Studio 5.0
    Replies: 0
    Last Post: 07-10-2004, 01:38 PM
  3. PROBLEM: Setup Starts and then Crashes
    By Support in forum Setup Factory 5.0
    Replies: 0
    Last Post: 10-15-2002, 03:02 PM
  4. INFO: Tips for Debugging Action Lists in AutoPlay Media Studio 4.0
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-03-2002, 08:38 AM
  5. HOWTO: Merge REG Files with the Registry
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 09-23-2002, 02:48 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