title: Create Hybrid Mac and Windows ISO with custom main folder settings
body: <p>I'm trying to create an hybrid CD able to autorun on Windows machines and auto-open the main folder with a custom background on Mac OSX.
  The CD has to start an application in flash showing also some PDF files.</p>
  
  <p>Here the scheme of the CD files and folders:</p>
  
  <pre><code>application.exe &lt;-- the app for windows
  autorun.inf &lt;-- the autorun file for windows
  application.app &lt;-- the app for mac osx
  /documents &lt;-- the folder which contains the PDF files for both the applications
  /background &lt;-- the folder which contains the background image for Mac OSX
  </code></pre>
  
  <p>Following this <a href="https://stackoverflow.com/questions/452289/creating-a-dual-mac-win-autorun-cd">answer</a> I was able to set a background folder image for mac and create the first hybrid ISO with this command:</p>
  
  <pre><code>hdiutil makehybrid -o [image.iso] [my_project_folder] -iso -hfs -hide-iso [file to hide on windows] -hide-hfs [file to hide on mac]
  </code></pre>
  
  <p>Unfortunately with this command I wasn't able to hide more than one file; I need at least 2 (.exe and .inf) for mac.
  And even if the background results correctly set to my original folder <br> when I open the ISO it seems to lost it and other settings like the window and icons dimensions.</p>
  
  <hr>
  
  <p><strong>Update:</strong></p>
  
  <p>The correct syntax for hdiutil command to hide multiple files is the following:</p>
  
  <pre><code>hdiutil makehybrid -o image.iso source_folder -iso -hfs -hide-iso cd_folder/application.app -hide-hfs "{cd_folder/application.exe,cd_folder/autorun.inf}" 
  </code></pre>
  
  <p>Unfortunately the folder background image, window dimensions and icon positioning still desappear in the iso file.
  It is possible to re-set them again but every time the iso is ejected and re-mounted OSX seems to forget my preferences...</p>
  
  <hr>
  
  <p><strong>Solution:</strong></p>
  
  <p>After several attempts I have finally found the cause:<br> the read and write mount command <code>hdiutil attach -readwrite myCD.iso</code> does't work on Mountain Lion <br>
  Therefore the OS doesn't save / remember my preferences.<br>
  I have noticed this behaviour also trying to create the hybrid image with <code>Toast</code>; when I have tried to mount <code>myCD.toast</code> and change the icon position it wasn't allowed (and I realized the problem).</p>
  
  <p>Hence I replicate the process with my old Snow Leopard and everything worked perfectly! <br> Also creating the hybrid CD with Toast is really easier and fully customizable.</p>