I have an inno setup project which includes 5 different sub-programs, installable as components. Many of the dlls that end up in the final program folder are shared between some of these, but not all. I've made a tool to sort out the common dlls to make my installer as compact as possible.
Because of the shared parts, the space requirements for these components simply don't show up at all. On its own, that's not really a problem, but the total size at the bottom of the components selector only seems to combine files installed for all components, and the size of components for which the size can be calculated.
While showing individual sizes is not possible due to the shared files, the total size is perfectly determinable. Is it possible to somehow give the user a correct total size estimate there?
On a related note... is there a simple way to make sure at least one component needs to be selected? Simply adding the Components: to every line in Files didn't work. I currently just have an error box on NextButtonClick
after a check of all components with IsComponentSelected
, but I was wondering if there's a more... elegant solution, since this requires code modification if I ever need to add more components (which, in the current project, is a very real possibility).