Jump to content
Corsair Community

MacOS 12.3 and iCUE 4.21.173, installer not working


Recommended Posts

Hello, I have latest MacOS 12.3 (Intel) and trying to install iCUE 4.21.173.

From what I can see in the log below, the installer can't find Python (guessing its needed for the postinstallation)
Python is no longer available by default in MacOS 12.3 it seems.

Python is installed via homebrew, and is in my PATH.

Have tried running the installer using finder and using 'sudo installer -pkg iCUE.pkg -target / -verbose'

Same errors as in the log below.

Anyone have a good idea on how to solve this?


2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: @(#)PROGRAM:Install  PROJECT:Install-1000
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: @(#)PROGRAM:Installer  PROJECT:Installer-1118
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Hardware: MacBookPro16,1 @ 2.60 GHz (x 12), 16384 MB RAM
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Running OS Build: macOS 12.3 (21E230)
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Env: USER=<REMOVED>
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Env: __CFBundleIdentifier=com.apple.installer
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Env: COMMAND_MODE=unix2003
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Env: LOGNAME=<REMOVED>
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Env: PATH=/usr/bin:/bin:/usr/sbin:/sbin
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Env: SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.rI52MMJ1VE/Listeners
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Env: SHELL=/bin/zsh
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Env: HOME=/Users/<REMOVED>
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Env: TMPDIR=/var/folders/bh/0m1ccnks4yq6ffjnc2fkgjcm0000gn/T/
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Env: XPC_SERVICE_NAME=application.com.apple.installer.1152921500312163597.1152921500312163602
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Env: XPC_FLAGS=0x0
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: iCUE  Installation Log
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Opened from: /Volumes/iCUE/iCUE.pkg
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Product archive /Volumes/iCUE/iCUE.pkg trustLevel=350
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: External component packages (2) trustLevel=350
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: Could not load resource readme: (null)
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: IFJS: Package Authoring Error: access to path "/Library/Audio/Plug-Ins/HAL/CorsairAudio.driver" requires <options allow-external-scripts='true'>
2022-03-24 17:11:46+01 Tobias-Workstation Installer[4486]: IFJS: Package Authoring Error: access to path "/Library/Audio/Plug-Ins/HAL/CorsairAudio.driver" requires <options allow-external-scripts='true'>
2022-03-24 17:11:47+01 Tobias-Workstation installd[834]: PackageKit: systemSoftware is being set to NO because it can't modify rootless files
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]: PUKApplicationCloser: Plugins in to kill: (
    )
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]: PUKApplicationCloser: Done updateOpenAppsAndPlugIns!
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]: PUKApplicationCloser: Alert did end with code: -1
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]: ================================================================================
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]: User picked Standard Install
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]: Choices selected for installation:
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]:     Install: "iCUE"
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]:     Install: "(null)"
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]:         iCUE.pkg#cue_inst.pkg : com.corsair.cue.3 : 4.21.173
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]:         iCUE.pkg#CorsairAudio.pkg : com.corsair.CorsairAudio : 3.0.36
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]: ================================================================================
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]: It took 0.00 seconds to summarize the package selections.
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: location = file://localhost
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Volumes/iCUE/iCUE.pkg#cue_inst.pkg
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]: -[IFDInstallController(Private) _buildInstallPlanReturningError:]: file://localhost/Volumes/iCUE/iCUE.pkg#CorsairAudio.pkg
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]: Set authorization level to root for session
2022-03-24 17:11:57+01 Tobias-Workstation Installer[4486]: Authorization is being checked, waiting until authorization arrives.
2022-03-24 17:12:00+01 Tobias-Workstation Installer[4486]: Administrator authorization granted.
2022-03-24 17:12:00+01 Tobias-Workstation Installer[4486]: Packages have been authorized for installation.
2022-03-24 17:12:00+01 Tobias-Workstation Installer[4486]: Will use PK session
2022-03-24 17:12:00+01 Tobias-Workstation Installer[4486]: Using authorization level of root for IFPKInstallElement
2022-03-24 17:12:00+01 Tobias-Workstation Installer[4486]: Starting installation:
2022-03-24 17:12:00+01 Tobias-Workstation Installer[4486]: Configuring volume "Macintosh HD"
2022-03-24 17:12:00+01 Tobias-Workstation Installer[4486]: Preparing disk for local booted install.
2022-03-24 17:12:00+01 Tobias-Workstation Installer[4486]: Free space on "Macintosh HD": 136,27 GB (136274444288 bytes).
2022-03-24 17:12:00+01 Tobias-Workstation Installer[4486]: Create temporary directory "/var/folders/bh/0m1ccnks4yq6ffjnc2fkgjcm0000gn/T//Install.4486xlPDFu"
2022-03-24 17:12:00+01 Tobias-Workstation Installer[4486]: IFPKInstallElement (2 packages)
2022-03-24 17:12:00+01 Tobias-Workstation Installer[4486]: Current Path: /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer
2022-03-24 17:12:00+01 Tobias-Workstation installd[834]: PackageKit: Adding client PKInstallDaemonClient pid=4486, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
2022-03-24 17:12:00+01 Tobias-Workstation Installer[4486]: PackageKit: Enqueuing install with framework-specified quality of service (utility)
2022-03-24 17:12:00+01 Tobias-Workstation installd[834]: PackageKit: Set reponsibility for install to 4486
2022-03-24 17:12:00+01 Tobias-Workstation installd[834]: PackageKit: ----- Begin install -----
2022-03-24 17:12:00+01 Tobias-Workstation installd[834]: PackageKit: request=PKInstallRequest <2 packages, destination=/>
2022-03-24 17:12:00+01 Tobias-Workstation installd[834]: PackageKit: packages=(
        "PKLeopardPackage <id=com.corsair.cue.3, version=0, url=file:///Volumes/iCUE/iCUE.pkg#cue_inst.pkg>",
        "PKLeopardPackage <id=com.corsair.CorsairAudio, version=3.0.36, url=file:///Volumes/iCUE/iCUE.pkg#CorsairAudio.pkg>"
    )
