Announcement

Collapse
No announcement yet.

multiple install folders

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • multiple install folders

    I am using Setup Factory version 5.

    I need to give the user the option to install a group of files to one location and a different group of files to a different location (program files, database files).

    I have a Select Install Type screen: Type 1 installs all files to the same location, Type 2 installs files to separate locations.
    I have separated the groups of files into two separate packages. I have two Install Folder screens for the Type 2 install (separate locations).

    Two things are missing:
    1. I can't figure out how to show the amount of space needed for each group of files.
    2. How do I tell Setup Factory where to install the second group of files? Usually the files will install to %AppDir%, but if the user selects a different folder, the files need to install to this new folder while the other group of files still install to %AppDir%. I have created a new variable - %studentFiles% - for the install folder of the second group. Can it be assigned the value of %AppDir% at the beginning of the installation?

    [This message has been edited by jwpryor (edited 01-03-2002).]

    [This message has been edited by jwpryor (edited 01-03-2002).]

  • #2
    Re: multiple install folders

    Hi,

    1) Regarding this question, where do you want this information shown? It should work properly if you have the two different file types assigned to packages. Or do you simply want to display on a Select Install Folder screen the size of the "current" package?


    2) Setup Factory 5.0 does not have any built-in way to assign values to variables (6.0 does by the way) but you can get around this. The easiest way would be to create a Registry variable, and have it look for a registry value that will never exist. Since the registry value does not exist the variable will be set to its default value, %AppDir%

    For example:
    Variable Name: %studentFiles%
    Default Value: %AppDir%
    Main Key: HKEY_LOCAL_MACHINE
    Sub Key: XXXXXXXXXX\Software\XXXXXXXXXXX
    Value Name: XXXXXXXXXXX
    Set variable to TRUE if Sub Key exists: Unchecked

    Since that value will never exist %studentFiles% will be set to %AppDir%.

    mark.
    MSI Factory The Next Generation Intelligent Setup Builder

    Comment


    • #3
      Re: multiple install folders

      Hi,

      1) I DO simply want to display on a Select Install Folder screen the size of the "current" package. Not that I'm not actually having the user select the type of package ( both packages are automatically installed with each install type). Can I get the space needed/available to show for the current package in 5.0?


      2) Thank you - this fake registry sounds great.

      Comment


      • #4
        Re: multiple install folders

        Hi,

        Basically the Select Install Folder screen will show the total size of all files that are going to be installed.

        I'm still having a bit of trouble understanding what you want to do. Do you want to show the total size needed? Or do you only want to show the size needed for your two packages. Or do you want to show that Package 1 requires X amount of space and Package 2 requires X amount of space?

        If you are having using the Select Install Folder screen, perhaps you could try using a different screen. I suggest this because you know what the size of each package is, so you could type this information on a Static Text screen and display it to the users. Or use a List Box screen.

        mark.
        MSI Factory The Next Generation Intelligent Setup Builder

        Comment


        • #5
          Re: multiple install folders

          To clear up a little of what I'm trying to accomplish:
          1. The user has the option (screen 1) to install all files to the same folder or split the files across locations. I'm using the Select Install type for this.
          2. If they select to split the files across locations.
          a. Using an Install Folder screen: 2nd screen asks where they want to install only the program files (set up as a package). I want to show them how much space is needed for just the program files and the space available on the drive they select (this could be any drive including a network server).
          b. Using another Install Folder screen: 3rd screen asks where they want to install the database files (set up as a sedonc package). Again, I want to show them how much space is needed (just) for the database files and the space available on the drive they select to install to (this could be different from the program files install folder).

          I could figure out the size of each package and display that on the screen, but then I'd have to remember to do that each time I recreate the installation package after changing files.

          Hope this makes sense.

          Comment


          • #6
            Re: multiple install folders

            Hi,

            Alright, there is no built-in way to accomplish this using Setup Factory 6.0. The built-in "Space Required" option in Setup Factory 6.0 will always display the total amount of space required.

            I think the best option would be to display your size manually, since you will know what it is. The only problem with this method is that you will have to make sure that you display the correct size.

            mark.
            MSI Factory The Next Generation Intelligent Setup Builder

            Comment

            Working...
            X