Lurker News
I noticed while installing WebEx today that the installer immediately terminated itself after popping up the pre-installation script.

Running `strings` on the installation plugin (CWSPkgPlugin.bundle) shows why - it's using a similar process to what Zoom does [1]

  +[CWSUtilBase unzip:to:]
  /usr/bin/unzip
  Clean up temp unziped app done: %i
  unzip:to:
  [...]
  Cisco Webex pkg plugin, begin init work.
  Install CWS result: %i
  Launch CWS result: %i
  Terminate installer: %@
  Terminate self: %@
  [...]
  /usr/sbin/lsof
  forceTerminate
Previously discussed here: https://news.ycombinator.com/item?id=22736608

[1] https://www.imore.com/zooms-preinstallation-script-workaroun...

Comments (180) 20 threads

Show all comments

Showing thread 4 of 20

monadic27 replies#
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.

ryandrake2 replies#
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?
em-bee1 reply#
it's not like the app couldn't do those shenanigans when it's first started...
jjtheblunt4 replies#
It would have to ask for Admin role to do so, though.

Continue this thread — 4 replies

izacus2 replies#
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.
monadic21 reply#
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.

Continue this thread — 1 reply

duskwuff1 reply#
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.

Continue this thread — 1 reply

saagarjha#
With Zoom, apparently there's the app bundle, some browser plugins, and an audio kernel extension (the latter two of which are majorly deprecated?)
panic1 reply#
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.
figbert7 replies#
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.
Avery3R3 replies#
7-Zip can do it on windows, maybe there's an osx port?
SturgeonsLaw1 reply#
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.

Continue this thread — 1 reply

11235813211 reply#
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.
mr_toad#
brew install p7zip
icodestuff#
Pacifist used to be the go-to app for this; probably still is.
MagerValp#
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
ribosometronome1 reply#
Do these apps request accessibility permissions for screen sharing and the like during install?
monadic2#
I believe the privileged process requests this on use; I am not sure how you’d trigger it during install
lvillani1 reply#
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.

jcelerier2 replies#
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...
nathancahill6 replies#
Even worse when they don't copy it off the DMG. Just leave the DMG mounted.. forever.

Continue this thread — 6 replies

AnIdiotOnTheNet#
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.
m4631 reply#
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.

monadic2#
> 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.

Continue this thread — 1 more reply