3

I am able to create a DMG and it installs the app. So far so good.

But the issue I am facing is the scripts (shell and applescripts) creates a window with maximise button enabled. Clicking the maximise button makes the window look ugly, as bottom is cut. Also if you resize the window the background image does not cover the full window and shows white background.

For reference (see the images, as almost all DMG installer has similar issue )

enter image description here enter image description here

What I want is

  1. To disable the maximise button.

  2. To fix the window size so that it can't be resized by dragging.

Anoop Vaidya
  • 45,475
  • 15
  • 105
  • 134
  • 1
    Good question. I'm not aware that either is possible? When I've create custom DMG's I've used AppleScript (to automate the process), my guess is you're doing something similar - http://stackoverflow.com/questions/96882/how-do-i-create-a-nice-looking-dmg-for-mac-os-x-using-command-line-tools. – petert May 20 '14 at 10:23
  • Workaround for window resizing? http://joemaller.com/659/setting-icon-position-and-window-size-on-disk-images/ – petert May 20 '14 at 10:27
  • @petert: Yes similar codes. I tried every thing, googled and lastly I posted the issue. As you can see same issue persist even in Dropbox!!! – Anoop Vaidya May 20 '14 at 10:33
  • that window is basically Finder, I am pretty sure you can't control. – mohacs May 20 '14 at 20:37

1 Answers1

1

I'm pretty sure you can't control this. This window is a Finder window, not something you "own"; while you can set the default initial view, you can't prevent the user from changing the view -- resizing the window, switching to list, column, or cover flow view, showing the sidebar and toolbar, etc. Basically, the Finder is for browsing files & folders, not for presenting customized UI, and the standard tricks (rigged initial view settings & background image) are about as far as you can fake it.

Gordon Davisson
  • 95,980
  • 14
  • 99
  • 125
  • I liked ur comment. As im the applescript part we can show/hide toolbar statusbar etc. Thats why I wanted to check if by means we can overridw to make it better. – Anoop Vaidya May 20 '14 at 16:30