I did some research on the subject and theoretically you should be able to insert
<key>LSUIElement</key>
<true>
right before
</dict>
</plist>
at the end of a .dmg file to get the icon to hide from the dock even when it is in use. I'm not looking for a workaround like "Change the dock icon" or "Just hide the dock entirely" or something like that, I'd like to know how this sort of thing works and why it is just crashing the application rather than hiding the dock icon.