2022-03-24 17:12:02+01 Tobias-Workstation installd[834]: PackageKit: Extracting file:///Volumes/iCUE/iCUE.pkg#cue_inst.pkg (destination=/Library/InstallerSandboxes/.PKInstallSandboxManager/7E2C3003-2428-45D5-AB43-029CFF8E0D1F.activeSandbox/Root/Applications/Corsair, uid=0)
2022-03-24 17:12:06+01 Tobias-Workstation installd[834]: PackageKit: Extracting file:///Volumes/iCUE/iCUE.pkg#CorsairAudio.pkg (destination=/Library/InstallerSandboxes/.PKInstallSandboxManager/7E2C3003-2428-45D5-AB43-029CFF8E0D1F.activeSandbox/Root, uid=0)
2022-03-24 17:12:06+01 Tobias-Workstation installd[834]: PackageKit: prevent user idle system sleep
2022-03-24 17:12:06+01 Tobias-Workstation installd[834]: PackageKit: suspending backupd
2022-03-24 17:12:06+01 Tobias-Workstation installd[834]: PackageKit (package_script_service): Preparing to execute script "./preinstall" in /private/tmp/PKInstallSandbox.dPGGAy/Scripts/com.corsair.cue.3.gI3T3Q
2022-03-24 17:12:06+01 Tobias-Workstation package_script_service[892]: PackageKit: Executing script "preinstall" in /tmp/PKInstallSandbox.dPGGAy/Scripts/com.corsair.cue.3.gI3T3Q
2022-03-24 17:12:06+01 Tobias-Workstation package_script_service[892]: Set responsibility to pid: 4486, responsible_path: /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer
2022-03-24 17:12:06+01 Tobias-Workstation install_monitor[4556]: Temporarily excluding: /Applications, /Library, /System, /bin, /private, /sbin, /usr
2022-03-24 17:12:06+01 Tobias-Workstation package_script_service[892]: ./preinstall: The command exited with a non-zero status.
2022-03-24 17:12:06+01 Tobias-Workstation package_script_service[892]: Responsibility set back to self.
2022-03-24 17:12:06+01 Tobias-Workstation installd[834]: PackageKit (package_script_service): Preparing to execute script "./preinstall" in /private/tmp/PKInstallSandbox.dPGGAy/Scripts/com.corsair.CorsairAudio.lvfCLP
2022-03-24 17:12:06+01 Tobias-Workstation package_script_service[892]: PackageKit: Executing script "preinstall" in /tmp/PKInstallSandbox.dPGGAy/Scripts/com.corsair.CorsairAudio.lvfCLP
2022-03-24 17:12:06+01 Tobias-Workstation package_script_service[892]: Set responsibility to pid: 4486, responsible_path: /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer
2022-03-24 17:12:06+01 Tobias-Workstation package_script_service[892]: ./preinstall: /Library/LaunchDaemons/CorsairAudioConfigService.plist: Could not find specified service
2022-03-24 17:12:06+01 Tobias-Workstation package_script_service[892]: ./preinstall: Unload failed: 113: Could not find specified service
2022-03-24 17:12:07+01 Tobias-Workstation package_script_service[892]: ./preinstall: No receipt for 'com.corsair.CorsairAudio' found at '/'.
2022-03-24 17:12:07+01 Tobias-Workstation package_script_service[892]: ./preinstall: Executing: /usr/bin/kmutil install --volume-root / --check-rebuild
2022-03-24 17:12:07+01 Tobias-Workstation package_script_service[892]: ./preinstall: rebuilding local auxiliary collection
2022-03-24 17:12:07+01 Tobias-Workstation package_script_service[892]: ./preinstall: kmutil done
2022-03-24 17:12:07+01 Tobias-Workstation package_script_service[892]: ./preinstall: /Library/LaunchAgents/CorsairAudioConfigService.plist: No such file or directory
2022-03-24 17:12:07+01 Tobias-Workstation package_script_service[892]: ./preinstall: Unload failed: 2: No such file or directory
2022-03-24 17:12:07+01 Tobias-Workstation package_script_service[892]: ./preinstall: /Library/LaunchDaemons/CorsairAudioConfigService.plist: No such file or directory
2022-03-24 17:12:07+01 Tobias-Workstation package_script_service[892]: ./preinstall: Unload failed: 2: No such file or directory
2022-03-24 17:12:07+01 Tobias-Workstation package_script_service[892]: Responsibility set back to self.
2022-03-24 17:12:07+01 Tobias-Workstation installd[834]: PackageKit: Using trashcan path /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/PKInstallSandboxTrash/7E2C3003-2428-45D5-AB43-029CFF8E0D1F.sandboxTrash for sandbox /Library/InstallerSandboxes/.PKInstallSandboxManager/7E2C3003-2428-45D5-AB43-029CFF8E0D1F.activeSandbox
2022-03-24 17:12:07+01 Tobias-Workstation installd[834]: PackageKit: PKInformSystemPolicyInstallOperation failed with error:An error occurred while registering installation with Gatekeeper.
2022-03-24 17:12:07+01 Tobias-Workstation installd[834]: PackageKit: Shoving /Library/InstallerSandboxes/.PKInstallSandboxManager/7E2C3003-2428-45D5-AB43-029CFF8E0D1F.activeSandbox/Root (2 items) to /
2022-03-24 17:12:07+01 Tobias-Workstation installd[834]: PackageKit (package_script_service): Preparing to execute script "./postinstall" in /private/tmp/PKInstallSandbox.dPGGAy/Scripts/com.corsair.cue.3.gI3T3Q
2022-03-24 17:12:07+01 Tobias-Workstation package_script_service[892]: PackageKit: Executing script "postinstall" in /tmp/PKInstallSandbox.dPGGAy/Scripts/com.corsair.cue.3.gI3T3Q
2022-03-24 17:12:07+01 Tobias-Workstation package_script_service[892]: Set responsibility to pid: 4486, responsible_path: /System/Library/CoreServices/Installer.app/Contents/MacOS/Installer
2022-03-24 17:12:08+01 Tobias-Workstation package_script_service[892]: ./postinstall: env: python: No such file or directory
2022-03-24 17:12:08+01 Tobias-Workstation package_script_service[892]: Responsibility set back to self.
2022-03-24 17:12:08+01 Tobias-Workstation install_monitor[4556]: Re-included: /Applications, /Library, /System, /bin, /private, /sbin, /usr
2022-03-24 17:12:08+01 Tobias-Workstation installd[834]: PackageKit: releasing backupd
2022-03-24 17:12:08+01 Tobias-Workstation installd[834]: PackageKit: allow user idle system sleep
2022-03-24 17:12:08+01 Tobias-Workstation installd[834]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “iCUE.pkg”." UserInfo={NSFilePath=./postinstall, NSURL=file:///Volumes/iCUE/iCUE.pkg#cue_inst.pkg, PKInstallPackageIdentifier=com.corsair.cue.3, NSLocalizedDescription=An error occurred while running scripts from the package “iCUE.pkg”.} {
        NSFilePath = "./postinstall";
        NSLocalizedDescription = "An error occurred while running scripts from the package \U201ciCUE.pkg\U201d.";
        NSURL = "file:///Volumes/iCUE/iCUE.pkg#cue_inst.pkg";
        PKInstallPackageIdentifier = "com.corsair.cue.3";
    }
