是否可以让 PackageMaker 构建一个无需“打包”的安装程序?构建时的内容?
我有要安装的内容,但它的文件和文件夹布局是由脆弱、旧的 Windows 安装程序决定的。我无法从根本上改变结构,而且我宁愿根本不改变它。例如,我无法将其放入 PackageMaker 包中并以某种方式让 Windows 安装程序弄清楚如何读取它。
有没有一种方法可以使用 PackageMaker 而无需在构建时捆绑真实内容?有没有办法用符号链接构建包并让 PM 在运行时尊重它们?
我需要支持10.5-6。
编辑:如果我可以使用未压缩的包,则可能能够在安装程序之间共享内容文件。有办法做到这一点吗?
我会尽力提供有关我正在做的事情的更多信息,如果有不清楚的地方,请告诉我。请原谅任何冗余。
我需要创建 Mac/PC DVD 来安装我的应用程序。该应用程序由 Mac 或 Windows“阅读器应用程序”以及大约 GB 的“内容”文件组成。有一个现有的 Windows 安装程序,可以从 DVD 中读取并安装 Windows 阅读器和内容文件。 (不幸的是)无法更改 Windows 安装程序。因此,DVD 上的共享内容文件必须与磁盘上的完全相同,我无法将它们压缩或打包,或者进行任何操作。
我需要制作一个 Mac 安装程序来安装 Mac 应用程序和内容。因此,安装程序需要安装 DVD 文件夹结构中的内容,在安装时必须查看这些内容。我的理解是,PackageMaker 要求您在安装程序的创建“构建阶段”期间打包已安装的文件。这对我不起作用,因为我无法更改磁盘上的内容。
苏尼尔说:
在使用 packagemaker 创建安装程序期间,我们可以附加文件和文件夹,也可以指定它将安装的路径。如果您想要自定义方式存储已安装的数据,例如在某些目录结构中,则在预安装的脚本中编写脚本来创建要创建的目录。
创建文件或文件夹时,我无法将其“附加”到安装程序。当用户运行安装程序时,我需要安装程序从 DVD 中读取内容。
如果有什么需要进一步澄清的,请告诉我。
I have content to be installed, but it's file and folder layout is determined by the brittle, old, Windows installer. I can't fundamentally alter the structure, and I'd prefer not to alter it at all. I can't put it in a PackageMaker package and somehow get the Windows installer to figure out how to read it, for example.
Is there a way to use PackageMaker without having to bundle up the real content at build time? Is there a way to build the package with symlinks and have PM honor them at run time?
I need to support 10.5-6.
edit: If I could use an uncompressed package, that might be able to share the content files between installers. Is there way to do that?
I'll try to give more info about what I'm doing, if something isn't clear please let me know. Please forgive any redundancy.
I need to create a Mac/PC DVD to install my application. The application consists of either a Mac or Windows "reader app", and about a GB of "content" files. There is an existing Windows installer that reads installs the Windows reader and the content files off the DVD and installs them. It is (unfortunately) not a possibility to change the Windows installer. Therefore, the shared content files on the DVD must remain exactly as they are on the disk, I can not zip or package them up, or anything.
I need to make a Mac installer that will install the Mac app and the content. So, the installer needs to install the content from the folder structure of the DVD, which it will have to look at during install-time. My understanding is that PackageMaker requires you to package up the installed files during the creation "build phase" of the installer. That won't work for me because I can't alter the content on disk.
Sunil said:
During creating installer using packagemaker we can attach both a file and a folder also we can specify the path it will be installed. If u want customized way of storing the installed data eg- in some directory structure then in pre installed script write the script to create directory to be created.
I am not able to "attach" files or folder to the installer when I create it. I need the installer to read the content off the DVD when the user runs the installer.
Let me know if there is something that needs to be clarified further.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
听起来您希望 .pkg 直接从 DVD 复制文件,而不是让 PackageMaker 将文件捆绑到 .pkg 中,对吗?
据我所知,.pkg 本身无法做到这一点。正如 NSD 提到的,您可以在 postinstall/postflight 脚本中执行此操作,但您希望显示正确的进度条。我能看到的唯一选择是编写一个 Cocoa 应用程序,它不仅可以复制 DVD 上的文件,还可以在其 GUI 中显示进度条,并使用该应用程序作为安装后“脚本”。
It sounds like you want the .pkg to copy the files right from the DVD, instead of having PackageMaker bundle the files into the .pkg, correct?
As far as I know a .pkg cannot do this natively. As NSD has mentioned you can do this in a postinstall/postflight script, but you want to display a proper progress bar. The only option left that I can see is to write a Cocoa app which not only copies the files off the DVD but also displays a progress bar in its GUI, and use that app as the postinstall "script".
在使用 packagemaker 创建安装程序期间,我们可以附加文件和文件夹,也可以指定它将安装的路径。如果您想要以自定义方式存储安装的数据,例如在某些目录结构中,则在预安装的脚本中编写脚本来创建要创建的目录。您能否更深入地描述您的问题,以便我可以帮助您
During creating installer using packagemaker we can attach both a file and a folder also we can specify the path it will be installed. If u want customized way of storing the installed data eg- in some directory structure then in pre installed script write the script to create directory to be created. Can you please describe your problem more deeply so that i may help you
编写一个 postinstall 或 postflight 脚本,从 DVD 上复制文件。
Write a postinstall or postflight script that copies the files off of the DVD.