inno-setupbulk

How to support thousands of files using Inno Setup?


I'm using Inno Setup to write an installer for an application based on Node.js. Then our node application (including modules) consists of almost 4,000 files. The installer needs to copy all of these files, as well as remove them during uninstallation.

I've already written this to use a ZIP file which gets extracted during installation, and recursively delete files during the uninstall. But I would have to write a tremendous amount of code to be able to properly handle file copy/replace/delete operations, while I could register them in my Inno Setup script and let the installer do all that work (as it's designed to do). The problem with that is I'm not about to manually write almost 4k lines of code (and manage them when frequent additions are made) for each file. I could write a small app to iterate through the files and write ISS script, but that's another project I'm not about to start.

Is there a way to not only add, but manage groups of files in bulk in recursive folders? Perhaps a custom IDE meant for this?


Solution

  • There are many way to add all files to inno setup:

    For example:

        [Files]
        Source: "C:\Source Folder\*"; DestDir: "{app}"; Flags: recursesubdirs
    

    PS: If you use Istool then save the Documents and open with inno setup. I personaly Use Istool. Thanks