Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyone tried to install dotnet as a prerequisite in PKG macOS? #471

Open
nazar322 opened this issue May 30, 2024 · 0 comments
Open

Anyone tried to install dotnet as a prerequisite in PKG macOS? #471

nazar322 opened this issue May 30, 2024 · 0 comments
Labels
needs-more-info question User is seeking information

Comments

@nazar322
Copy link

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

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?

@YuliiaKovalova YuliiaKovalova added the question User is seeking information label Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-more-info question User is seeking information
Projects
None yet
Development

No branches or pull requests

3 participants