English 中文(简体)
OSX - 从命令行运行时安装失败
原标题:OSX - installer fails when run from command line

我正试图在Mac上安装我们的产品 从命令线上:

$ installer -package /Volumes/setup.pkg/setup.pkg -target /Volumes/MacOS -verbose
installer: Package name is Foo
installer: Upgrading at base path /
installer: Preparing for installation….....
installer: Preparing the disk….....
installer: Preparing Foo….....
installer: Waiting for other installations to complete….....
installer: Configuring the installation….....
installer:  
installer: Writing files….....
#
installer: Writing files….....
#
installer: Writing files….....
#
installer: Moving items into place….....
##
installer: The upgrade failed (The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance.)

当从 GUI 运行时一切都很好。 sudo 没有帮助 。 我如何调试这个? 至少我需要一个信息更丰富的日志 。 将非常需要 。

自原始张贴以来的 < 坚固> 附加信息 : < / 坚固 > 从 GUI 运行该应用程序时, 应用程序被安装为 ${HOME}/ 运行该应用程序的用户( 按原计划) 的 ${HOME} / library 。 在从命令行运行时, 它试图将其安装到 / Library (甚至复制一些文件, 但不是全部) 。

最佳回答

在 GUI 中,您没有明确指定目标, 所以所有的东西都会按软件包要放的位置进行。 但在命令行中, 您会明确指定 < code>- target /Volumes/ MacOS , 这超过了软件包指定的内容, 所以它试图将文件放入 < code > /Library 和其他可能无法进入的地方。

显然, -target RentUserHome 日志 解决了这个问题。

要获取更多细节, 您需要提取软件包( 在空目录中, 最简单的方法是 < code> xar - xf setup. pkg ), 并查看文件分布, */ PackageInfo, 可能还有 */ Bom, 以查看安装者具体指定的内容。 但如果您想要它工作, 您已经知道怎么做 。

问题回答

暂无回答




相关问题
Correct place to install demostration projects?

With the new Windows 7 restrictions (well, new to Windows Vista anyways), we can no longer install demo projects to %ProgramFilesFolder%OurApplicationdemo since restricted users will not be able to ...

.deb package conffiles problem

I am distributing one of my applications using a .deb package, but have a problem relating to one of the files. The distribution includes a database file which is constantly updated by the app, on a ...

Closing an application using WiX

In creating my WiX installer I have run into an issue when trying to close an application before installing the upgrade. Below is an example of how I am attempting to do this. <util:...

VS 2005 Setup - HKCU

I am trying to fix an existing application that uses a Visual Studio 2005 setup project. We are requiring it to work on limited user accounts for XP, our app is written in C# for .Net 2.0. It writes ...

Do I want Publish or Release Build in VB.net?

I wrote a little (like 40 lines little) Winforms application with VB.net in Visual Studio 2010. Now I ve released the code as a Google Code project. It s easy for a developer to get the source but I d ...

configsource and installer

I have an project csproj, with app.config file, and logging Ent.Library section using configsource attribute. The logging section is in ahother file Configloggingconfiguration.config. I have a ...

热门标签