2022-03-24 17:12:08+01 Tobias-Workstation installd[834]: PackageKit: Cleared responsibility for install from 4486.
2022-03-24 17:12:08+01 Tobias-Workstation installd[834]: PackageKit: Cleared permissions on Installer.app
2022-03-24 17:12:08+01 Tobias-Workstation installd[834]: PackageKit: Running idle tasks
2022-03-24 17:12:08+01 Tobias-Workstation installd[834]: PackageKit: Done with sandbox removals
2022-03-24 17:12:08+01 Tobias-Workstation Installer[4486]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “iCUE.pkg”." UserInfo={NSFilePath=./postinstall, NSURL=file:///Volumes/iCUE/iCUE.pkg#cue_inst.pkg, PKInstallPackageIdentifier=com.corsair.cue.3, NSLocalizedDescription=An error occurred while running scripts from the package “iCUE.pkg”.}
2022-03-24 17:12:08+01 Tobias-Workstation installd[834]: PackageKit: Removing client PKInstallDaemonClient pid=4486, uid=501 (/System/Library/CoreServices/Installer.app/Contents/MacOS/Installer)
2022-03-24 17:12:09+01 Tobias-Workstation Installer[4486]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
2022-03-24 17:12:09+01 Tobias-Workstation Installer[4486]: IFDInstallController 1092220 state = 8
2022-03-24 17:12:09+01 Tobias-Workstation Installer[4486]: Displaying 'Install Failed' UI.
2022-03-24 17:12:09+01 Tobias-Workstation Installer[4486]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.
2022-03-24 17:12:12+01 Tobias-Workstation Installer[4486]: Package Removal: User opted to keep package.

