Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2005
    Posts
    2

    Installation Folder Question

    I was wondering if the following is possible. We have an existing product that is an add on to our main product. Now, a new version of our main product is out so I would like to set up the add on installer so that it looks in the user's registry to see if the newest version exists and if so, install there by default. But if user only has the older newer version, then I want to install to their older version by default. Basically I want the user to see the proper "Install To" folder based on which version of our main product is installed on their system.

    The main program (both the previous and current versions) writes a registry entry telling of its existence, and I know how to create registry variables in Setup Factory. The part I can't figure out is how to use one variable based on it's existence or the 2nd variable if the 1st doesn't exist.

    BTW, we are using Setup Factory 5. Can this be done in v5? If not, what about in the newest version?

  2. #2
    Join Date
    Oct 2003
    Location
    Richmond, VA
    Posts
    143
    Not sure about SF5, but with SF7 it is very simple to accomplish. I won't bother with actual code since you don't have SF7, but I can snip it out of my project if you want as I do a similar check at the beginning of my install routine.

    I have something similar to the following (pseudoscript):

    Code:
    if RegKey1 exists
      read the key/value and store the install dir in the %AppDir% variable
      GoTo label Exit
    end if
    
    if RegKey2 exists
      read the key/value and store the install dir in the %AppDir% variable
      GoTo label Exit
    end if
    
    If we get here then it didn't find either reg key...so take care of that here...
    
    label "Exit"
    -- this is the end of the script

    SF5 would use actions instead of a script. As long as it has an IF construct (SF6 does), labels and GoTos, you should be able to do the same type of thing.

  3. #3
    Join Date
    Aug 2005
    Posts
    2
    Thanks for the reply. Unfortunately, I do not think that SF5 supports the IF construct, or if it does I haven't figured out how. Searching the help for Actions doesn't come up with anything.

    Anyone know for sure that this is not possible in SF5?

  4. #4
    Join Date
    May 2000
    Location
    Indigo Rose Software
    Posts
    2,150
    Conditional statements were quite limited in version 5.0. If there is a solution then it will be in the "Conditions" tab for that screen.

    I am sure that you will have more success with version 7.0.

    Adam Kapilik

  5. #5
    Join Date
    Nov 2005
    Posts
    8
    Hey

    Can you explain in detail how's it working?

    I am trying to install a mod for a game and want SF to find the exe file of the game on any driver (not C only). Then I want SF to set up the folder where the exe file is in.
    I already fogured out how to make a shortcut with the command extension to launch the mod.

    Can someone explain it in detail plz.

Similar Threads

  1. rename folder question
    By n1i2r3 in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 06-22-2005, 08:04 AM
  2. cookies
    By goukilord10 in forum AutoPlay Media Studio 5.0
    Replies: 6
    Last Post: 05-20-2005, 04:08 PM
  3. How do you remove Installation Folder?
    By Toby123 in forum Setup Factory 6.0
    Replies: 7
    Last Post: 01-24-2003, 01:42 PM
  4. HOWTO: Add DirectX 8.1 Support to your Setup Factory 6.0 Installation
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-30-2002, 01:55 PM
  5. Installation Folder Screen
    By Chris Wasley in forum Setup Factory 5.0
    Replies: 4
    Last Post: 11-27-2001, 09:04 AM

Posting Permissions

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