Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 2 of 2
  1. #1
    Join Date
    May 2003
    Location
    Phoenix, Arizona
    Posts
    38

    Registry.Doeskey exist

    I have a patch for an existing program and I want Setup Factory to check to see if the original program exists before proceeding with the installation. I suppose checking the registry would be the way to go. If the registry key exists, I want set up factory to proceed with the installation. IF the registry key does not exist, I want setup factory to pop up a message and then exit the installation. Can someone point me in the right direction? Thank you.

  2. #2
    Join Date
    Mar 2005
    Location
    WA 'wait a while' - Australia
    Posts
    872
    Hi, perhaps a real simplistic approach could be this for starters:
    could place this in the 'On Startup' actions to see if that is sufficient for your needs:
    (could test as is - then change the registry data to what you want)

    Code:
    if (not Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "Software\\My Target Application Key")) then
    Dialog.Message("looks like she's AWOL", "i will have to exit now");
    Application.Exit();
    end
    this relies there are no action errors and that the installer
    has sufficient system access 'permissions' and that you
    don't wish-need to do more to verify the target for the patch
    is really there, eg: checking for the existance of file-s

    (may not be relevent, just thought worth a mention)

    hth a little
    Last edited by Eagle; 02-16-2006 at 11:53 PM.

Similar Threads

  1. Check if Item exist in ComboBox from page2
    By fossil in forum AutoPlay Media Studio 6.0
    Replies: 3
    Last Post: 01-07-2006, 08:10 AM
  2. TRUE if Exist Directory
    By Option_Explicit in forum AutoPlay Media Studio 4.0
    Replies: 12
    Last Post: 03-07-2003, 10:04 PM
  3. Replies: 7
    Last Post: 02-20-2002, 08:45 AM
  4. Does the "My documents" built-In variable exist ?
    By Entropie in forum Setup Factory 5.0
    Replies: 2
    Last Post: 11-12-2001, 11:31 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