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?
Source: "C:\DirWith1000FilesAndFolders\*"; DestDir: "{app}"; Flags: ignoreversion createallsubdirs recursesubdirs
- all files and folders will be included and then deleted during uninstall. You can Exlude files on demand withExcludes: "list of file to be excluded"
– RobeNcreateallsubdirs
flag if you want to preserve empty dirs, which is rarely necessary in practice but everyone seems to include it anyway without thinking about it. :) – MiralSaves
folder - game will crash on saving as it is unable to create (in fact Move) Current Savegame Folder toSaves
directory if it doesn't exist. So it is safer way to create even empty dirs if you do not fully know how does specific app work. – RobeN