MacOS – Can’t change install location for package (.pkg) file in Installer

finderinstallmacospkgterminal

I'm looking for a way to change the folder location that a .pkg installs to. When I run .pkg and Installer opens, it only gives me the option to install on my main disk.

How do I change this so I can specify where on my disk for the .pkg to install? Is there a 3rd party installer that would allow me to do this? Or would this require me to convert .pkg and edit the scripts? I'm not entirely sure what I'm doing, and I wouldn't call myself an advanced user, but more of an above average user…

What I'm trying to do is move all my applications to ~/Applications rather than the default /Applications, but one of the apps I'm trying to move and reinstall is in a .pkg and I'm not sure how to run the .pkg and install the app and make sure all of its corresponding files correctly show that the app is in ~/Applications.

Best Answer

Some installers allow custom install locations in the install wizard.

However, if not, you can use the excellent third-party installer app, Pacifist.

Pacifist lets you browse the contents of installer packages, select components to install and choose install destinations.

However, if an installer package contains files that rely on the app being in /Applications, or if it contains scripts that pre- or post-process files, there isn't an easy way of configuring things to work with a different location. Pacifist does let you have a look at such scripts inside the package, though.

It's more likely that the app itself requires other components to be in fixed locations, and that after installing normally, you can move the app to another location, particularly ~/Applications, which is an OS designated location for apps.