Open nazar322 opened 5 months ago
My goal is to install dotnet via install script as a prerequisite in my PKG we distribute for our macOS users.
For this, I have downloaded the latest script from here https://dot.net/v1/dotnet-install.sh, made it executable chmod 755 and renamed it to preinstall.sh as described in this little guide https://macinstallers.blogspot.com/2012/07/scripting-in-installer-packages.html
chmod 755
However, during testing the installation has failed and the PKG log says it's a preinstall script failure (dotnet-install.sh)
2024-05-30 14:58:23+03 MacBook-Pro installd[744]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain Code=112 "An error occurred while running scripts from the package “Viddly-6.0.11.pkg”." UserInfo={NSFilePath=./preinstall.sh, NSURL=file:///Users/user/Desktop/Viddly-6.0.11.pkg#com.viddly.app.pkg, PKInstallPackageIdentifier=com.viddly.app, NSLocalizedDescription=An error occurred while running scripts from the package “Viddly-6.0.11.pkg”.} { NSFilePath = "./preinstall.sh"; NSLocalizedDescription = "An error occurred while running scripts from the package \U201cViddly-6.0.11.pkg\U201d."; NSURL = "file:///Users/user/Desktop/Viddly-6.0.11.pkg#com.viddly.app.pkg"; PKInstallPackageIdentifier = "com.viddly.app"; }
Running the script from the terminal actually works. Has anyone managed to install dotnet as a prerequisite in macOS PKG?
My goal is to install dotnet via install script as a prerequisite in my PKG we distribute for our macOS users.
For this, I have downloaded the latest script from here https://dot.net/v1/dotnet-install.sh, made it executable
chmod 755
and renamed it to preinstall.sh as described in this little guide https://macinstallers.blogspot.com/2012/07/scripting-in-installer-packages.htmlHowever, during testing the installation has failed and the PKG log says it's a preinstall script failure (dotnet-install.sh)
Running the script from the terminal actually works. Has anyone managed to install dotnet as a prerequisite in macOS PKG?