Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2004
    Posts
    14

    Package Selection

    Hi guys,
    i am pretty new to SUF7. thats why my question might sound stupid to some of you but i would be happy about any helpful comments.

    i am trying to set up an installer with three packages. i located installers for other programs inside these packages which shall be run if the respective package is selected. my problem is how to verify whether the package is checked in LUA.

    i know this sounds confusing but i hope some of you will be able to help me.

    thanx in advance

  2. #2
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    The procedure is to add the packages via the Packages option on the left.

    Assign the package to the relevant installation file (you can assign more than one package to a file) in File Properties.

    Add a Packages screen to your project, move it to the correct location in the installation flow process and made sure the packages are selected for available installation by moving them to the right hand box.

    The system will automatically install any files connected to a specific package as long as that package has been selected in the package screen. You do not have to concern yourself with checking whether the user has ticked the box or not.

    John

  3. #3
    Join Date
    Oct 2004
    Posts
    14
    Hi John,

    thank you for your quick reply. I have already tried it the way you explained but all SUF did was basically copy the installers for the other programs to the application folder.

    Example:
    I located an installer for program "x" inside the package "test". When the user checks the box for the installation of this package, i want my installer to automatically trigger the installation of the installer for program "x" rather than copying the file to the application folder.

    To me, being a newbie to SUF as well as to LUA, it seems logical to add a line of code saying:

    if (state of checkbox within package) then
    file.run (installer for program "x");
    end


    What can I do???

    Marcus
    Last edited by mkruckow; 10-12-2004 at 12:49 AM.

  4. #4
    Join Date
    Apr 2001
    Location
    Haverhill, Suffolk, UK
    Posts
    360
    I missed the point that you want to run the program from within SUF7. So in that case, do not use a package. Instead use a check box screen. Set up how you want and assign variables if you do not want to use the default.

    On the file screen, for each executable, set it to be written to a temporary directory regardless or use the Script Condition at the bottom and enter the check box variable. If the result is true it will be installed.

    Then on either post install (if you want to run within SUF7) or On Shutdown afterwards (although not sure the wait until finish works at that point) do a File.Run of the program and then a File.Delete afterwards (if you don't want it left behind) if the check box variable is set to true.

    You could probably still use a package screen to install and check for the user having selected that package and then do the File.Run etc. afterwards. I'm not sure if the Package ID is a variable you can compare against though.

    John

  5. #5
    Join Date
    Oct 2004
    Posts
    14
    Thanx for your help. the checkbox solution works just fine.

Similar Threads

  1. Focus on Package Checkboxes
    By praveen_v in forum Setup Factory 6.0
    Replies: 0
    Last Post: 11-20-2002, 01:15 PM
  2. Package Selection - Unable to create Hierarchy
    By praveen_v in forum Setup Factory 6.0
    Replies: 0
    Last Post: 11-20-2002, 11:25 AM
  3. HOWTO: Display Conditional Text Based Upon a List Box Selection
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-15-2002, 10:54 AM
  4. SUF 6.0.0.0 bug: package variable state no recognized
    By pit in forum Setup Factory 5.0
    Replies: 1
    Last Post: 11-22-2001, 11:43 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