Skip to content
⌘ NSIS Forum Archive

Changing required space with MUI_PAGE_DIRECTORY

7 posts

Voxel#

Changing required space with MUI_PAGE_DIRECTORY

My installer dynamically generates some large files on installation and I need to change the space required shown on the MUI_PAGE_DIRECTORY.

My app itself takes 5 megabytes, which is shown, but infact can required 1 gigabyte when install is complete.

How can I chang
dienjd#
I'm having my installer download a file and then run it. The disk space required is in an INI file, which I can read, but how do I pass that value to MUI_PAGE_DIRECTORY?

AddSize doesn't seem to accept a variable for size_kb. Otherwise, this would work.
Afrow UK#
AddSize is a compile time instruction I think. Therefore you need to use SectionGetSize, add your size onto the value then set the new value with SectionSetSize.

-Stu