Search code examples
recursionvisual-studio-2015installshield

VS 2015 InstallShield LE - Recursively include subfolders


I am trying to create an InstallShield msi that installs 2 websites. Both sites include MANY folders with subfolders with subfolders. Adding them all manually to the Files area 'Destination computers folders' area, would royally suck. In the old version of Microsoft Installer that used to come with Visual Studio, I was able to drag/drop a parent folder and all the files/folders would recursively add themselves to my installer. How do I do that in InstallShield LE?


Solution

  • I am not certain about the LE product version, but in the full version of InstallShield Professional or Premium you can right click within a component you have created and select 'dynamic file linking'. You can then specify a parent folder and select the link to include subfolders. You can also specify a file filter for inclusion and exclusion. Like you may not want to include .pdb debug files with your product, so you add that extension to the exclusion list.

    Note that you can potentially run into problems if your upgrade path includes minor upgrades where the subfolders are not upgraded properly.

    Hopefully this helps.