microsoft / shell-intune-samples

Sample shell scripts for Intune admins.
MIT License
627 stars 213 forks source link

installDMGPKG:46: no matches found: #130

Open DamagedDingo opened 1 month ago

DamagedDingo commented 1 month ago

I am trying to install the Nessus agent and it mounts the image, finds the DMG contains a PKG, starts the PKG installer, then fails with no match for *.mpkg.. The app is installed (I think correctly), but the script fails so it doesn't run the last line which is to connect the agent to the server, and it reports as failed in Intune. The agent doesn't install into /Applications so that might also have something to do with it.

##############################################################
# Thu May 16 09:41:53 AEST 2024 | Logging install of [NessusAgent] to [/Library/Logs/Microsoft/IntuneScripts/InstallerScripts/NessusAgent/NessusAgent.log]
############################################################

Thu May 16 09:41:53 AEST 2024 | Checking if we need Rosetta 2 or not
Thu May 16 09:41:53 AEST 2024 | Waiting for other [/usr/sbin/softwareupdate] processes to end
Thu May 16 09:41:54 AEST 2024 | No instances of [/usr/sbin/softwareupdate] found, safe to proceed
Thu May 16 09:41:54 AEST 2024 | Intel processor installed. No need to install Rosetta.
Thu May 16 09:41:54 AEST 2024 | Aria2 already installed, nothing to do
Thu May 16 09:41:54 AEST 2024 | Checking if we need to install or update [NessusAgent]
Thu May 16 09:41:54 AEST 2024 | [NessusAgent] not installed, need to download and install
Thu May 16 09:41:55 AEST 2024 | Dock is here, lets carry on
Thu May 16 09:41:55 AEST 2024 | Starting downlading of [NessusAgent]
Thu May 16 09:41:55 AEST 2024 | Downloading NessusAgent [https://www.tenable.com/downloads/api/v1/public/pages/nessus-agents/downloads/22994/download?i_agree_to_tenable_license_agreement=true]
Thu May 16 09:41:58 AEST 2024 | Found downloaded tempfile [NessusAgent-10.6.3.dmg]
Thu May 16 09:41:58 AEST 2024 | Found DMG, looking inside...
Thu May 16 09:41:58 AEST 2024 | Mounting Image [/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.ehUfPymdQL/NessusAgent] [NessusAgent-10.6.3.dmg]
Thu May 16 09:42:02 AEST 2024 | Mounted succesfully to [/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.ehUfPymdQL/NessusAgent]
Thu May 16 09:42:02 AEST 2024 | Detected PKG, setting PackageType to DMGPKG
Thu May 16 09:42:02 AEST 2024 | Un-mounting [/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.ehUfPymdQL/NessusAgent]
Thu May 16 09:42:02 AEST 2024 | Downloaded [NessusAgent.app] to [NessusAgent-10.6.3.dmg]
Thu May 16 09:42:02 AEST 2024 | Detected install type as [DMGPKG]
Thu May 16 09:42:02 AEST 2024 | Waiting for other [/Library/NessusAgent.app/run/sbin/nessus-service] processes to end
Thu May 16 09:42:02 AEST 2024 | No instances of [/Library/NessusAgent.app/run/sbin/nessus-service] found, safe to proceed
Thu May 16 09:42:02 AEST 2024 | Installing [NessusAgent]
Thu May 16 09:42:02 AEST 2024 | Mounting Image
Thu May 16 09:42:03 AEST 2024 | Starting installer for [/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.ehUfPymdQL/NessusAgent/Install Nessus Agent.pkg]
installer: Package name is Tenable Nessus Agent
installer: Upgrading at base path /
installer: The upgrade was successful.
installDMGPKG:46: no matches found: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.ehUfPymdQL/NessusAgent/*.mpkg

NessusAgent.log Nessus_Agent_Install cleaned.txt

DamagedDingo commented 1 month ago

Here is another application doing the same thing. As i'm typing this I think its when i switched to using latest script so I will need to rewrite it in an older one and see if it goes away.

LatestSampleScript/installIntuneApp4.05.zsh

##############################################################
# Thu May 16 08:53:21 AEST 2024 | Logging install of [JabraDirect] to [/Library/Logs/Microsoft/IntuneScripts/installJabraDirect/JabraDirect.log]
############################################################

Thu May 16 08:53:21 AEST 2024 | Checking if we need Rosetta 2 or not
Thu May 16 08:53:21 AEST 2024 | Waiting for other [/usr/sbin/softwareupdate] processes to end
Thu May 16 08:53:21 AEST 2024 | No instances of [/usr/sbin/softwareupdate] found, safe to proceed
Thu May 16 08:53:22 AEST 2024 | Intel processor installed. No need to install Rosetta.
Thu May 16 08:53:22 AEST 2024 | Aria2 missing, lets download and install
Thu May 16 08:53:23 AEST 2024 | Downloaded aria2
Thu May 16 08:53:23 AEST 2024 | Mounting Aria DMG...
Thu May 16 08:53:32 AEST 2024 | Mounted DMG
installer: Package name is aria1 1.35.0
installer: Installing at base path /
installer: The install was successful.
Thu May 16 09:08:08 AEST 2024 | Aria2 installed
Thu May 16 09:08:19 AEST 2024 | Checking if we need to install or update [JabraDirect]
Thu May 16 09:08:19 AEST 2024 | [JabraDirect] not installed, need to download and install
Thu May 16 09:08:19 AEST 2024 | Dock is here, lets carry on
Thu May 16 09:08:19 AEST 2024 | Starting downlading of [JabraDirect]
Thu May 16 09:08:19 AEST 2024 | Downloading JabraDirect [https://jabraxpressonlineprdstor.blob.core.windows.net/jdo/JabraDirectSetup.dmg]
Thu May 16 09:08:50 AEST 2024 | Found downloaded tempfile [JabraDirectSetup.dmg]
Thu May 16 09:08:50 AEST 2024 | Found DMG, looking inside...
Thu May 16 09:08:50 AEST 2024 | Mounting Image [/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.iYWNOLPDj2/JabraDirect] [JabraDirectSetup.dmg]
Thu May 16 09:09:07 AEST 2024 | Mounted succesfully to [/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.iYWNOLPDj2/JabraDirect]
Thu May 16 09:09:07 AEST 2024 | Detected PKG, setting PackageType to DMGPKG
Thu May 16 09:09:07 AEST 2024 | Un-mounting [/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.iYWNOLPDj2/JabraDirect]
Thu May 16 09:09:13 AEST 2024 | Downloaded [Jabra Direct.app] to [JabraDirectSetup.dmg]
Thu May 16 09:09:13 AEST 2024 | Detected install type as [DMGPKG]
Thu May 16 09:09:13 AEST 2024 | Waiting for other [/Applications/Jabra Direct.app/Contents/MacOS/Jabra Direct] processes to end
Thu May 16 09:09:14 AEST 2024 | No instances of [/Applications/Jabra Direct.app/Contents/MacOS/Jabra Direct] found, safe to proceed
Thu May 16 09:09:14 AEST 2024 | Installing [JabraDirect]
Thu May 16 09:09:14 AEST 2024 | Mounting Image
Thu May 16 09:09:14 AEST 2024 | Starting installer for [/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.iYWNOLPDj2/JabraDirect/JabraDirectSetup.pkg]
installer: Package name is Jabra Direct
installer: Installing at base path /
installer: The install was successful.
installDMGPKG:46: no matches found: /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/tmp.iYWNOLPDj2/JabraDirect/*.mpkg