Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2008
    Posts
    82

    Grin Skip File.Install()??

    Is there a way where I can stop installing certain fails that are part of the archive files. More appropriately what I need is install a set of files only when I select an option in some BeforeInstalling Screens.

    I want to do something like:
    if A_selected then
    File.Install(---);
    File.Install(---);
    File.Install(---);
    else
    -- do nothing or skip the set of files' installs
    end

    But does that mean I have to install these files to a temp folder and then do this File.Install action to install my files to dest. , or is there a way where I can set the file's properties not to install these files (probably on WhileInstalling actions) without the setup copying these to anywhere in the host machine???

    Please suggest if there is an existing way to skip the setup from installing a set of files based on some input given from BeforeInstalling screens.

    Thank You!

  2. #2
    Join Date
    Feb 2008
    Posts
    82

    Need some assistance on this.

    Actually File.Install is not the write command that I could use it here, I guess File.Copy will be the right procedure for me to call or what exactly???

    All I want is when the setup extracts the archive files, I want few of them not to get extracted to the destination folder unless a certain option is selected. Or the respective files should never be copied to the host machine

    So I want to do something like:

    if A_selected then
    -- extract file_x, file_y, file_z to destination folders on host machine
    else
    -- nothing
    end

    Could someone kindly help on this...

  3. #3
    Join Date
    Apr 2005
    Location
    Ottawa, CA
    Posts
    27
    Putting your optional files in a "Package" should do what you want. Rather than go through the whole description here, i suggest that you look up Packages in the help.

    In particular, see SetupData.SetPackageProperties.

  4. #4
    Join Date
    Jan 2001
    Location
    Anderson Island, WA, USA
    Posts
    2,863
    I think you're making this more difficult than it needs to be.
    Using packages is certainly a way to go, as already suggested.

    However, if "A_Selected" is a lua variable that is true/false; just be sure it's set BEFORE you install any files.
    then on the file's properties that you want to install only if "A_Selected=true" then put that in the conditions tab.


    (Click here to contact me)
    Providing Independent Professional Consulting Services for
    IndigoRose products, World Wide.
    Located in -8:00 (-7:00 DST) GMT Timezone (Western United States)

  5. #5
    Join Date
    Feb 2008
    Posts
    82

    Some other way?? Clarification needed on File.Copy()

    The installation package that I am updating has a set of MSIs and few other installations and lot many screens for few configuration settings. What we had for this is to provide a set of checkBoxes to ask user to select the ones he wants to install. This is being in use for the last 5 years.
    This works out for all other installations except for my new enhancements to be made. Now, I have few folders and few reg files to be extracted only when a particular option is selected. I dont want to show the package screen for this alone, I want the earlier process to work for this too. I cant ask my client now that i want to change the UI for this reason.

    Is there something simple like setting the file attributes not to install with some bool value, or something that works on WhileInstalling Screens to set it to false ( not to install)

    Or may be as I said if I want to extract things to _TempFolder and then copy things to the destination folders if that option is selected. But here too, File.Copy() doesnot work if the destination folder doesnot exist? it came to my surprise, it wud hav been much better if the dest. folders are automatically created if they dont exist...

    Please suggest a better way to cum out of this...

  6. #6
    Join Date
    Feb 2008
    Posts
    82

    Thumbs up Thanks Jassing

    its the first time I saw the Script Condition in Conditions tab. So if I just write the condition in the tab, and it helps me control the install and not to install, if yes, thats exactly what I need, Thanks so much, i will refer to the help on sf7 for further info on this.

    Thanks so much

Posting Permissions

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