Give each file a choice of where to install

Comments

3 comments

  • Avatar
    michiel

    Hi Anthony, 

    Please accept my apologies for the delay in the reply. Regarding your request, it's not completely clear to me what you mean with delivery folder. Should that folder be available at run time or during build time? In any case it's possible to use check if a certain file exists using the <fileTest> rule and then copy it using <copyFile>.

    If the delivery folder is for build time you can add actions in the <preBuildActionList> and add rules to the <shouldPackRuleList> to conditionally pack the files. You can find more information about this in the following section of our manual:

    https://clients.bitrock.com/installbuilder/docs/installbuilder-userguide.html#_excluding_components_at_build_time

    >  For example: I have two files, one needs to go to folder A, and the other in folder B. I want to be able to have the installer go through each file, have a popup that says "where do you want file A to go to?" then i select, then I hit next, then "where do you want file B to go to?" 

    Unfortunately it's not possible to create an interactive builder. However, you could add that build logic to the <preBuildActionList> and then use `--setvars` to set build variables to create custom builds.

    https://clients.bitrock.com/installbuilder/docs/installbuilder-userguide.html#custom_build_targets

    Regards,

    Michiel

     

    0
    Comment actions Permalink
  • Thanks for the reply, so with the first question. I saw that the <shouldPackRuleList> is only at build time, but what if I want to build the installer just once, and then able to run the installer whenever I want. How can I create an installer that lets me "pack" at install time instead of build time? 

    0
    Comment actions Permalink
  • Avatar
    michiel

    Hi Anthony,

    You could use <copyFile> in the <postShowPageInstallationList> of a parameter and then add logic to it to conditionally copy files from your "build" folder to a destination, based on the user input.

    Regards,

    Michiel 

    0
    Comment actions Permalink

Please sign in to leave a comment.