How to install an NSIS Installer? #5496
-
Hello, This is new to me. I wasn't sure how to do this using scoop to install a software that has NSIS installer. Do anyone know how to install an NSIS installer using Scoop's feature of installing? or is it impossible? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Nullsoft Installers can be extracted via 7-Zip. See krita.json for example. (But, newer versions of NSIS require a workaround ScoopInstaller/Main#4164, qemu.json) |
Beta Was this translation helpful? Give feedback.
-
I was able to solved it with the examples you provided. I'll be adding that in my note! Thanks! |
Beta Was this translation helpful? Give feedback.
-
hi @ r15ch13 and others at https://github.com/ScoopInstaller/Main/pull/4233/files and https://github.com/ScoopInstaller/Scoop/pull/5294/files and https://github.com/ScoopInstaller/Main/blob/74674c60be3be604a0dc83217ca67d38bf624587/bucket/qemu.json#L8-L12 "url": "https://qemu.weilnetz.de/w64/qemu-w64-setup-20221208.exe#/dl.7z_",
"pre_install": "Expand-7zipArchive \"$dir\\dl.7z_\" \"$dir\" -Removal -Switches '-xr!*.exe.nsis -x!$PLUGINSDIR'", $ 7z --help | grep r[ | tail -n+3
-i[r[-|0]]{@listfile|!wildcard} : Include filenames
-r[-|0] : Recurse subdirectories for name search
-x[r[-|0]]{@listfile|!wildcard} : eXclude filenames why is it renamed to i was trying to create manifest for eclipse-theiaIDE which is also a nullsoft installer, and attached below is its directory structure.
$ 7z l TheiaIDESetup.exe
7-Zip 23.01 (x64) : Copyright (c) 1999-2023 Igor Pavlov : 2023-06-20
Scanning the drive for archives:
1 file, 206372968 bytes (197 MiB)
Listing archive: TheiaIDESetup.exe
--
Path = TheiaIDESetup.exe
Type = PE
Physical Size = 206372968
CPU = x86
Characteristics = Executable 32-bit NoRelocs NoLineNums NoLocalSyms
Created = 2018-12-16 03:56:14
Headers Size = 1024
Checksum = 206391705
Image Size = 2392064
Section Alignment = 4096
File Alignment = 512
Code Size = 26624
Initialized Data Size = 473088
Uninitialized Data Size = 16384
Linker Version = 6.0
OS Version = 4.0
Image Version = 6.0
Subsystem Version = 4.0
Subsystem = Windows GUI
DLL Characteristics = Relocated NX-Compatible NoSEH TerminalServerAware
Stack Reserve = 1048576
Stack Commit = 4096
Heap Reserve = 1048576
Heap Commit = 4096
Image Base = 4194304
Comment =
{
FileVersion: 1.48.300.148
ProductVersion: 1.48.300.148
ProductVersion: 1.48.300
CompanyName: Eclipse Theia
FileDescription: Eclipse Theia IDE product
LegalCopyright: Copyright c 2020-2023 Eclipse Foundation, Inc
ProductName: TheiaIDE
}
----
Path = [0]
Size = 206274272
Packed Size = 206274272
Virtual Size = 206274272
Offset = 88064
--
Path = [0]
Type = Nsis
Physical Size = 206274271
Tail Size = 1
Method = Deflate
Solid = -
Headers Size = 217440
Embedded Stub Size = 0
SubType = NSIS-3 Unicode
Date Time Attr Size Compressed Name
------------------- ----- ------------ ------------ ------------------------
..... 6931 $PLUGINSDIR\System.dll
..... 45608 $PLUGINSDIR\StdUtils.dll
..... 8018 $PLUGINSDIR\UAC.dll
..... 4684 $PLUGINSDIR\nsDialogs.dll
2023-03-28 13:04:18 ..... 4745 $PLUGINSDIR\modern-wizard.bmp
..... 3299 $PLUGINSDIR\nsExec.dll
2023-12-22 14:01:00 ..... 21225 uninstallerIcon.ico
2024-04-05 15:00:16 ..... 205725031 205725031 $PLUGINSDIR\app-64.7z
..... 242382 $PLUGINSDIR\nsis7z.dll
2024-04-05 15:00:22 ..... 160094 $R0\Uninstall TheiaIDE.exe
..... 1080 $PLUGINSDIR\WinShell.dll
------------------- ----- ------------ ------------ ------------------------
2024-04-05 15:00:22 205725031 206223097 11 files
|
Beta Was this translation helpful? Give feedback.
Nullsoft Installers can be extracted via 7-Zip. See krita.json for example. (But, newer versions of NSIS require a workaround ScoopInstaller/Main#4164, qemu.json)