diff --git a/Docs/src/history.but b/Docs/src/history.but index 01fc12a1..f7785fb2 100644 --- a/Docs/src/history.but +++ b/Docs/src/history.but @@ -28,6 +28,8 @@ Released on ? \b Fixed MakeNSISW default pushbutton and tab order +\b Fixed incorrect page count in compiler statistics + \H{v3.0a1} 3.0 Alpha 1 Released on July 14th, 2013 diff --git a/Source/build.cpp b/Source/build.cpp index 03172d34..9fb94a63 100644 --- a/Source/build.cpp +++ b/Source/build.cpp @@ -2716,6 +2716,7 @@ int CEXEBuild::write_output(void) INFO_MSG(_T("Install: ")); #ifdef NSIS_CONFIG_VISIBLE_SUPPORT int np=build_header.blocks[NB_PAGES].num; + if (PAGE_COMPLETED != PAGE_INSTFILES && np) --np; // Special page not part of count INFO_MSG(_T("%d page%") NPRIs _T(" (%d bytes), "),np,np==1?_T(""):_T("s"),np*sizeof(page)); #endif { @@ -2745,6 +2746,7 @@ int CEXEBuild::write_output(void) INFO_MSG(_T("Uninstall: ")); #ifdef NSIS_CONFIG_VISIBLE_SUPPORT np=build_uninst.blocks[NB_PAGES].num; + if (PAGE_COMPLETED != PAGE_INSTFILES && np) --np; // Special page not part of count INFO_MSG(_T("%d page%") NPRIs _T(" (%d bytes), "),np,np==1?_T(""):_T("s"),ubuild_pages.getlen()); #endif {