You are here

PortableApps.com Installer 3.10 Beta 5 (Large Installer Support)

8 posts / 0 new
Last post
John T. Haller
John T. Haller's picture
Online
Last seen: 2 min 11 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
PortableApps.com Installer 3.10 Beta 5 (Large Installer Support)

I've posted a beta version of the PortableApps.com Installer 3.10. This beta adds support for large installers over 2GB.

Currently, I'm using a 7-Zip container inside an installer to get things within the standard NSIS limit of 2GB with apps like FreeCAD. This updated installer adds the ability to use NSISBI, a fork of NSIS with support for large installers. It's not as common and can't currently be extracted with 7-Zip like a standard NSIS installer can. Compilation requires a 64-bit OS though using the resulting installer does not.

Large format support is activated by adding the following to the installer.ini:
[LargeInstallerMode]
LargeInstallerMode=true

It should only be used with larger installers where you get an error trying to create a PA.c Installer without this change.

Download PortableApps.com Installer 3.10 Beta 5 (installs to the same PortableApps.comInstaller directory as stable unless you manually change it)
Download: 4MB / Install: 22MB
SHA256: dcde5418dc917747d45d547fd18e8358ea15e66f8b5c86a6090e4e2eea35db7f

Here's an example installer for FreeCAD Portable 1.1.1 to test out the performance compared to the current version. The current version requires an extra 365MB during install as it has to extract the 7z file and then extract that. The large format installer doesn't require this but it is larger (458MB vs 371MB) due to 7-Zip's extreme compression setting working better than the regular LZMA in NSIS.

The new dev test of Red Eclipse also makes use of this beta installer: https://portableapps.com/node/82453

Release History:
2026-09-05: 3.10 Beta 5 (Updates Arabic/Serbian, fixes unnecessary delcaration)
2026-09-04: 3.10 Beta 4 (Updates 7-zip)
2026-08-30: 3.10 Beta 3 (Updates innounp)
2026-07-12: 3.10 Beta 2 (Updates innounp)
2026-07-12: 3.10 Beta 1

JLim
Online
Last seen: 5 min 50 sec ago
Joined: 2013-07-17 01:30
Some suggestion

Since there are only 2 folders and 1 file different between NSIS and NSISBI, 32-64 bit switch method can be used to save some space.
Replace Lines 1390 to 1396 with:

${If} $R0 != "false"
${If} ${FileExists} "$EXEDIR\App\NSIS\Stubs_LargeInstaller"
Rename "$EXEDIR\App\nsis\Stubs" "$EXEDIR\App\nsis\Stubs_Std"
Rename "$EXEDIR\App\nsis\Stubs_LargeInstaller" "$EXEDIR\App\nsis\Stubs"
${EndIf}
${If} ${FileExists} "$EXEDIR\App\nsis\Bin_LargeInstaller"
Rename "$EXEDIR\App\nsis\Bin" "$EXEDIR\App\nsis\Bin_Std"
Rename "$EXEDIR\App\nsis\Bin_LargeInstaller" "$EXEDIR\App\nsis\Bin"
${EndIf}
${If} ${FileExists} "$EXEDIR\App\nsis\makensis_LargeInstaller.exe"
Rename "$EXEDIR\App\nsis\makensis.exe" "$EXEDIR\App\nsis\makensis_Std.exe"
Rename "$EXEDIR\App\nsis\makensis_LargeInstaller.exe" "$EXEDIR\App\nsis\makensis.exe"
${EndIf}
WriteINIStr "$strInstallAppDirectory\App\AppInfo\pac_installer_log.ini" "PortableApps.comInstaller" "LargeInstallerMode" "true"
${Else}
${If} ${FileExists} "$EXEDIR\App\nsis\Stubs_Std"
Rename "$EXEDIR\App\nsis\Stubs" "$EXEDIR\App\nsis\Stubs_LargeInstaller"
Rename "$EXEDIR\App\nsis\Stubs_Std" "$EXEDIR\App\nsis\Stubs"
${EndIf}
${If} ${FileExists} "$EXEDIR\App\nsis\Bin_Std"
Rename "$EXEDIR\App\nsis\Bin" "$EXEDIR\App\nsis\Bin_LargeInstaller"
Rename "$EXEDIR\App\nsis\Bin_Std" "$EXEDIR\App\nsis\Bin"
${EndIf}
${If} ${FileExists} "$EXEDIR\App\nsis\makensis_Std.exe"
Rename "$EXEDIR\App\nsis\makensis.exe" "$EXEDIR\App\nsis\makensis_LargeInstaller.exe"
Rename "$EXEDIR\App\nsis\makensis_Std.exe" "$EXEDIR\App\nsis\makensis.exe"
${EndIf}
WriteINIStr "$strInstallAppDirectory\App\AppInfo\pac_installer_log.ini" "PortableApps.comInstaller" "LargeInstallerMode" "false"
${EndIf}
ExecDos::exec `"$EXEDIR\App\nsis\makensis.exe" /O"$EXEDIR\Data\PortableApps.comInstallerLog.txt" "$strInstallAppDirectory\Other\Source\PortableApps.comInstaller.nsi"` "" ""

John T. Haller
John T. Haller's picture
Online
Last seen: 2 min 11 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Issues with Concurrent Compilation

If you run multiple instances of the PA.c Installer, this could cause issues. That's why I have them as separate full instances.

For example, I routinely compile 42 packages of Firefox for a single channel. 112 packages on a Tuesday release day. I have these compiling 5 concurrently. While that is going on, I'm working on other apps at the same time. If a publisher had a normal and a lite package with only the normal one requiring NSISBI, both could not be compiled at the same time.

Sometimes, the impossible can become possible, if you're awesome!

JLim
Online
Last seen: 5 min 50 sec ago
Joined: 2013-07-17 01:30
Variable HASHMISMATCH declaration

The variable HASHMISMATCH, Line 378 and Line 376 in v3.9 in PortableApps.comInstaller.nsi, should be declared only if DownloadSHA256 has been defined. Otherwise the variable has no use.

John T. Haller
John T. Haller's picture
Online
Last seen: 2 min 11 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed in 3.10b5 and 3.9.21

Fixed in 3.10b5 and 3.9.21. Thanks for the heads up!

Sometimes, the impossible can become possible, if you're awesome!

JLim
Online
Last seen: 5 min 50 sec ago
Joined: 2013-07-17 01:30
Error in language files

Serbian.nsh
Line 24. ($ИНСТДИР) should be ($INSTDIR).

Arabic.nsh
Line 24. (INSTDIR $) should be ($INSTDIR).

John T. Haller
John T. Haller's picture
Online
Last seen: 2 min 11 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Fixed in 3.10b5 and 3.9.21

Fixed in 3.10b5 and 3.9.21. Thanks!

Sometimes, the impossible can become possible, if you're awesome!

JLim
Online
Last seen: 5 min 50 sec ago
Joined: 2013-07-17 01:30
nsisbi 3.13.1
Log in or register to post comments