Archive: How to automatically add uninstaller size?


How to automatically add uninstaller size?
Hi,
is there any way to automatically add the size of the uninstaller to the "Space required" on the directory page? I know I can use AddSize to do it manually. But I have to run each new installer before to get the size and than I have to compile it again with the modified size. That's circumstantially and sometimes I already forgot this adaption.


You can generate the uninstaller at compile time, check for its size and use that for AddSize.

http://nsis.sourceforge.net/Invoking...n_compile-time

But that should be done automatically. Submit a feature request for it.


1) Yes, that's a solution. Thanks. But to tell the truth it's not my favorite, because it doubles compile time which is often already long (especially if you compile different editions of a product).

According your solution I had another idea: I could write the uninstaller to the TEMP directory on the destination system before the directory page is displayed, check the size, add it with SectionSetSize and delete the file again.

Its a workaround too but saves compile time.

2) In this context I have another question: The installer writes a lot of temporary files by default and may write some additional files depending on the script. I think the size of this files is not considered during calculation of the required space, although it should. Is that correct?