use wildcards or regExMatch to specify multiple destinations?



  • Avatar

    Nothing wrong with using an external script in your installer in my opinion. I do it all the time. =)

    Another option might be to use the InstallBuilder "Run Program" feature and run either "cp" or "xcopy". You're still calling an external program, but you're not utilizing an actual external script. So maybe this will get you far enough away from a script that it would work for your purposes.

    Hope this helps!


  • Avatar

    You could also use InstallBuilder built-in actions using an <unpackDirectory> instead of letting the installer automatically unpack the files:

              <distributionDirectory origin="path/to/yourdir"/>
                <!-- This is never true, so the folder is not automatically unpacked -->
                <isTrue value="0"/>
             <!-- Get list of Destination Directories -->
                <execArgs>/Applications -name 'Live* ' -maxdepth 1 -exec echo \"{}\" \;</execArgs>
             <!-- Iterater over the directories, unpacking -->
             <foreach variables="destination" values="${dirs}">

Please sign in to leave a comment.