Want to be able to choose which folders get installed and update without creating installer?

Comments

3 comments

  • Avatar
    BitRock support

    Hi,

    The following section of the InstallBuilder documentation shows how to conditionally pack a folder:

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

    For an update installer you can just add a new folder to the installer. To overwrite installed files you can add a folder with the same destination as the older one.

    Regards,

    Michiel

     

     

     

    1
    Comment actions Permalink
  • Avatar
    Tony Nguyen

    Thanks for the quick reply! I was wondering if you could answer one more question for me. 

    I have a deliverable folder that will get new files for me to deploy to the DeployFolder. Instead of constantly opening bitrock, and hitting quick build, pack the new files, and then create the installer, I want to be able to just run my installer and have it check in the deliverable folder to see if there are new files, then copy them over to the DeployFolder. Now whether or not the files are new or are updates to files already in the DeployFolder, a popup will ask if I want to override the file. 

    Hope that makes sense. Thanks! 

    0
    Comment actions Permalink
  • Avatar
    michiel

    Hi Tony,

    You can use the <copyFile> action in the <preBuildActionList> and add a rule to execute it if it finds any files:

        <copyFile>
             <origin>deliverables</origin>
             <destination>deploy</destination>
             <ruleList>
                 <fileExists path="deliverables/some_file"/>
             </ruleList>
         </copyFile>

    Regards,

    Michiel

     

     

     

         

      

            

    0
    Comment actions Permalink

Please sign in to leave a comment.