Link to comment
Share on other sites

  • 3 weeks later...

I've managed to install iCUE (also, latest 4.22.203 released).

The issue happens because macOS 12.3 dropped Python (2) native.

What I managed to do to install:

1) Uninstalled previous iCUE releases with /Applications/Corsair/iCUEUninstaller.app

2) Installed HomeBrew

3) Installed python2 recipe with following command: 

Quote

brew install kamilturek/python2/python@2

4) Installed Cocoa modules for python2 with following commands: 

Quote

python2 -m pip install pyobjc-framework-Cocoa

python2 -m pip install PyCocoa

5) create a file named set-file-icon with the following contents:

Quote

#!/usr/local/bin/python2

 

import Cocoa

import sys

 

Cocoa.NSWorkspace.sharedWorkspace().setIcon_forFile_options_(Cocoa.NSImage.alloc().initWithContentsOfFile_(sys.argv[1].decode('utf-8')), sys.argv[2].decode('utf-8'), 0) or sys.exit("Unable to set file icon")

6) Started installer iCUE.pkg from Finder

7) After started installation on iCUE Installer (and authorized system modification changes), in a shell (with sudo acccess) do the following command (in loop, until it copies the file)...

Quote

sudo cp -v -f set-file-icon /Applications/Corsair/iCUEUninstaller.app/Contents/Scripts/

... and you get the results like below:

Quote

# sudo cp -v -f set-file-icon /Applications/Corsair/iCUEUninstaller.app/Contents/Scripts

cp: /Applications/Corsair/iCUEUninstaller.app/Contents/Scripts: No such file or directory

root@i9macbookpro /tmp/iCUE.pkg/cue_inst.pkg/Payload/iCUEUninstaller.app/Contents/Scripts

