Silent Installation of OSX Fuse

966 views
Skip to first unread message

Francesco Pighi

unread,
Nov 5, 2012, 6:09:45 AM11/5/12
to osxfus...@googlegroups.com
Hi,

Is there a way to install OSX Fuse as part of an installation of another application (that uses OSX Fuse)?

I would like the installation of OSX Fuse to be silent if possible or alternatively a way to install the kernel extension using a script.

Many Thanks

Benjamin Fleischer

unread,
Nov 5, 2012, 5:38:50 PM11/5/12
to osxfus...@googlegroups.com
Hi,

In case you are using an installer package to distribute your app you could install OSXFUSE during the postinstall script phase. If you are distributing you app in a DMG or ZIP file you could include the OSXFUSE installer in you app bundle and install it on the app's first launch.

To install OSXFUSE silently you need to run the following command.

sudo installer -package <path to installer package> -target /

By default the the core components and the preference pane are installed. If you would like to change that it is recommended to use option applyChoiceChangesXML of the installer tool. Doing so you can specify which choices (core package, preference pane, MacFUSE compatibility layer) are to be installed.

Please note that you need admin privileges to install OSXFUSE.

Regards,
Benjamin

Francesco Pighi

unread,
Nov 5, 2012, 5:42:14 PM11/5/12
to osxfus...@googlegroups.com
Great, thanks a lot. I'll try tomorrow and will let you know how it goes.

--
Francesco Pighi

Benjamin Fleischer

unread,
Jan 23, 2013, 6:18:44 PM1/23/13
to osxfus...@googlegroups.com
Please take a look at option applyChoiceChangesXML of the installer command. You can find the installer man page on https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man8/installer.8.html. Section "CHOICE CHANGES FILE" will tell you how to override the default choices.

Am 23.01.2013 um 16:46 schrieb evos...@gmail.com:

This is great, but how do you install it with the MacFUSE compatibility option?

Marcel

unread,
Feb 2, 2016, 3:51:07 PM2/2/16
to OSXFUSE
Hello,

it would be very nice to get the correct information here about -showChoiceChangesXML and -applyChoiceChangesXML to install the actual 'FUSE for OS X 2.8.2' silently on 10.10/10.11 machines including the compatibility layer (for VeraCrypt).


sudo installer -package <path to installer package> -target /

This is the standard way which hasn't included the needed compatibility layer for VeraCrypt.

And yes, users will be informed about the fact, if they install VeraCrypt they also get FUSE for OS X automatically included ... ;)

There are so many options in the XML file, I don't get it, sorry.

Marcel

unread,
Feb 2, 2016, 3:52:57 PM2/2/16
to OSXFUSE
version 2.8.3 of course, sorry

Benjamin Fleischer

unread,
Feb 3, 2016, 5:28:05 PM2/3/16
to osxfus...@googlegroups.com
Hello Marcel,

Let me start by saying that VeraCrypt should really drop the MacFUSE compatibility layer. It will not be around forever. Switching from the compatibility layer to the "real thing" is, in most cases, simply a matter of linking again libosxfuse instead of libfuse. Then you would not need to overwrite the default installer package choices.

There are so many options in the XML file, I don't get it, sorry.

There are three choices for every supported version of OS X: 

  • OSXFUSECore: Installs the FUSE kernel extension, libfuse and OSXFUSE.framework
  • OSXFUSEPrefPane: Installs the preference pane
  • OSXFUSEMacFUSE: Installs the MacFUSE compatibility layer

Version 2.8.3 supports the last seven versions of OS X, meaning there is a total of 21 choices. 

What you would need to do is find out which version of OS X your package is being installed on and then install the three corresponding osxfuse choices. Let’s assume your package is being installed on 10.11, then the choices would be 10.11$OSXFUSECore, 10.11$OSXFUSEPrefPane, and 10.11$OSXFUSEMacFUSE.

Another approach would be to run

installer -showChoiceChangesXML -pkg /path/to/osxfuse.pkg

before installing osxfuse and then install all choices for which choiceIsVisible is true. On OS X 10.11 only 10.11$… choices will be visible, on OS X 10.10 only 10.10$… choices, and so forth.

Please note that the packaging has changed in the pre-release version of osxfuse 3.x. In 3.x there are only three choices.

I hope this helps.

Regards,
Benjamin

--
You received this message because you are subscribed to the Google Groups "OSXFUSE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osxfuse-grou...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Marcel

unread,
Feb 4, 2016, 8:45:31 AM2/4/16
to OSXFUSE
Hi Benjamin,

thank you very much, this worked very well now with:

sudo installer -pkg /path/to/osxfuse.pkg -target / -applyChoiceChangesXML /path/to/exported_osxfuse_install_choices.xml

Will also get in touch with the VeraCrypt developer and ask to link to libosxfuse instead of libfuse for future releases, good hint.

All the best,
Marcel

Nikhilesh Susarla

unread,
Feb 11, 2022, 7:15:43 AM2/11/22
to macFUSE
Does the above settings help us to evade from user going and setting the reduce security option ? while install macfuse ?

Thank you
Susarla Nikhilesh

Reply all
Reply to author
Forward
0 new messages