windows 创建双 Mac/Win 自动运行 CD
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/452289/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Creating a dual Mac/Win Autorun CD
提问by Abdullah Jibaly
How do I create a CD that opens a "Drag this icon to the Application folder to install" on the Mac and autoruns an installer on Windows?
如何创建一张 CD,在 Mac 上打开“将此图标拖到应用程序文件夹进行安装”并在 Windows 上自动运行安装程序?
采纳答案by Jason Coco
Jordan Brough has a really good write-up on his blog about this:
Jordan Brough 在他的博客上有一篇关于这个的非常好的文章:
http://jordan.broughs.net/archives/2008/03/creating-cross-platform-windows-and-mac-installer-cds
http://jordan.broughs.net/archives/2008/03/creating-cross-platform-windows-and-mac-installer-cds
For what it's worth, this was the first result returned from a fairly simple google search...
对于它的价值,这是从相当简单的谷歌搜索返回的第一个结果......
回答by Adam Peck
You can use hdiutil
您可以使用hdiutil
eg.
例如。
hdiutil makehybrid -o [output-file] [input-folder] -iso -hfs -hide-iso [mac-only-file] -hide-hfs [windows-only-files]
What you will want to do is hide the windows specific files from the HFS partition and hide the Mac only files from the ISO.
您要做的是从 HFS 分区中隐藏 Windows 特定文件,并从 ISO 中隐藏 Mac 专用文件。
Then you would use an autorun file as your normally would on Windows.
然后您将像往常一样在 Windows 上使用自动运行文件。
On the Mac side there are many applications you can buy for creating a Finder window that looks a certain way but all these changes can be made within finder. You then will need to copy the DS_Store file to the CD and finder will automatically apply any changes that you have made.
在 Mac 端,您可以购买许多应用程序来创建具有特定外观的 Finder 窗口,但所有这些更改都可以在 finder 中进行。然后您需要将 DS_Store 文件复制到 CD,finder 将自动应用您所做的任何更改。
Also using -hfs-openfolder will cause it to open automatically when inserted on the mac.
同样使用 -hfs-openfolder 将导致它在插入 mac 时自动打开。