Closed jste0001 closed 3 years ago
Adding @Marc @.***> who might be able to take a look before I'm back from leave.
Get Outlook for iOShttps://aka.ms/o0ukef
From: jste0001 @.> Sent: Wednesday, July 21, 2021 12:27:40 PM To: microsoft/shell-intune-samples @.> Cc: Subscribed @.***> Subject: [microsoft/shell-intune-samples] Installation issue (#22)
Hi,
I'm trying to use the Quick Run script in Terminal but I receive the following error:
"Wed 21 Jul 2021 11:56:43 BST | Installing Company Portal installer: Error trying to locate volume at /Applications Wed 21 Jul 2021 11:56:44 BST | Failed to install Company Portal"
I'm not knowledgeable about scripting so I looked into this and all I can gather is that it may be an issue with line 379:
installer -pkg "$tempfile" -target /Applications
and I think perhaps it may have to be this instead:
installer -pkg "$tempfile" -target /
As I said, this definitely isn't my specialty and could be wrong but am eager to try to get this working so I can deploy the Quick Run script to multiple devices.
Thanks!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fshell-intune-samples%2Fissues%2F22&data=04%7C01%7Cneiljohn%40microsoft.com%7C390e915eefd64b0589d108d94c3a8d0d%7C72f988bf86f141af91ab2d7cd011db47%7C0%7C0%7C637624636637441335%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=%2BBPtcX3bdwaRaP9Xl3IL8%2B3aTxdQyWHMOS8rVpGcv2Q%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAGOC2JNONJFQV7WLNYLGWTTTY2VKZANCNFSM5AXYH3IQ&data=04%7C01%7Cneiljohn%40microsoft.com%7C390e915eefd64b0589d108d94c3a8d0d%7C72f988bf86f141af91ab2d7cd011db47%7C0%7C0%7C637624636637451293%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=4FTgwAwthO61lcvr1bmw%2BwW%2FKFfbiTvpWy1%2FmlNVqBk%3D&reserved=0.
@jste0001 I just tried the script from a terminal window on a BigSur device and the script is running as expected.(must be run as root)
Even if the -target parameter is mandatory, the majority of the package don't let the freedom to select where you want to install the application on macOS and as you shared in the majority of the case you will put "/" as a target ... so if it's working for you, don't hesitate to update the script.
@mnahum I think I've made my own copy / repository and edited the script for me to play around with. If I've done anything wrong which has affected your repository then do let me know, I've not used GitHub before.
Hi,
I'm trying to use the Quick Run script in Terminal but I receive the following error:
"Wed 21 Jul 2021 11:56:43 BST | Installing Company Portal installer: Error trying to locate volume at /Applications Wed 21 Jul 2021 11:56:44 BST | Failed to install Company Portal"
I'm not knowledgeable about scripting so I looked into this and all I can gather is that it may be an issue with line 379:
installer -pkg "$tempfile" -target /Applications
and I think perhaps it may have to be this instead:
installer -pkg "$tempfile" -target /
As I said, this definitely isn't my specialty and could be wrong but am eager to try to get this working so I can deploy the Quick Run script to multiple devices.
Thanks!