nLite használatához várok ide tippeket és ötleteket
-
#23
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%\install\mozilla 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 "HKU\CUSTOM" "C:\Documents and Settings\Default User\NTUSER.DAT"
REG ADD HKU\CUSTOM\Software\Microsoft\Windows\CurrentVersion\RunOnce /v Create_Firefox_User_Profile /t REG_SZ /d "cscript.exe \"%programfiles%\Mozilla Firefox\CreateProfile.vbs\"" /f
REG UNLOAD "HKU\CUSTOM"
You could also just create a reg file and use (RunOnceEx Method 2)
CODE
REG LOAD "HKU\CUSTOM" "C:\Documents and Settings\Default User\NTUSER.DAT"
REGEDIT /S FirefoxCreateUserProfile.reg /f
REG UNLOAD "HKU\CUSTOM"
FirefoxCreateUserProfile.reg
CODE
Windows Registry Editor Version 5.00
[HKEY_USERS\CUSTOM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]
"Create_Firefox_User_Profile"="cscript.exe \"%programfiles%\\Mozilla Firefox\\CreateProfile.vbs\""