Hi, I creating online installer of Obsidian Portable.
The online installer works well but there are two problems:
1. The online installer can't download ARM 64-bit version of Obsidian app.
2. The online installer downloads the official Obsidian installation file multiple times.
Please help me.
You can download and test the my online installer here:
https://github.com/xmha97/PortableApps/releases/tag/obsidian-v1.8.9
[DownloadFiles]
DownloadURL=https://github.com/obsidianmd/obsidian-releases/releases/download/v1.8.9/Obsidian-1.8.9.exe
DownloadName=Obsidian (64-bit)
DownloadFilename=Obsidian-1.8.9.exe
DoubleExtractFilename=$$PLUGINSDIR\app-64.7z
DoubleExtract1To=App\Obsidian-amd64
DoubleExtract1Filter=**
AdditionalInstallSize=266743
DownloadSHA256=045f480fd779784ec647d654d17abb764b60bb1661b142c236f994c6c49e4dfb
Download2URL=https://github.com/obsidianmd/obsidian-releases/releases/download/v1.8.9/Obsidian-1.8.9.exe
Download2Name=Obsidian (32-bit)
Download2Filename=Obsidian-1.8.9.exe
Download2DoubleExtractFilename=$$PLUGINSDIR\app-32.7z
Download2DoubleExtract1To=App\Obsidian-386
Download2DoubleExtract1Filter=**
AdditionalInstallSize=266743
DownloadSHA256=045f480fd779784ec647d654d17abb764b60bb1661b142c236f994c6c49e4dfb
Download3URL=https://github.com/obsidianmd/obsidian-releases/releases/download/v1.8.9/Obsidian-1.8.9.exe
Download3Name=Obsidian (ARM 64-bit)
Download3Filename=Obsidian-1.8.9.exe
Download3DoubleExtractFilename=$$PLUGINSDIR\app-arm64.7z
Download3DoubleExtract1To=App\Obsidian-arm64
Download3DoubleExtract1Filter=**
AdditionalInstallSize=266743
DownloadSHA256=045f480fd779784ec647d654d17abb764b60bb1661b142c236f994c6c49e4dfb
The PA.c Installer only supports 2 downloads. I'd suggest leaving off ARM
Sometimes, the impossible can become possible, if you're awesome!
Can you add this feature to PA.c Installer? I don't want to leave off ARM.
I also wanted to know if there is a way to prevent the following file from being downloaded multiple times?
https://github.com/obsidianmd/obsidian-releases/releases/download/v1.8.9...
There are no plans to add a 3rd download. For a complicated installer like this, download it once and then do additional extractions with custom code.
Sometimes, the impossible can become possible, if you're awesome!
Do you know how I can decompress a zip file in custom code?
Or if you have done this yourself for a portable app, please tell me the name of that app.
Be sure CustomCodeUses7zip is set in your installer.ini:
In the PortableApps.comInstallerCustom.nsh within Other\Source, here's an example:
These are from FreeCAD which doesn't download the 7z. So you'd need to have your installer.ini first download and extract the whole thing. Similar to what you're doing above but without the Double Extract filter.
Sometimes, the impossible can become possible, if you're awesome!
Are you using a non official PA launcher generator? The official version not yet support ProgramExecutableARM64=Obsidian-arm64\Obsidian.exe
There is custom code that adds this:
Sometimes, the impossible can become possible, if you're awesome!
I don't see custom code in his package. May be he hide it.
I'd wager the developer doesn't know that they need it for that part to function.
Sometimes, the impossible can become possible, if you're awesome!
https://www.upload.ee/files/17913369/ObsidianPortable_1.8.9_online.paf.e...
Files modified:
..\App\AppInfo\installer.ini
..\Other\Source\PortableApps.comInstallerCustom.nsh
btw 32 bit version can not be run in 32 bit Win 7. Error message: Obsidian.exe is not a valid Win32 application.