Make A Pkg From Dmg
The ISO file format can be used on the Macintosh operating systems, however, almost all of the software packages for Mac is downloaded from the internet as a DMG Disk Image file. Although the DMG file format has some features which are not available in the ISO format like file encryption methods and compression algorithms, DMG files cannot be. Inside the VM, download the.dmg (see below) and mount it. Launch the.pkg inside the.dmg. The.pkg seems to understand that it is inside a VM, and will install the app, which it would not do outside of the VM. Note that the Installer.app says that it will only take a few megabytes, but that is incorrect.
Learning how to create a bootable macOS installation disk can be helpful in a variety of situations. Rather than download and install a new OS from Apple's servers each time, it can be used for multiple installations on different machines. It can also help in situations where the operating system is corrupted or installation from app store shows errors.
To create a bootable macOS installation disk, you have to burn the DMG file to a USB drive as CD/DVD is not available for Mac computers. Here's how to do it from text commands and using a purpose-built software called WizDMG. You will first need to download the DMG file for the macOS version you wish to install. For example, if you want to create a bootable macOS Mojave installer, you will need the DMG file for macOS Mojave. Once the file has been downloaded to your PC, you can proceed with one of the bootable disk creation methods shown below.
Method 1: How to Create Bootable USB Installer for Mac via Commands
macOS (formly named Mac OS X) is just a variant of popular Unix based operating system. This means a lot of daily and advanced tasks on Mac can be done via text commands such as creating bootable USB installer for Mac. However, this could be a lot of challenges if you had no clue about commands and I suggest taking a look at the other solutions in this post to avoid messing up the computer with the wrong commands.
Step 1. Search macOS name in app store (Mojave, High Serria, EI Capitai). Zelotes mouse drivers download. Click 'Get' button to download the installer image on your Mac. The downloaded file will be located in Application folder.
Step 2. When the download is completed, the installation windows opens automatically, just close the window and go to Application folder. You will find a file started Install, such as Install macOS Majave.
Step 3. Now connect an external flash drive with more than 16G free space. And backup the data in that USB drive as the installer erase all content from it. Open Disk Utility app and format the USB drive with APFS or Mac OS Extended.
Step 4. Open the Terminal app and copy-and-past the following commands to make a booatble USB installer from macOS image:
For Majove: sudo /Applications/Install macOS Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
For High Serria: sudo /Applications/Install macOS High Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume
For EI Capitan: sudo /Applications/Install OS X El Capitan.app/Contents/Resources/createinstallmedia --volume /Volumes/MyVolume --applicationpath /Applications/Install OS X El Capitan.app
Step 5. Input the admin password when being prompted. And wait for the booatable disk being created. When it is done successfully, you will receive a message shown in above screenshot.
Unconfortable with text commadns and prefer doing it in a simple way? The second suggestion is more user friendly!
Method 2: How to Make Bootable USB from macOS with WizDMG
WizDMG fills a huge gap in Windows not supporting DMG files. It is a desktop utility supporting Windows and Mac. It allows you to directly burn DMG files to disk in order to create a bootable macOS Mojave installer or a boot disk for any macOS version.
WizDMG offers an intuitive interface with no clutter and full functionality to handle DMG files. Apart from burning such disk image files to DVD/CD or USB, it also gives you edit options where you can add and remove files from within the DMG file, rename DMG files and even create DMGs from files and folders on your desktop. This software application has been created for novice users as well as experts. It is easy to use, has a very high burn success rate and will help you create a bootable macOS installer in no time. Follow the instructions below:
Step 1Install WizDMG
Make A Pkg From Dmg Files
Download WizDMG from the official website and install it on your PC. Launch the program and select the 'Burn' option in the main interface.
Step 2Create Bootable USB from macOS Install Image
Click on Load DMG to import the macOS installation file into the application. Insert a USB (16G free space) and click on the 'Burn' button next to the appropriate media type.
The important thing to remember here is that you now know how to create a macOS installer in Windows. There aren't a lot of options out there because of the compatibility issues between Mac and Windows environments. That means converting DMG to ISO and back again to DMG leaves the door open for corrupted files and incorrectly burned bootable media, which defeats the whole purpose because it might not even work in the end.
Method 3: Create macOS High Serria/Mojave Bootable USB on Windows 10/7
Make A Pkg From Dmg Download
Another way to create macoS bootable disk on Windows is using a tool called DMG2IMG along with Windows command prompt. It requires a bit of a workaround, but even novice users can learn to burn a DMG file to a disk to create bootable media for a macOS installation. Just make sure you follow the instructions below carefully.
Step 1. Download DMG2IMG and install it in your Windows PC. Open File Explorer and go to the folder containing the DMG2IMG program, then right-click and select 'Open command windows here.'
Step 2. Type the following command and hit Enter: dmg2img [sourcefile.dmg] [destinationfile.iso]
Step 3. Now that the DMG file has been converted to ISO format, you can use the following command to burn it to a disk. Before that, insert a disk into the optical drive: isoburn.exe /Q E: 'C:UsersUsernameDesktopdestinationfile.iso'
Step 4. This command utilizes the Windows native disk image burner to burn the ISO to the disk in your optical drive. The ISO file can't be used directly in macOS, but it can be mounted as a virtual drive. Once you do this, you can convert it back to DMG using Disk Utility in Mac. You can then use this as your bootable macOS installer.
As you can see, this is a bit of a workaround because DMG files aren't natively supported in Windows. Likewise, ISO files aren't fully supported in macOS. However, you can use this method to create a macOS installation disk in Windows. If you want a much simpler solution, then review the next method shown here.
Summary
If you ask us how to create a bootable macOS installation disk, this is the method we recommend. There's no confusing command line work involved, you don't need a bunch of additional software utilities to get the job done, and the high accuracy of the application ensures that you won't be wasting disk after disk trying to burn the installation media for macOS onto a disk. Use WizDMG as a quick and painless way to create a macOS installation disk in a very short time.
Related Articles & Tips
Scroll down to “Update and Solution” to see how to get this to work.
Apple recently released new installers for Mac OS X/OS X/mac OS to deal with expired certificates:
Three of the six are links to the Mac App Store:
The other three are URLs to download DMGs:
- macOS Sierra – InstallOS.dmg
- OS X El Capitan – InstallMacOSX.dmg
- OS X Yosemite – InstallMacOSX.dmg
Today I tried (and failed) to create a new Virtual Machine in either Parallels or VMware Fusion using one of these DMGs, specifically, the El Capitan one.
I will explain what I did, and where I got stuck, in the hopes that someone else might figure out what I did wrong and point me in the right direction.
Download the DMG
Apple has created three DMGs for Yosemite, El Capitan, and Sierra, but couldn’t be bothered to give them useful names, so Yosemite and El Capitan are called ‘InstallMacOSX.dmg’ and Sierra is ‘InstallOS.dmg’.
Likewise the DMGs aren’t named usefully when you mount them either, so make sure you name the DMGs well when you download them to avoid confusion. Here’s how to download it and rename it at the same time
Mount the DMG
Open the ‘~/Downloads/InstallElCapitan.dmg’
That will leave you with
“/Volumes/Install OS X/InstallMacOSX.pkg”
Extract the App
Don’t try to install from that .pkg file, it probably won’t work unless the Mac you’re using is capable of running El Capitan:
Instead, open it with Suspicious Package which will let you examine the contents of the .pkg file, as shown here:
Note the area in the red box. Obviously that’s not the full installer, despite the .dmg being over 6 GB. But let’s export it anyway:
Save it to /Applications/ (or wherever you prefer, but that’s where I’ll assume it is for the rest of these instructions).
Don’t eject “/Volumes/Install OS X/InstallMacOSX.pkg” yet, we still need to get the actual .dmg from it.
Get the other DMG
Download The Archive Browser if you don’t already have it (it’s free!) and use it to open “/Volumes/Install OS X/InstallMacOSX.pkg”.
It will look like this:
Click on the triangle to the left of “InstallMaxOSX.pkg” to reveal its contents, and select the “InstallESD.dmg” file from it.
Once it is selected, choose “Extract Selected” from the bottom-left. Save it to ~/Downloads/ (it won’t be staying there long).
Ok, this part could be confusing…
When The Archive Browser exports the file, it will not just export the “InstallESD.dmg” file. First it creates a folder “InstallMacOSX” and then it created “InstallMacOSX.pkg” inside that folder, and the “InstallESD.dmg” file is put inside the .pkg… but you can’t see it, because the .pkg file won’t let you open it.
That’s OK, because we’re going to use Terminal.app to move the file into place anyway.
First we need to create a directory inside the ‘Install OS X El Capitan.app’ which we previously saved to /Applications/. We’re going to use the same folder for two commands and we want to make sure we get it exactly right both times, so we’ll make it a variable:
Then use the variable with mkdir
to create the folder:
and then we need to move the “InstallESD.dmg” file into that folder
Note: you probably want to trash the ‘~/Downloads/InstallMacOSX/InstallMacOSX.pkg’ (and its parent folder) now that it is empty, to avoid confusion later
Now if you look at the ‘Install OS X El Capitan.app’ in the Finder, it should show itself as 6.21 GB:
So close, and yet…
VMWare was willing to start trying to make a virtual machine using the app, but it failed when it came to the actual installation part:
I don’t know what to try next. Parallels would not use either the ‘Install OS X El Capitan.app’ or the ‘InstallESD.dmg’ to try to create a new virtual machine.
Update and Solution
I posted a question on the VMware Fusion support forum asking how to do this, and someone came up with a very clever solution, which I will replicate here in case others are interested. The idea is simple, but I never would have thought of it.
- Create a virtual machine of any version of macOS, even the current version that you are using on your Mac.
Inside the VM, download the .dmg (see below) and mount it.
Launch the .pkg inside the .dmg.
The .pkg seems to understand that it is inside a VM, and will install the app, which it would not do outside of the VM. Note that the Installer.app says that it will only take a few megabytes, but that is incorrect.
Find the “Install OS X El Capitan.app” (or whatever the app name is) in the /Applications/ folder inside the VM. It should be over 6 GB in size.
Copy the “Install….app” from the VM out to your actual Mac.
Create a new VM using the “Install….app” from the /Applications/ folder on your Mac.
Step #4 is the part that I never would have guessed. The .pkg would not install the app outside of a VM, but will install it inside of a VM.
This worked perfectly with the El Capitan .dmg file, and I’m currently doing the same with Yosemite and Sierra. Then I’ll try the older versions of Mac OS X from old installers that I have from before they disappeared from Apple’s servers.
Update 2
Turns out that Rich Trouton wrote about this technique back in early 2017:
But I wasn’t working with VMs at the time, so I must not not stored that in my long-term memory.
Update 3
I had saved the older installers for Lion, Mountain Lion, and Mavericks, which are no longer available for download.
Each of them still installed as a VM. Apparently they were not signed with the certificates that expired.
Older versions of Mac OS X (10.6.8 and before) are not available to virtualize.