Scoop icon indicating copy to clipboard operation
Scoop copied to clipboard

[Feature Request] Unpack UPX-compressed packages

Open hu3rror opened this issue 4 years ago • 11 comments

I'm working on a manifest for an app that uses the bitrock installer creation tool. What parameters should I use to unpack such .exe installation package of this tree structure? I still wasn't sure what to do after looking at Scoop's wiki (T_T)

.
├── [0]
├── CERTIFICATE
├── .rsrc
├── UPX0
└── UPX1

image

installer download link: https://scrivener.s3.amazonaws.com/Scapple-installer.exe

Thanks for reading and hope you can help me :)

hu3rror avatar Feb 17 '22 12:02 hu3rror

Can you try any one of these unpackers - https://github.com/ScoopInstaller/Scoop/pull/3502

rashil2000 avatar Feb 17 '22 13:02 rashil2000

Can you try any one of these unpackers - #3502

thank you, I'll take a look later

hu3rror avatar Feb 17 '22 13:02 hu3rror

I referenced the contents of extras/bucket/ida-free.json and the parameters of bitrock installer, currently the installer can be extracted and installed. And this is my code blow:

    "installer": {
        "args": [
            "--mode unattended",
            "--unattendedmodeui minimal",
            "--prefix \"$dir\""
        ]
    },
    "uninstaller": {
        "file": "uninstall.exe",
        "args": [
            "--mode unattended"
        ]
    },

However, two new problems have emerged.

  1. The uninstaller does not work properly, when input scoop uninstall xxxprompting that uninstall.dat cannot be found. 图片

  2. The desktop icon and the additional start menu icon are generated by default during installation. I can't find the relevant parameters to implement a way to remove the corresponding icon from the user side.

It looks a little difficult.

hu3rror avatar Feb 18 '22 05:02 hu3rror

Looks like extraction is the only clean way. So it doesn't work with either NSIS, Inno or Wix?

rashil2000 avatar Feb 18 '22 05:02 rashil2000

Looks like extraction is the only clean way. So it doesn't work with either NSIS, Inno or Wix?

It seems that scoop does not support upx package decompression. This may have to be put on hold for now, thanks for the reply!

hu3rror avatar Feb 18 '22 06:02 hu3rror

We can turn this into a feature request. UPX can be used to decompress these.

rashil2000 avatar Feb 18 '22 06:02 rashil2000

UPX just encode and compress single exe, and it is not related with program installation.

niheaven avatar Feb 18 '22 08:02 niheaven

But it might be possible to uncompress it after decoding with UPX, right.

rashil2000 avatar Feb 18 '22 10:02 rashil2000

first, does Scoop need to handle(provides special decompression/installation method) each non-common compression/installation package?

install scripts can handle them if the packages can be unpacked with some utils.

HUMORCE avatar Feb 18 '22 12:02 HUMORCE

Depends on the popularity of UPX. If it's not that popular, we can just do depends: upx and use UPX command in the pre_install script.

rashil2000 avatar Feb 18 '22 12:02 rashil2000

Give some examples that the installers are compressed by UPX and could be extracted by 7zip later. Few developers compress installer with UPX which are mostly used by final executables.

niheaven avatar Feb 21 '22 08:02 niheaven