AppleDeveloper
AppleDeveloper

Reputation: 1433

installation is getting failed when i click cancel of authentication page

enter image description here

I made my pkg file with pkgbuild and productbuild. Before giving authentication details, it is going in to installation step and showing message "preparing for installation". Without giving credentials, if i click cancel My installation is getting cancelled.

enter image description here

Upvotes: 0

Views: 157

Answers (2)

AppleDeveloper
AppleDeveloper

Reputation: 1433

I found answer for this myself, We need to add auth attribute as root

pkg-ref id= auth="root"

Reference: http://macinstallers.blogspot.in/2013/01/xml-attributes-of-packagemaker.html#installation-check. This stackoverflow question helped me lot

Making OS X Installer Packages like a Pro - Xcode Developer ID ready pkg

Upvotes: 0

TheDarkKnight
TheDarkKnight

Reputation: 27611

When you select 'Install', if the installation requires access to resources not belonging to the current user, the Installer's associated helper application (runner) will request an appropriate user to authenticate; usually a member of the Administrators group.

It is this helper process (runner) that is responsible for the actual installation, so if it can't obtain the user's credentials, it can't continue to install; the installation has failed and the user is notified accordingly.

Upvotes: 1

Related Questions