如何使用actionscript在mac中卸载图像?

发布于 2024-10-01 13:30:55 字数 163 浏览 0 评论 0原文

我正在 Flex 中开发 AIR 应用程序。这涉及使用 .dmg 文件安装映像。完成使用它的工作后,程序必须卸载它。

我可以使用 DiskImageMounter 实用程序通过将 dmg 文件的路径作为参数传递来安装 .dmg。我想知道如何以编程方式卸载图像。请帮忙..

谢谢!!

I am developing an AIR application in Flex. This deals with mounting images using .dmg files. After finishing the work with it, the program has to unmount it.

I am able to mount the .dmg using the DiskImageMounter utility by passing the path to dmg file as argument. I would like to know how do I unmount the image programatically. Please help..

Thanks!!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

高冷爸爸 2024-10-08 13:30:55

在终端中,您可以使用以下命令卸载 .dmg:

> diskutil unmount /Volumes/DMG_NAME

因此使用本机进程将“unmount /Volumes/DMG_NAME”作为参数传递给 diskutil。

in Terminal, you can unmount a .dmg with this command:

> diskutil unmount /Volumes/DMG_NAME

so pass "unmount /Volumes/DMG_NAME" as an argument to diskutil using native process.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文