News for hackers. Stuff that matters.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by monadic2 on Wednesday April 08, 2020 @11:57PM (#22819643)
Why do these apps require installers at all? What are they installing—presumably any of their proprietary tech can run in userspace unprivileged.

Personally, my best guess is because that’s the flow the product manager expected.

Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by panic on Thursday April 09, 2020 @01:19AM (#22820014)
It seems unnecessary for core functionality at least -- I installed Zoom by unpacking the .app from the .pkg by hand (without running any installer scripts) and it works fine.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by figbert on Thursday April 09, 2020 @02:22AM (#22820271)
Mind throwing me the name of or link to the program you used to unpack the .app? I'd like to do that myself, and remember stumbling on a program that did that, but can't recall the name.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by MagerValp on Thursday April 09, 2020 @07:54AM (#22821655)
Suspicious Package and Pacifist are great tools, but you can do it with the built-in pkgutil command:

    % pkgutil --expand foo-1.0.pkg foo_pkg
    % cd foo_pkg 
    % ls -Al
    total 352
    -rw-r--r--  1 magervalp staff  44491 16 Mar 12:19 Bom
    -rw-r--r--  1 magervalp staff    566  9 Apr 13:51 PackageInfo
    -rw-r--r--@ 1 magervalp staff  67794 16 Mar 12:19 Payload
    drwxr-xr-x  4 magervalp staff    128  9 Apr 13:51 Scripts
    % mv Payload Payload.cpio.gz
    % open Payload.cpio.gz
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by grinsekatze on Thursday April 09, 2020 @04:21AM (#22820715)
Been using 'Suspicious Package' lately: https://www.mothersruin.com/software/SuspiciousPackage/
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by timdoug on Thursday April 09, 2020 @09:02AM (#22822097)
I'll throw in a plug for the tool I've written, unpkg: https://www.timdoug.com/unpkg/
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by panic on Thursday April 09, 2020 @05:20AM (#22820957)
This is what I used, but it looks unmaintained; I'd try others' suggestions first: https://www.macupdate.com/app/mac/45385/payload-extractor
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by quietthrow on Thursday April 09, 2020 @02:32AM (#22820313)
Got me curious too. Answer Just a google search away.

https://stackoverflow.com/questions/11298855/how-to-unpack-a...

Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by icodestuff on Thursday April 09, 2020 @03:27AM (#22820520)
Pacifist used to be the go-to app for this; probably still is.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by Avery3R on Thursday April 09, 2020 @02:27AM (#22820296)
7-Zip can do it on windows, maybe there's an osx port?
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by SturgeonsLaw on Thursday April 09, 2020 @04:31AM (#22820759)
7-Zip, now there's a fantastic piece of software. It opens damn near everything, has an ultra-lightweight interface and doesn't have any near-malicious money grubbing schemes.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by yrro on Thursday April 09, 2020 @10:41AM (#22822968)
It's not safe to process untrusted files with 7zip

https://news.ycombinator.com/item?id=16985460

Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by 1123581321 on Thursday April 09, 2020 @09:31AM (#22822332)
7-zip is great. The Unarchiver is its equivalent on Mac. Suspicious Package is better for this particular file format because it shows what the installer will do, not just what it has in it.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by yborg on Thursday April 09, 2020 @01:08PM (#22824740)
Keka is my go-to for this, actively maintained by its author.

https://www.keka.io/

Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by mr_toad on Friday April 10, 2020 @08:12PM (#22838664)
brew install p7zip
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by lvillani on Thursday April 09, 2020 @04:19AM (#22820707)
Another reason could be to ensure that you have at most one copy of the application ever, since you can force it to install stuff always at the same location.

On an unrelated product we learned that users ended up with many different copies of the app scattered throughout the system, if they were allowed to use the traditional bundle + DMG distribution method. Spotlight would then helpfully pick one random copy, with obvious consequences wrt. project file versioning. That is despite the DMG having the usual symlink to /Applications for a drag-and-drop installation.

Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by jcelerier on Thursday April 09, 2020 @04:59AM (#22820872)
yes, it's a total pain. users send you a crash log, you see that they're on an old version, ask them to update. They say they do, you get the next crash log, and it's still the old version. And then you get a screenshot and you see 12 different versions of your .app, in the desktop, in ~/Applications, in /Applications...
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by nathancahill on Thursday April 09, 2020 @05:58AM (#22821109)
Even worse when they don't copy it off the DMG. Just leave the DMG mounted.. forever.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by inetknght on Thursday April 09, 2020 @10:45AM (#22823012)
What's the problem with leaving the exe in the DMG instead of copying it out? As a user and a developer I don't see any problem with this whatsoever unless the application is poorly built.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by berdario on Thursday April 09, 2020 @07:12AM (#22821423)
Oh wow, I had no idea about the unintended consequences of the DMG + App bundle installation mechanism.

Maybe the issue could be ameliorated with a self-updater built-in into the app? Not a separate daemon, but something that by running inside the app, would be able to know what's the path of the old version that should be thrown away.

Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by lvillani on Thursday April 09, 2020 @07:57AM (#22821670)
Some apps offer to move themselves to /Applications on first launch.

Still, there's the possibility of users clicking "Cancel". Even then, it's a bit more code to write, test and pay for (from the POV of a client).

Wrapping the bundle inside a .pkg instead of a .dmg solves the problem "for free".

Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by ThePowerOfFuet on Thursday April 09, 2020 @07:42AM (#22821588)
The de facto standard for this is Sparkle.framework, and it's excellent.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by lonelappde on Thursday April 09, 2020 @12:32PM (#22824257)
That's good. It's called a portable app and it reduces pollution of your environment. It's a simple partial implementation of something like Docker.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by nathancahill on Friday April 10, 2020 @05:06AM (#22831248)
All fine and dandy until they accidentally eject the DMG and can't figure out where their browser went.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by AnIdiotOnTheNet on Thursday April 09, 2020 @10:57AM (#22823141)
Maybe, but that's also an advantage. Often it is useful to have two versions of the same application available, for example if you are testing one of them, or if a feature or compatibility was broken somewhere along the way. Typical package manager software installation does not accommodate such use cases.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by ryandrake on Thursday April 09, 2020 @12:30AM (#22819791)
The standard way to install an application on the Mac is to simply drag it into the Applications folder. That’s what is expected by users. For the vast majority of applications this should be enough. Whenever I see a Windows-style “installer” the first thing I think is... what kind of shenanigans are going on?
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by izacus on Thursday April 09, 2020 @03:19AM (#22820490)
This standard way doesn't work in corp environments (which WebEx and Zoom are targeting primarily), where machines are remotely provisioned. For decent macOS remote installs and updates you need the PKG format scripts.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by monadic2 on Thursday April 09, 2020 @04:16AM (#22820697)
What is so hard about remotely provisioning app bundles in a standard place? I ask because I have been tangentially involved in both image and script based provisioning and interacting with PKGs would seem to complicate, not simplify, both processes.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by mschuster91 on Thursday April 09, 2020 @06:48AM (#22821307)
It's the processes. Every update will have to go through change requests, loads of approvals, ...
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by duskwuff on Thursday April 09, 2020 @04:24AM (#22820723)
And the wacky PKG files used by Zoom (until recently) and WebEx are likely to be incompatible with those provisioning methods, because they don't unpack their contents and finish installing normally.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by monocasa on Thursday April 09, 2020 @02:54PM (#22825913)
They work just fine with the remote via Jamf or what have you.

Deprovisionig might not work right, but that's rarely needed.

Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by em-bee on Thursday April 09, 2020 @01:40AM (#22820109)
it's not like the app couldn't do those shenanigans when it's first started...
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by jjtheblunt on Thursday April 09, 2020 @02:45AM (#22820366)
It would have to ask for Admin role to do so, though.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by nsgi on Thursday April 09, 2020 @06:54AM (#22821337)
Still plenty of evil things you can do without admin privileges, like running a server in the background that launches Zoom (as they tried previously).
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by modeless on Thursday April 09, 2020 @02:50AM (#22820380)
The installer has to ask too though, doesn't it? So using an installer still provides no benefit.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by DavidSJ on Thursday April 09, 2020 @02:55AM (#22820401)
Yes, but the point is that most Mac apps should need neither installer nor admin privileges.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by jjtheblunt on Thursday April 09, 2020 @02:21PM (#22825599)
I believe that (when I wrote and installer for internal use while at Apple) it needn't require admin to drop an app in, say, ~/Applications.
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by saagarjha on Thursday April 09, 2020 @01:16AM (#22819993)
With Zoom, apparently there's the app bundle, some browser plugins, and an audio kernel extension (the latter two of which are majorly deprecated?)
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by m463 on Thursday April 09, 2020 @05:19AM (#22820953)
It's because they have specific strategic things they want to do.

As an example, I noticed the Docker installer starts off doing telemetry before anything has been installed.

Other less nefarious uses are to ask about telemetry / GDPR before installation.

Apple documentation on installers specifically says -- you don't even have to have an installer. And most software really doesn't.

Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by monadic2 on Thursday April 09, 2020 @09:36PM (#22829048)
> Other less nefarious uses are to ask about telemetry / GDPR before installation.

I’d imagine you’d want to gate this through the process itself to ensure users have actually accepted, especially as EULA enforceability varies from place to place.

Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by ribosometronome on Thursday April 09, 2020 @03:03AM (#22820435)
Do these apps request accessibility permissions for screen sharing and the like during install?
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by monadic2 on Thursday April 09, 2020 @04:12AM (#22820684)
I believe the privileged process requests this on use; I am not sure how you’d trigger it during install
Re:Tell HN: Cisco WebEx on OS X uses the same pre-installer ... by teknologist on Thursday April 09, 2020 @08:50AM (#22822009)
What's more bizarre is that they have a fully functioning Chrome app that works almost just as well as the desktop client. It installs in a click and doesn't go through any sort of installation process.