You are here

PortableApps.comInstaller Mod (Download cap increased to 10)

7 posts / 0 new
Last post
Jeff Savage
Offline
Last seen: 5 years 4 months ago
Joined: 2014-10-05 03:44
PortableApps.comInstaller Mod (Download cap increased to 10)

Jump to Latest Version (3.5.7): https://portableapps.com/comment/235388#comment-235388

=====

The original PortableApps.comInstaller has a DownloadUrl cap of 2, meaning you can only download 2 files with DownloadUrl and Download2Url. This mod increases this cap to 10.

How to do this mod on a future release:
Open in Notepad++ the file "PortableApps.comInstaller\App\installer\PortableApps.comInstaller.nsi" search for every instance of "Download2". It is almost always in a If else codeblock. Copy this block into a new notepad++ and replace every instance of Download2 with Download##. Do the same for Downloaded2, Downloaded-2, and Downloaded-22, keeping the part before the number. So Downloaded2 becomes Downloaded##, Downloaded-2 becomes Downloaded-22, and Downloaded-22 becomes Downloaded-####. The idea for ## is every instance of 2 becomes ## so when we do the replace command, it will replace ## with a different number.

Now paste your modified codeblock back underneath the original codeblock, then replace ## with the next number. If you paste under Download2 then you will replace with 3. If you paste under Download3 then you will replace with 4 and so on and so forth. Make sure you don't mess up the syntax of the code. Do this for as many downloads as you need. There are several sections that need this, so it would be time consuming to document each change. If you want to see the changes, you can copy paste the contents of the original file and the modified file into a website like https://text-compare.com/. There you can see where I made my changes and you can figure it out from there.

There is another file you need to change as well, and it is found at "PortableApps.comInstaller\Other\Source\InstallerWizard.nsi". This file is much easier to mod as there is less to change. Just do the same as above and you will be fine.

To verify you got every entry, find every instance of "Download2" and "Download3" by clicking the count button and make sure the number is the same on both files. If the numbers are the same, but your mod didn't work, its because you messed up the syntax. If the numbers are different, you missed a section.

Once you have modded both files, you will need to open a command prompt with the following command:
```
cd /d P:\PortableApps\PortableApps.comInstaller\App\nsis\
makensis.exe "C:\Users\BetaL\Desktop\PortableApps.comInstaller\Other\Source\InstallerWizard.nsi"
```
Now, if you did everything correctly, then you just bumped up the number of downloads.

Anyways, for the lazy, heres the download for the modded PortableApps.comInstaller 3.5.5 that increases the cap from 2 to 10.
https://github.com/BetaLeaf/PortableApps.comInstaller/releases/download/...

The original unmodified version can be found at https://downloads.sourceforge.net/portableapps/PortableApps.comInstaller.... I am making note of this link for archiving purposes.

John T. Haller
John T. Haller's picture
Offline
Last seen: 4 hours 52 min ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Use case?

One of the reasons we only have 2 download URLs is because I've never encountered an app that needs to download more than two things (literally the 32-bit and 64-bit packages of an app). What is the use case for this?

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

Jeff Savage
Offline
Last seen: 5 years 4 months ago
Joined: 2014-10-05 03:44
I've had a few flash drives

I've had a few flash drives overheat and stop working when playing games I made portable on the platform. One of the games I play need a few files to be downloaded from the internet to get it working. When everything is downloaded, the app is about 525MB. In an effort to reduce my backup size, I wanted to make an installer that can download the files needed to play. Since the game saves its data on an online server, I don't need to worry about losing my data, just the app itself. The online installer lets me drop the backup from 525MB to less than a single MB.

Have an awesome day! Biggrin
Jeff Savage ~ BetaLeaf

Jeff Savage
Offline
Last seen: 5 years 4 months ago
Joined: 2014-10-05 03:44
3.5.6 Mod Released

Here's the mod for version 3.5.6: https://github.com/BetaLeaf/PortableApps.comInstaller/releases/download/...

Used 3.5.6 as a base, file compared the originals from 3.5.5 and 3.5.6. Changes were just the version number and copyright year. 7-zip was also updated. (Thanks Gord Caswell)

Have an awesome day! Biggrin
Jeff Savage ~ BetaLeaf

Gord Caswell
Gord Caswell's picture
Offline
Last seen: 4 months 6 days ago
DeveloperModerator
Joined: 2008-07-24 18:46
7zip

The bundled 7zip was updated, as listed in the news release.

Jeff Savage
Offline
Last seen: 5 years 4 months ago
Joined: 2014-10-05 03:44
Ah, ok.

Ah, ok.

Have an awesome day! Biggrin
Jeff Savage ~ BetaLeaf

Jeff Savage
Offline
Last seen: 5 years 4 months ago
Joined: 2014-10-05 03:44
3.5.7 Mod Released

Have an awesome day! Biggrin
Jeff Savage ~ BetaLeaf

Log in or register to post comments