모든 것이 10.5에서 작동했지만, 지금 내 PackageMaker 설치 프로젝트가 깨졌습니다. 나는 지식 의 아주, 아주 기본적인 맛있는 가벼운 음식이 부족하고 Preinstall 스크립트가있는 PackageMaker 설치가 Snow Leopard에서 중단 되었습니까?
- 스노우 레오파드 (OS X 10.6.1) PackageMaker 설치를 끊었다 이 문제를 좁히려
는,이 점에 왔 :
- 는
- 그것을 설치하도록 새로운 PackageMaker 설치 만들기 내 집 directoy에 JPEG 이미지는
- 아무것도에게
#!/bin.sh exit 0
실행 위를하지 않는 preinstall
스크립트를 정의 ... 그리고이 시계의 일처럼 아래 오류 메시지와 함께 실패 시청
Sep 14 15:09:45 manoa installd[5620]: PackageKit: ----- Begin install -----
Sep 14 15:09:45 manoa installd[5620]: PackageKit: request=PKInstallRequest <1 packages, destination=/>
Sep 14 15:09:45 manoa installd[5620]: PackageKit: packages=(\n "PKLeopardPackage <file://localhost/Users/stu/Desktop/asdf.pkg>"\n)
Sep 14 15:09:46 manoa installd[5620]: PackageKit: Extracting /Users/stu/Desktop/asdf.pkg (destination=/var/folders/Hb/HbXJFyEpFaupt5QyLN-pTk+++TI/-Tmp-/PKInstallSandbox-tmp/Root/~, uid=501)
Sep 14 15:09:46 manoa installd[5620]: PackageKit: Executing script "./preinstall" in /private/tmp/PKInstallSandbox.cmlS2H/Scripts/test.test.5year_header.pkg.PFrHNB
Sep 14 15:09:46 manoa installd[5620]: PackageKit: *** launch path not accessible
Sep 14 15:09:46 manoa installd[5620]: PackageKit: Install Failed: PKG: pre-install scripts for "test.test.5year_header.pkg"\nError Domain=PKInstallErrorDomain Code=112 UserInfo=0x100149430 "An error occurred while running scripts from the package “asdf”." {\n NSFilePath = "./preinstall";\n NSLocalizedDescription = "An error occurred while running scripts from the package \U201casdf\U201d.";\n NSURL = "file://localhost/Users/stu/Desktop/asdf.pkg";\n PKInstallPackageIdentifier = "test.test.5year_header.pkg";\n}
Sep 14 15:09:46 manoa Installer[5614]: install:didFailWithError:Error Domain=PKInstallErrorDomain Code=112 UserInfo=0x1195917c0 "An error occurred while running scripts from the package “asdf”."
Sep 14 15:09:46 manoa Installer[5614]: Install failed: The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.
Sep 14 15:09:47 manoa Installer[5614]: IFDInstallController 144040 state = 7
Sep 14 15:09:47 manoa Installer[5614]: Displaying 'Install Failed' UI.
Sep 14 15:09:47 manoa Installer[5614]: 'Install Failed' UI displayed message:'The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.'.
/private/tmp/PKInstallSandbox.cmlS2H/Scripts/test.test.5year_header.pkg.PFrHNB/
에 파일이 없으므로 문제는 PackageMaker가 아닌 나를 생각하게 만듭니다. 하지만 OS X 소프트웨어 설치에 익숙하지 않아 의심의 여지가 남아 있습니다.
질문 : 사전 설치 스크립트가있는 PackageMaker가 OS X 10.6에서으로 깨졌습니까? 또는 사전 설치 스크립트에 대한 몇 가지 요구 사항이 있습니까?
에서이 솔루션을 발견. 어쩌면 "#!/bin.sh"이어야합니다. –
죄송합니다. 여전히 실행되지만 좋은 캐치입니다. 시도해 볼 것입니다. –