inno setup - Correctly show component sizes with shared files -
i have inno setup project includes 5 different sub-programs, installable components. many of dlls end in final program folder shared between of these, not all. i've made tool sort out common dlls make installer compact possible.
because of shared parts, space requirements these components don't show @ all. on own, that's not problem, total size @ bottom of components selector seems combine files installed components, , size of components size can calculated.
while showing individual sizes not possible due shared files, total size determinable. possible somehow give user correct total size estimate there?
on related note... there simple way make sure @ least 1 component needs selected? adding components: every line in files didn't work. have error box on nextbuttonclick
after check of components iscomponentselected
, wondering if there's more... elegant solution, since requires code modification if ever need add more components (which, in current project, real possibility).
if not make sense install common files without application, or application without common files (eg. files dependencies of application), don't list them [components]
@ (components ui thing):
[components] name: app1; description: "application 1" name: app2; description: "application 2" name: app3; description; "application 3" [files] filename: ...\app1.exe; ...; components: app1 filename: ...\app2.exe; ...; components: app2 filename: ...\app3.exe; ...; components: app3 filename: ...\common.dll; ...; components: app1 app2
this install common.dll
if either or both of app1 or app2 selected, not if neither are. not matter whether app3 selected or not. (note if file common of components can leave out components:
parameter entirely.)
in order guarantee @ least 1 component selected need walk through wizardform.componentslist
in nextbuttonclick
of wpselectcomponents
, or (if don't mind hard-coding names of components) ensure iscomponentselected
returns true when supplied names of components.
Comments
Post a Comment