Anoop Vaidya
Anoop Vaidya

Reputation: 46563

Few issues while creating DMG from scripts

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.

Upvotes: 3

Views: 240

Answers (1)

Gordon Davisson
Gordon Davisson

Reputation: 126048

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.

Upvotes: 1

Related Questions