# sudo cp -v -f set-file-icon /Applications/Corsair/iCUEUninstaller.app/Contents/Scripts

cp: /Applications/Corsair/iCUEUninstaller.app/Contents/Scripts: No such file or directory

root@i9macbookpro /tmp/iCUE.pkg/cue_inst.pkg/Payload/iCUEUninstaller.app/Contents/Scripts

# sudo cp -v -f set-file-icon /Applications/Corsair/iCUEUninstaller.app/Contents/Scripts

cp: /Applications/Corsair/iCUEUninstaller.app/Contents/Scripts: No such file or directory

root@i9macbookpro /tmp/iCUE.pkg/cue_inst.pkg/Payload/iCUEUninstaller.app/Contents/Scripts

# sudo cp -v -f set-file-icon /Applications/Corsair/iCUEUninstaller.app/Contents/Scripts

cp: /Applications/Corsair/iCUEUninstaller.app/Contents/Scripts: No such file or directory

root@i9macbookpro /tmp/iCUE.pkg/cue_inst.pkg/Payload/iCUEUninstaller.app/Contents/Scripts

# sudo cp -v -f set-file-icon /Applications/Corsair/iCUEUninstaller.app/Contents/Scripts

cp: /Applications/Corsair/iCUEUninstaller.app/Contents/Scripts: No such file or directory

root@i9macbookpro /tmp/iCUE.pkg/cue_inst.pkg/Payload/iCUEUninstaller.app/Contents/Scripts

# sudo cp -v -f set-file-icon /Applications/Corsair/iCUEUninstaller.app/Contents/Scripts

set-file-icon -> /Applications/Corsair/iCUEUninstaller.app/Contents/Scripts/set-file-icon

root@i9macbookpro /tmp/iCUE.pkg/cue_inst.pkg/Payload/iCUEUninstaller.app/Contents/Scripts

# sudo cp -v -f set-file-icon /Applications/Corsair/iCUEUninstaller.app/Contents/Scripts

set-file-icon -> /Applications/Corsair/iCUEUninstaller.app/Contents/Scripts/set-file-icon

root@i9macbookpro /tmp/iCUE.pkg/cue_inst.pkg/Payload/iCUEUninstaller.app/Contents/Scripts

After that, the installer will suceeded like the image below:

spacer.png

Link to comment
Share on other sites

  • 4 weeks later...
On 4/13/2022 at 9:49 PM, Virgilio Fornazin said:

I've managed to install iCUE (also, latest 4.22.203 released).

The issue happens because macOS 12.3 dropped Python (2) native.

What I managed to do to install:

1) Uninstalled previous iCUE releases with /Applications/Corsair/iCUEUninstaller.app

2) Installed HomeBrew

3) Installed python2 recipe with following command: 

4) Installed Cocoa modules for python2 with following commands: 

5) create a file named set-file-icon with the following contents:

6) Started installer iCUE.pkg from Finder

7) After started installation on iCUE Installer (and authorized system modification changes), in a shell (with sudo acccess) do the following command (in loop, until it copies the file)...

... and you get the results like below:

After that, the installer will suceeded like the image below:

spacer.png

 

Hey I tried to follow your guide but I have problem with step 5. How do you create this file if you don't mind explaining? 

 

 

Link to comment
Share on other sites

  • 2 weeks later...
On 4/13/2022 at 4:49 PM, Virgilio Fornazin said:

I've managed to install iCUE (also, latest 4.22.203 released).

The issue happens because macOS 12.3 dropped Python (2) native.

What I managed to do to install:

1) Uninstalled previous iCUE releases with /Applications/Corsair/iCUEUninstaller.app

2) Installed HomeBrew

3) Installed python2 recipe with following command: 

4) Installed Cocoa modules for python2 with following commands: 

5) create a file named set-file-icon with the following contents:

6) Started installer iCUE.pkg from Finder

7) After started installation on iCUE Installer (and authorized system modification changes), in a shell (with sudo acccess) do the following command (in loop, until it copies the file)...

... and you get the results like below:

After that, the installer will suceeded like the image below:

spacer.png

Great work @Virgilio Fornazin!

I've automated this process to make it a little more user friendly here:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...