Enterprise package deployment

Talk about code development, features, specific bugs, enhancements, patches, and similar things.
Forum rules
Please keep everything here strictly on-topic.
This board is meant for Pale Moon source code development related subjects only like code snippets, patches, specific bugs, git, the repositories, etc.

This is not for tech support! Please do not post tech support questions in the "Development" board!
Please make sure not to use this board for support questions. Please post issues with specific websites, extensions, etc. in the relevant boards for those topics.

Please keep things on-topic as this forum will be used for reference for Pale Moon development. Expect topics that aren't relevant as such to be moved or deleted.
vocatus

Enterprise package deployment

Unread post by vocatus » 2013-10-04, 16:23

Just joined the boards so be patient with me!

I build and distribute a number of software packages for deployment in enterprise environments (using a program called PDQ Deploy), and post these packages to reddit.com/r/sysadmin (example), among other places. I recently received approval from Moonchild to redistribute the Palemoon browser in these packages. I've built a number of Firefox packages, but it seems Palemoon uses a different INI/.cfg/.js configuration format.

What files do I need to alter in order to tweak a Palemoon installation and distribute those settings? (For example: change the home page, turn off first-run Settings Import feature, etc etc).

Thank-you.
Last edited by vocatus on 2013-10-08, 14:27, edited 1 time in total.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35620
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Enterprise package deployment

Unread post by Moonchild » 2013-10-04, 17:20

The standard method for defining/overriding preferences for deployment should be the easiest way to go about this.
Start here: http://kb.mozillazine.org/Locking_preferences

(The article is specifically about locking preferences, but gives you the general way of overriding preferences in a standard setup without editing included files)

EDIT: Mike's blog also has plenty of awesome resources for enterprise deployment: http://mike.kaply.com/2012/03/15/customizing-firefox-default-preference-files/ and http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/
Last edited by Moonchild on 2013-10-04, 20:24, edited 2 times in total.
Reason: Added Mike's blog link.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35620
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Enterprise package deployment

Unread post by Moonchild » 2013-10-04, 20:36

By the way, the CCK wizard might save you work - you can use it to create a configuration XPI which you can deploy along with the browser that has all the settings you want to make. See: https://addons.mozilla.org/en-US/firefox/addon/cck/
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

vocatus

Re: Enterprise package deployment

Unread post by vocatus » 2013-10-08, 13:37

This is perfect, thanks Moonchild.

vocatus

Re: Enterprise package deployment

Unread post by vocatus » 2013-10-08, 15:31

Moonchild wrote:The standard method for defining/overriding preferences for deployment should be the easiest way to go about this.
Start here: http://kb.mozillazine.org/Locking_preferences

(The article is specifically about locking preferences, but gives you the general way of overriding preferences in a standard setup without editing included files)

EDIT: Mike's blog also has plenty of awesome resources for enterprise deployment: http://mike.kaply.com/2012/03/15/customizing-firefox-default-preference-files/ and http://mike.kaply.com/2012/03/16/customizing-firefox-autoconfig-files/
I'm looking for Pale Moon-specific configuration instructions. Does Pale Moon change where it stores it's configuration preferences? I assume there's a custom installer being used as well; are there command-line flags I can use to customize during install?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35620
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Enterprise package deployment

Unread post by Moonchild » 2013-10-08, 18:21

Pale Moon's default profile location has a base path of %APPDATA%\Moonchild Productions\Pale Moon\

The default application installation path (where you probably want to make the post-install changes) is %PROGRAMFILES%\Pale Moon\
You'd probably be most interested in the defaults\ folder and the browser\defaults\profile folder.

The installer used is the Mozilla NSIS installer and is exactly the same in terms of supported options. (e.g. silent install etc. is supported the same way as for Firefox with -ms)
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

vocatus

Re: Enterprise package deployment

Unread post by vocatus » 2013-10-08, 20:55

Moonchild wrote:Pale Moon's default profile location has a base path of %APPDATA%\Moonchild Productions\Pale Moon\

The default application installation path (where you probably want to make the post-install changes) is %PROGRAMFILES%\Pale Moon\
You'd probably be most interested in the defaults\ folder and the browser\defaults\profile folder.

The installer used is the Mozilla NSIS installer and is exactly the same in terms of supported options. (e.g. silent install etc. is supported the same way as for Firefox with -ms)
Perfect, thanks. I was using the /s switch and it seemed to work, but may switch to -ms to use the same install routine that we've been using from Firefox.

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 35620
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Enterprise package deployment

Unread post by Moonchild » 2013-10-09, 02:59

/S is outmoded and likely to be removed, just FYI.

For further support re: enterprise deployment you'll have to rely on Mike's resources I pointed you to, as it's not been a big focus of mine. In addition, I'm about to step on a plane so will be unavailable for support for the duration of my trip abroad.
"Sometimes, the best way to get what you want is to be a good person." -- Louis Rossmann
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Locked