![]() ![]() |
Feb 2 2005, 03:28 AM Post
#1 | |
| MSFN Contributor ![]() ![]() ![]() Group: Members Posts: 481 Joined: 28-July 04 From: Perth, Western Australia Member No.: 25674 |
Hi all! Well there are a couple of guides here already and whilst they are very good and alot of members have put time in to researching the requirements and producing the guides, personally I have found them to long-winded 1. an unattended installation that included my selection of extensions and themes; 2. a method that was small and could be downloaded or emailed to someone else; and 3. a single file that could be used to deploy in a corporate environment. The results of my research and testing has been (i am pleased to say) very fruitful. Below is my method for creating a single file that can be used as a stand alone custom installer for Firefox including extensions and themes, whilst at the same time can be used for a complete unattended installation. Mozilla Firefox unattended/stand-alone deployment Guide 1.0 required tools: - Mozilla Firefox - Firefox extensions you wish to include - Firefox themes you wish to include - WinRAR - Simple-FFDeploy.rar Contains Bob Templeton's FFDeploy, Custom WinRAR SFX Module for Firefox and Extra scripts by `felix` (This one file contains everything you need) 1. Install a "clean" version of Firefox and configure to suit your requirements. 2. Install any/all your desired extensions and themes and configure. 3. Now we are going to make use of the great work Bob Templeton has done. Run FFDeploy (either the vbs or the exe) and build the deployment source [some images below to help]. FFDeploy.exe (Start screen) ![]() Select your Firefox installation source folder Once the build process has finished you will be prompted with Your choice here what you want to do.Ok Now you will be asked if you want to build a self installer - click on NO. ![]() Now exit from FFDeploy. 4. Now we have all the source files required including extensions and themes you are going to install. Navigate to your desktop and the Firefox_Deployment folder. 5. Extract the contents of the Simple-FFDeploy.rar file to the Firefox_Deployment folder. Contained in this file is Comment.txt, exclude.lst, firefox.SFX and !makeSFX.cmd. Next edit the contents of the comment.txt file to suit requirements. Note If you are only going to use the deployment file for unattended installations you can change Silent=0 to Silent=1 6. Now you are ready to create the final deployment file - simply run the !makeSFX.cmd file and this will create mozilla Firefox deployment.exe in the Firefox_Deployment folder for you. It may take a few minutes depending on the size of your source code. Final product (when launched) will look something like this ![]() ------- Unattended AIO CD deployment methods 1. Add "mozilla Firefox deployment.exe" (or what ever you renamed it) to your RunOnceEx process. Example: (notice the /s - this is to tell the installer to run quiet/silent mode. If you have set silent=1 in the comment.txt file - you do not need the /s) CODE REG ADD %KEY%\001 /VE /D "Mozilla Firefox 1.0 Custom" /f REG ADD %KEY%\001 /V 1 /D ""%systemdrive%installmozilla Firefox deployment.exe /s" " /f Ok this takes care of the system wide installation... As you will be able to see in the comment.txt file - after extraction, CreateProfile.vbs is run to create a firefox profile for the current user (normally the administrator). For each user, this vbs file must be run to create the users firefox profile. 2. Now we need to add the CreateProfile.vbs to the Default Users NTUSER.DAT file so that any new user to the system will have their firefox profile setup when they logon the first time. To do this is simple and you can also include this in your RunOnceEx process. RunOnceEx Method 1 CODE REG LOAD "HKUCUSTOM" "C:Documents and SettingsDefault UserNTUSER.DAT" REG ADD HKUCUSTOMSoftwareMicrosoftWindowsCurrentVersionRunOnce /v Create_Firefox_User_Profile /t REG_SZ /d "cscript.exe "%programfiles%Mozilla FirefoxCreateProfile.vbs"" /f REG UNLOAD "HKUCUSTOM" You could also just create a reg file and use (RunOnceEx Method 2) CODE REG LOAD "HKUCUSTOM" "C:Documents and SettingsDefault UserNTUSER.DAT" FirefoxCreateUserProfile.reg REGEDIT /S FirefoxCreateUserProfile.reg /f REG UNLOAD "HKUCUSTOM" CODE Windows Registry Editor Version 5.00 [HKEY_USERSCUSTOMSOFTWAREMicrosoftWindowsCurrentVersionRunOnce] "Create_Firefox_User_Profile"="cscript.exe "%programfiles%Mozilla FirefoxCreateProfile.vbs"" There you have it - thats it! So now you can easily create a custom unattended install of Firefox with themes and extensions and deploy it with all users having a unique firefox profile. If you have any questions, comment, feedback or suggestions please let me know. TODO List - Automate the whole creation (single step) of the source and "mozilla Firefox deployment.exe" - Produce PDF of this guide (when completed...) - Work with Bob Templeton in regards to incorporating this all in FFDEPLOY... maybe/possible??? I hope you find this guide helpful. This post has been edited by `Felix`: Jun 2 2008, 12:48 AM |
| | |
Feb 2 2005, 03:33 AM Post
#2 | |
| MSFN loyalist ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Banned Posts: 3338 Joined: 2-December 03 Member No.: 10301 |
Hello ffdeploy has been around for a long time. What is the advantage of this method over that of simonsays' and how would u constrantly upgrade the xpi and themese using this method. I am very interested to learn something new. |
| | |
Feb 2 2005, 05:13 AM Post
#3 | |
| *Purrrr* ![]() ![]() ![]() Group: Members Posts: 395 Joined: 20-August 03 From: A house somewhere on a planet called earth, in a galaxy far far away. Member No.: 5919 |
I simply do this: A) Navigate to C:\Documents and Settings\<user>\Application Data\Mozilla\Firefox B) Copy the two files and folder, and place them elsewhere. C) When you next re-install Firefox, simply copy the two files and the folder back into C:\Documents and Settings\<user>\Application Data\Mozilla\Firefox. Voila, all your themes, extensions, and custom settings. Even your bookmark. Typically I start out with a clean install of Firefox first, and make changes I need, then do the backup. This method in itself won't install plugins, so you'd need to run those installations seperately. However, it's as easy as writing a batch script to automate the process of copying the files/folders over. I understand the advantages of a simple install package doing it all for you, but I like my method :) |
| | |
Feb 2 2005, 05:51 AM Post
#4 | |
| Member ![]() ![]() Group: Members Posts: 135 Joined: 15-January 05 From: Antwerp Member No.: 40865 |
check this please: http://www.msfn.org/board/index.php?act=ST&f=70&t=38184 |
| | |
Feb 2 2005, 06:57 AM Post
#5 | |
| MSFN Contributor ![]() ![]() ![]() Group: Members Posts: 481 Joined: 28-July 04 From: Perth, Western Australia Member No.: 25674 | QUOTE (Astalavista @ Feb 2 2005, 05:33 PM) Hello ffdeploy has been around for a long time. What is the advantage of this method over that of simonsays' and how would u constrantly upgrade the xpi and themese using this method. I am very interested to learn something new. Hi Astalavista, Personally i think this method is easier, faster and simplier. This is not a replacement for simonsays' guide which is extremely good - but an alternative approach. The upgrade of the themes is automatic if you set it up that way - firefox will tell the user if there is an update and the update can then be done. As for updating the source install - same system applies - then you would just repeat the process to create your custom installation. - this time it would include the updated extensions and plugins. I am working on a fully scripted version of this - i will make it available when finished. The fully scripted version will be a single "double mouse click" to run and will then produce the final SFX file ready to include in your Unattended CD. More information as i am able to put it together. - Thanks for your comments they are appreciated. |
| | |
Feb 2 2005, 06:58 AM Post
#6 | |
| MSFN Contributor ![]() ![]() ![]() Group: Members Posts: 481 Joined: 28-July 04 From: Perth, Western Australia Member No.: 25674 | QUOTE (neophyte @ Feb 2 2005, 07:13 PM) I understand the advantages of a simple install package doing it all for you, but I like my method Cool! and i also see the benefits of your method - this is just an alternative |
| | |
Feb 5 2005, 08:07 PM Post
#7 | |
| Group: Members Posts: 5 Joined: 21-January 05 Member No.: 41584 |
Hey Felix, great idea and tutorial you have here. I can't wait to try it out but I am encountering a problem. When i extract ffstuff to the deployment folder and run !makeSFX.cmd, I get an error in the cmd window: Invalid parameter - rows=5 And this in the winrar window: ! Cannot create files\winrar\firefox.exe The system cannot find the path specified. So I fixed this problem with replacing the "program files" in your !makeSFX.cmd to "progra~1" and this fixed that error. But then, I get this error message in the winrar window: ! Cannot open "C:\progra~1\winrar\firefox.SFX" The filename, directory name, or volume label syntax is incorrect. The file firefox.SFX is the one I downloaded from your attachment and I placed it in my winrar folder. Any suggestions? |
| | |
Feb 5 2005, 08:49 PM Post
#8 | |
| Friend of MSFN ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 944 Joined: 24-September 04 From: Pilipinas! Member No.: 31914 OS: none |
I love FFDeploy. As a matter of fact, I asked Mr. Bob Templeton for the code for his script. |
| | |
Feb 5 2005, 09:19 PM Post
#9 | |
| MSFN Contributor ![]() ![]() ![]() Group: Members Posts: 481 Joined: 28-July 04 From: Perth, Western Australia Member No.: 25674 | QUOTE (Shak @ Feb 6 2005, 10:07 AM) Hey Felix, great idea and tutorial you have here. I can't wait to try it out but I am encountering a problem. Hi Shak, Ok thanks for identifying the issues. I have fixed them and updated the ffstuff.exe file. You can just leave the firefox.sfx file in the same folder as your deployment files - if you want to have it in the winrar folder - just make a change to the !makeSFX.bat. If you have any other issues or questions let me know |
| | |
Feb 5 2005, 09:21 PM Post
#10 | |
| MSFN Contributor ![]() ![]() ![]() Group: Members Posts: 481 Joined: 28-July 04 From: Perth, Western Australia Member No.: 25674 | QUOTE (totoymola @ Feb 6 2005, 10:49 AM) I love FFDeploy. As a matter of fact, I asked Mr. Bob Templeton for the code for his script. hi totoymola, Well i would be interested in collaberating with you - i haven't heard back from Bob yet - have you? |
| | |
Feb 5 2005, 09:46 PM Post
#11 | |
| Friend of MSFN ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 944 Joined: 24-September 04 From: Pilipinas! Member No.: 31914 OS: none |
Hello `Felix. I haven't talked to him recently. The last time he sent me an email was last October (or November, I can't remember). He is a nice guy. |
| | |
Feb 5 2005, 09:56 PM Post
#12 | |
| MSFN Contributor ![]() ![]() ![]() Group: Members Posts: 481 Joined: 28-July 04 From: Perth, Western Australia Member No.: 25674 |
bump
|
| | |
Feb 5 2005, 10:17 PM Post
#13 | |
| Friend of MSFN ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 944 Joined: 24-September 04 From: Pilipinas! Member No.: 31914 OS: none | |
| | |
Feb 5 2005, 10:44 PM Post
#14 | |
| Group: Members Posts: 5 Joined: 21-January 05 Member No.: 41584 |
Great, the new stuff file worked fine and now it made the file. I'll have to test it out soon.
|
| | |
Feb 5 2005, 11:12 PM Post
#15 | |
| Senior Member ![]() ![]() ![]() ![]() Group: Members Posts: 573 Joined: 24-August 04 From: Dallas, Texas Member No.: 28765 |
looks very professional
|
| | |
Feb 6 2005, 03:29 AM Post
#16 | |
| Junior ![]() Group: Members Posts: 56 Joined: 4-February 05 Member No.: 42951 OS: none |
Well i don't understant the use of the vbs file... If an user launchs firefox, its profile will be created automatically in the %username%/application date/mozilla/firefox directory. If u use a roaming profile, i think there is no need for this file. User's profile (including the app data dir.) is downloaded from server when the user login and uploaded to server at logoff. And btw if u want a default settings, u can use the defaults/profile/prefs.js. Am i wrong or |
| | |
Feb 6 2005, 03:46 AM Post
#17 | |
| MSFN Contributor ![]() ![]() ![]() Group: Members Posts: 481 Joined: 28-July 04 From: Perth, Western Australia Member No.: 25674 | QUOTE (Shak @ Feb 6 2005, 12:44 PM) Great, the new stuff file worked fine and now it made the file. I'll have to test it out soon. kewl! look forward to your feedback. |
| | |
Feb 6 2005, 03:49 AM Post
#18 | |
| MSFN Contributor ![]() ![]() ![]() Group: Members Posts: 481 Joined: 28-July 04 From: Perth, Western Australia Member No.: 25674 | QUOTE (hfrfc @ Feb 6 2005, 05:29 PM) Well i don't understant the use of the vbs file... If an user launchs firefox, its profile will be created automatically in the %username%/application date/mozilla/firefox directory. If u use a roaming profile, i think there is no need for this file. User's profile (including the app data dir.) is downloaded from server when the user login and uploaded to server at logoff. And btw if u want a default settings, u can use the defaults/profile/prefs.js. Am i wrong or Well the vbs files gives system admins the flexibility to modify and change what happens and customize further. And yes you are right if you have installed with the original installer a new user is prompted, however when we make a custom installation - this isn't the case. Again you are right about the default user profile, but we want to have as many options as possible... |
| | |
Feb 6 2005, 09:32 AM Post
#19 | |
| Group: Members Posts: 2 Joined: 2-October 04 Member No.: 32605 |
Good work Felix. Sorry gentlemen, I've been swamped. You don't need me to send you the code...it's already right there in the .VBS files. My work load is such that I cannot spend much (if any) time right now maintaining FFDeploy. |
| | |
Feb 12 2005, 11:58 AM Post
#20 | |
| Group: Members Posts: 5 Joined: 21-January 05 Member No.: 41584 |
Hey felix, I just 'tested' it out on my VPC setup i have. First i removed uninstalled firefox from the add/remove in CP, deleted the firefox directory from program files, and deleted the folder for mozilla from my user/application data folder. I ran the silent file to install it all and it seemed to work, but after it finished, when I launched firefox (from the desktop), it opened but without any extensions showing. I checked tools -> extensions and i saw all of them there, but I could not go into the options of any of them. I was able to install them. ANy idea why this may have happened? Does it only work when you add it to your cmdlines or runonceex? |
| | |
![]() ![]() |
| Lo-Fi Version | Time is now: 20th November 2009 - 09:53 PM |