Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2005
    Posts
    5

    Conditional Install

    Hi Folks,

    Apologies if this seems obvious, I only started using SF7 today...

    I want to make an installation that will run only if a certain registry key exists on the user's system. This installation is intended as a service patch for owners of one of products, the idea being the patch installer won't run if they don't have the original installation installed.

    Many Thanks,

    Sean.

  2. #2
    Join Date
    Jan 2000
    Posts
    2,002
    Here is a sample of how you could accomplish this. Put this code into your On Startup event:

    Code:
    bKeyExists = Registry.DoesKeyExist(HKEY_CURRENT_USER,"Software\\My Company\\My Product");
    if not bKeyExists then
    	Dialog.Message("Notice","Invalid installed version.  Setup will now abort");
    	Application.Exit();
    end

  3. #3
    Join Date
    Feb 2005
    Posts
    5
    Thanks for your prompt reply Brett, the code you give above works a treat...

Similar Threads

  1. Help with conditional install - maybe packaging?
    By sue in forum Setup Factory 6.0
    Replies: 3
    Last Post: 06-22-2004, 09:44 AM
  2. Conditional File Download During Install
    By greenace in forum Setup Factory 6.0
    Replies: 1
    Last Post: 05-06-2003, 12:11 PM
  3. HOWTO: Download and Install Files from the Web
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-23-2002, 01:16 PM
  4. HOWTO: Limit the Number of Times an Install can be Run
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-17-2002, 02:58 PM
  5. Install Type and Package Conditional
    By nancyp in forum Setup Factory 5.0
    Replies: 0
    Last Post: 06-05-2001, 03: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