Fix for bugscape 12043: Ability to create customized Mac OSX builds of

N6.1+ (r=smeredith)
This commit is contained in:
shrutiv%netscape.com 2002-02-12 19:13:15 +00:00
Родитель 08b08f2d2c
Коммит 7a3fa22830
2 изменённых файлов: 150 добавлений и 126 удалений

Просмотреть файл

@ -25,6 +25,8 @@
#define WDISK_SPACE 27577549
// Required disk space for Linux build
#define LDISK_SPACE 84934656
// Required disk space for MacintoshOSX build
#define MDISK_SPACE 5976884
int interpret(char *cmd);
@ -44,6 +46,8 @@ CString outputPath;
CString xpiDstPath;
// variables for CCK Linux build
CString curPlatform;
CString platformPath;
CString templinuxPath;
CString nsinstPath;
CString nsinstallerDir;
@ -124,7 +128,8 @@ int ReplaceXPIFiles()
xpiArcDest = xpiDstPath + "\\" + xpiList[i].xpiname; //xpiDstPath=CCKTool\Configs\ configName\Output\Core
if (!CopyFile(xpiArchive, xpiArcDest, TRUE))
DWORD e = GetLastError();
if ((strcmp(xpiList[i].filename,"bin/defaults/isp/US") == 0) || (strcmp(xpiList[i].filename,"bin/defaults/isp") == 0))
// if ((strcmp(xpiList[i].filename,"bin/defaults/isp/US") == 0) || (strcmp(xpiList[i].filename,"bin/defaults/isp") == 0))
if (((xpiList[i].filename).Find("isp")) != -1)
command = quotes + rootPath + "zip.exe" + quotes + "-m " + spaces + quotes +xpiArcDest + quotes + spaces + quotes + xpiList[i].filename + "/*.*" + quotes;
else
command = quotes + rootPath + "zip.exe" + quotes + "-m " + spaces + quotes +xpiArcDest + quotes + spaces + quotes + xpiList[i].filename + quotes;
@ -178,14 +183,25 @@ int ExtractJARFile(CString xpiname, CString jarname, CString xpifile)
ExtractXPIFile(xpiname, jarname);
CString command;
//We have to get rid of the bin/chrome/ and hence the delete.
jarname.Delete(0,11);
CString jarArchive;
if (curPlatform == "MacintoshOSX")
{
jarname.Replace("/","\\");
jarname.Insert(0,"\\");
jarArchive = tempPath + jarname;
}
else
{
//We have to get rid of the bin/chrome/ and hence the delete.
jarname.Delete(0,11);
jarArchive = tempPath + "\\bin\\chrome\\" + jarname;
}
if (findJAR(jarname, xpifile))
return TRUE;
// Can use -d instead of change CWD???
CString jarArchive = tempPath + "\\bin\\chrome\\" + jarname;
command = quotes +rootPath + "unzip.exe"+ quotes + "-o" + spaces + quotes + jarArchive + quotes + spaces + quotes + xpifile + quotes;
ExecuteCommand((char *)(LPCTSTR) command, SW_HIDE, INFINITE);
@ -202,7 +218,10 @@ int ReplaceJARFiles()
{
// This copy preserves the existing archive if it exists - do we
// need to delete it the first time through?
jarArchive = tempPath + "\\bin\\chrome\\" + jarList[i].jarname;
if (curPlatform == "MacintoshOSX")
jarArchive = tempPath + jarList[i].jarname;
else
jarArchive = tempPath + "\\bin\\chrome\\" + jarList[i].jarname;
command = quotes + rootPath + "zip.exe" + quotes + "-m " + spaces + quotes +jarArchive + quotes + spaces + quotes + jarList[i].filename + quotes;
ExecuteCommand((char *)(LPCTSTR) command, SW_HIDE, INFINITE);
@ -375,7 +394,6 @@ void AddPref(CString xpifile, CString entity, CString newvalue, BOOL bUseQuotes,
return;
}
int ModifyJS(CString xpifile, CString entity, CString newvalue, BOOL bLockPref)
{
@ -395,21 +413,16 @@ int ModifyJS(CString xpifile, CString entity, CString newvalue, BOOL bLockPref)
else
{
prefDoesntExist = TRUE;
int done = FALSE;
while (!done)
while (!feof(srcf))
{
fgetsrv = fgets(buffer, sizeof(buffer), srcf);
done = feof(srcf);
if (!done)
if (!fgetsrv || ferror(srcf))
{
if (!fgetsrv || ferror(srcf))
{
rv = FALSE;
break;
}
ModifyPref(buffer, entity, newvalue, bLockPref);
fputs(buffer, dstf);
rv = FALSE;
break;
}
ModifyPref(buffer, entity, newvalue, bLockPref);
fputs(buffer, dstf);
}
fclose(srcf);
@ -422,6 +435,7 @@ int ModifyJS(CString xpifile, CString entity, CString newvalue, BOOL bLockPref)
return TRUE;
}
void ModifyEntity(char *buffer, CString entity, CString newvalue)
{
CString buf(buffer);
@ -457,21 +471,16 @@ int ModifyDTD(CString xpifile, CString entity, CString newvalue)
rv = FALSE;
else
{
int done = FALSE;
while (!done)
while (!feof(srcf))
{
fgetsrv = fgets(buffer, sizeof(buffer), srcf);
done = feof(srcf);
if (!done)
if (!fgetsrv || ferror(srcf))
{
if (!fgetsrv || ferror(srcf))
{
rv = FALSE;
break;
}
ModifyEntity(buffer, entity, newvalue);
fputs(buffer, dstf);
rv = FALSE;
break;
}
ModifyEntity(buffer, entity, newvalue);
fputs(buffer, dstf);
}
fclose(srcf);
@ -526,21 +535,16 @@ int ModifyJS1(CString xpifile, CString entity, CString newvalue, BOOL bLockPref)
rv = FALSE;
else
{
int done = FALSE;
while (!done)
while (!feof(srcf))
{
fgetsrv = fgets(buffer, sizeof(buffer), srcf);
done = feof(srcf);
if (!done)
if (!fgetsrv || ferror(srcf))
{
if (!fgetsrv || ferror(srcf))
{
rv = FALSE;
break;
}
ModifyEntity1(buffer, entity, newvalue, bLockPref);
fputs(buffer, dstf);
rv = FALSE;
break;
}
ModifyEntity1(buffer, entity, newvalue, bLockPref);
fputs(buffer, dstf);
}
fclose(srcf);
@ -597,21 +601,16 @@ int ModifyJS2(CString xpifile, CString entity, CString newvalue, BOOL bLockPref)
else
{
prefDoesntExist = TRUE;
int done = FALSE;
while (!done)
while (!feof(srcf))
{
fgetsrv = fgets(buffer, sizeof(buffer), srcf);
done = feof(srcf);
if (!done)
if (!fgetsrv || ferror(srcf))
{
if (!fgetsrv || ferror(srcf))
{
rv = FALSE;
break;
}
ModifyEntity2(buffer, entity, newvalue, bLockPref);
fputs(buffer, dstf);
rv = FALSE;
break;
}
ModifyEntity2(buffer, entity, newvalue, bLockPref);
fputs(buffer, dstf);
}
fclose(srcf);
@ -1293,7 +1292,7 @@ int interpret(char *cmd)
else if (strcmp(cmdname, "processPrefsTree") == 0)
{
char *prefsTreeFile = strtok(NULL, ",)");
char *prefsTreeFile = strtok(NULL, ",)");
char *installFile = strtok(NULL, ",)");
char *prefFile = strtok(NULL, ",)");
CString fileWithPath = configPath + "\\" + prefsTreeFile;
@ -1799,6 +1798,26 @@ void CreateLinuxInstaller()
_chdir(currentdir);
}
void CreateMacZipFile()
// Creating a single customized Mac zip file which contains mac scripts
// and customized mac files
{
CString customizedZipFile = "CustomizedMacFiles.zip";
if (FileExists(customizedZipFile))
DeleteFile(customizedZipFile);
// Adding Mac scripts shipped with the tool to the final Mac zip file
CString command = quotes + rootPath + "zip.exe" + quotes + spaces + "-j" +
spaces + quotes + xpiDstPath + "\\" + customizedZipFile + quotes +
spaces + quotes + platformPath + "\\*.*" + quotes;
ExecuteCommand((char *)(LPCTSTR) command, SW_HIDE, INFINITE);
// Adding customized mac files created in output directory to the
// final Mac zip file
command = quotes + rootPath + "zip.exe" + quotes + spaces + "-jm" +
spaces + quotes + xpiDstPath + "\\" + customizedZipFile + quotes +
spaces + quotes + xpiDstPath + "\\*.*" + quotes;
ExecuteCommand((char *)(LPCTSTR) command, SW_HIDE, INFINITE);
}
void InsertComma(CString& requiredSpace)
{
int len = requiredSpace.GetLength();
@ -1883,7 +1902,8 @@ int StartIB(/*CString parms, WIDGET *curWidget*/)
configName = GetGlobal("_NewConfigName");
SetGlobal("CustomizationList", configName);
CString curVersion = GetGlobal("Version");
CString curPlatform = GetGlobal("lPlatform");
curPlatform = GetGlobal("lPlatform");
platformPath = rootPath+"Version\\"+curVersion+"\\"+curPlatform;
CString curLanguage = GetGlobal("Language");
CString localePath = rootPath+"Version\\"+curVersion+"\\"+curPlatform+"\\"+curLanguage;
configPath = rootPath + "Configs\\" + configName;
@ -1940,7 +1960,7 @@ int StartIB(/*CString parms, WIDGET *curWidget*/)
ULARGE_INTEGER nTotalBytes, nTotalFreeBytes, nTotalAvailable;
GetDiskFreeSpaceEx(NULL,&nTotalAvailable, &nTotalBytes, &nTotalFreeBytes);
// Checking for 26.3MB disk space
if (curPlatform != "Linux")
if (curPlatform == "Windows")
{
if ((nTotalAvailable.QuadPart) < WDISK_SPACE)
{
@ -1948,7 +1968,7 @@ int StartIB(/*CString parms, WIDGET *curWidget*/)
return FALSE;
}
}
else
else if (curPlatform == "Linux")
{
if ((nTotalAvailable.QuadPart) < LDISK_SPACE)
{
@ -1956,6 +1976,14 @@ int StartIB(/*CString parms, WIDGET *curWidget*/)
return FALSE;
}
}
else if (curPlatform == "MacintoshOSX")
{
if ((nTotalAvailable.QuadPart) < MDISK_SPACE)
{
DiskSpaceAlert(MDISK_SPACE,(nTotalAvailable.QuadPart));
return FALSE;
}
}
//Check for Disk space over
@ -2047,7 +2075,7 @@ int StartIB(/*CString parms, WIDGET *curWidget*/)
else
SetGlobal("SocksVersion","5");
if (cdDir.Compare("1") ==0)
if ((cdDir.Compare("1")==0) && (curPlatform.Compare("Windows")==0))
{
_mkdir((char *)(LPCTSTR) cdPath);
}
@ -2128,7 +2156,7 @@ int StartIB(/*CString parms, WIDGET *curWidget*/)
xpiDstPath + "\\" + Components[i].archive, TRUE);
}
if (curPlatform != "Linux")
if (curPlatform == "Windows")
{
if (cdDir.Compare("1") ==0)
{
@ -2146,19 +2174,19 @@ int StartIB(/*CString parms, WIDGET *curWidget*/)
exit( 3 );
fprintf(infout,"[autorun]\nopen = setup.exe");
}
}
CString component;
CString configiniPath = xpiDstPath +"\\config.ini";
if (ftpLocation.Compare("ftp://") !=0)
{
//**************** Change the ftp section to accomodate changes from PR3 to RTM
// for (int i=0; i<numComponents; i++)
// {
// if (Components[i].selected)
// CopyFile(nscpxpiPath + "\\" + Components[i].archive,
// networkPath + "\\" + Components[i].archive, TRUE);
//
CString component;
CString configiniPath = xpiDstPath +"\\config.ini";
if (ftpLocation.Compare("ftp://") !=0)
{
// Change the ftp section to accomodate changes from PR3 to RTM
// for (int i=0; i<numComponents; i++)
// {
// if (Components[i].selected)
// CopyFile(nscpxpiPath + "\\" + Components[i].archive,
// networkPath + "\\" + Components[i].archive, TRUE);
WritePrivateProfileString("General", "url", ftpLocation, configiniPath);
WritePrivateProfileString("Redirect", "Status", "Disabled", configiniPath);
WritePrivateProfileString("Site Selector", NULL, "", configiniPath);
@ -2173,29 +2201,26 @@ int StartIB(/*CString parms, WIDGET *curWidget*/)
else
WritePrivateProfileString("Dialog Advanced Settings",
"Use Protocol", "FTP", configiniPath);
// }
// }
}
invisible();
AddThirdParty();
ReplaceINIFile();
}
// Didn't work...
if (curPlatform == "Linux")
else if (curPlatform == "Linux")
{
LinuxInvisible();
AddThirdParty();
CreateLinuxInstaller();
}
else
else if (curPlatform == "MacintoshOSX")
{
invisible();
AddThirdParty();
ReplaceINIFile();
CreateMacZipFile();
}
SetCurrentDirectory(olddir);
CString TargetDir = GetGlobal("Root");
CString TargetFile = TargetDir + "wizardmachine.ini";

Просмотреть файл

@ -1,46 +1,45 @@
replaceXPI(chrdef.zip,chrome/classic.jar,skin/classic/global/animthrob.gif,%LargeAnimPath%)
replaceXPI(chrdef.zip,chrome/classic.jar,skin/classic/global/animthrob_single.gif,%LargeStillPath%)
replaceXPI(chrdef.zip,chrome/modern.jar,skin/modern/communicator/brand/throbber-anim.gif,%LargeAnimPath%)
replaceXPI(chrdef.zip,chrome/modern.jar,skin/modern/communicator/brand/throbber-single.gif,%LargeStillPath%)
replaceXPI(chrdef.zip,chrome/modern.jar,skin/modern/communicator/brand/throbber16-anim.gif,%LargeAnimPath%)
replaceXPI(chrdef.zip,chrome/modern.jar,skin/modern/communicator/brand/throbber16-single.gif,%LargeStillPath%)
replaceXPI(chrdef.zip,no.jar,defaults/profile/bookmarks.html,%CustomBookmarkFile%)
replaceXPI(chrdef.zip,no.jar,defaults/profile/US/bookmarks.html,%CustomBookmarkFile%)
replaceXPI(chrdef.zip,no.jar,defaults/profile/panels.rdf,%SidebarPath%)
replaceXPI(chrdef.zip,no.jar,defaults/profile/US/panels.rdf,%SidebarPath%)
replaceXPI(chrdef.zip,chrome/comm.jar,content/communicator/communicatorOverlay.xul,%HlpRDF%)
modifyDTD(chrdef.zip,chrome/en-US.jar,locale/en-US/navigator/navigator.dtd,mainWindow.titlemodifier,%CompanyName%)
modifyProperties(chrdef.zip,chrome/US.jar,locale/US/navigator-region/region.properties,browser.startup.homepage,%HomePageURL%)
modifyProperties(chrdef.zip,chrome/US.jar,locale/US/navigator-region/region.properties,browser.throbber.url,%AnimatedLogoURL%)
modifyProperties(chrdef.zip,chrome/US.jar,locale/US/editor-region/region-ns.properties,editor.throbber.url,%AnimatedLogoURL%)
modifyProperties(chrdef.zip,chrome/US.jar,locale/US/aim-region/region.properties,aim.throbber.url,%AnimatedLogoURL%)
modifyProperties(chrdef.zip,chrome/US.jar,locale/US/messenger-region/region-ns.properties,messenger.throbber.url,%AnimatedLogoURL%)
modifyProperties(chrdef.zip,chrome/US.jar,locale/US/messenger-region/region-ns.properties,compose.throbber.url,%AnimatedLogoURL%)
modifyProperties(chrdef.zip,chrome/US.jar,locale/US/messenger-region/region-ns.properties,addressbook.throbber.url,%AnimatedLogoURL%)
modifyDTD(chrdef.zip,chrome/en-US.jar,locale/en-US/aim/App.dtd,throbber.tooltip,%AnimatedLogoURL%)
modifyDTD(chrdef.zip,chrome/en-US.jar,locale/en-US/aim/chatContent.dtd,throbber.tooltip,%AnimatedLogoURL%)
modifyDTD(chrdef.zip,chrome/en-US.jar,locale/en-US/aim/IM.dtd,throbber.tooltip,%AnimatedLogoURL%)
modifyDTD(chrdef.zip,chrome/en-US.jar,locale/en-US/navigator/navigator.dtd,throbber.tooltip,%AnimatedLogoURL%)
modifyDTD(chrdef.zip,chrome/en-US.jar,locale/en-US/editor/editorOverlay.dtd,throbber.tooltip,%AnimatedLogoURL%)
modifyDTD(chrdef.zip,chrome/en-US.jar,locale/en-US/messenger/messenger.dtd,throbber.tooltip,%AnimatedLogoURL%)
modifyDTD(chrdef.zip,chrome/en-US.jar,locale/en-US/messenger/addressbook/abMainWindow.dtd,throbber.tooltip,%AnimatedLogoURL%)
modifyJS(chrdef.zip,no.jar,defaults/pref/all-ns.js,general.useragent.vendorComment,%OrganizationName%)
modifyJS1(chrdef.zip,no.jar,defaults/pref/all.js,network.proxy.ftp,%FTPproxyname%)
modifyJS1(chrdef.zip,no.jar,defaults/pref/all.js,network.proxy.gopher,%Gopherproxyname%)
modifyJS1(chrdef.zip,no.jar,defaults/pref/all.js,network.proxy.http,%HTTPproxyname%)
modifyJS1(chrdef.zip,no.jar,defaults/pref/all.js,network.proxy.ssl,%SSLproxyname%)
modifyJS1(chrdef.zip,no.jar,defaults/pref/all.js,network.proxy.socks,%SOCKShostname%)
modifyJS1(chrdef.zip,no.jar,defaults/pref/all.js,network.proxy.no_proxies_on,%NoProxyname%)
modifyJS1(chrdef.zip,no.jar,defaults/pref/all.js,network.proxy.autoconfig_url,%autoproxyurl%)
modifyJS2(chrdef.zip,no.jar,defaults/pref/all.js,network.proxy.type,%ProxyConfig%)
modifyJS2(chrdef.zip,no.jar,defaults/pref/all.js,network.proxy.ftp_port,%FTPportno%)
modifyJS2(chrdef.zip,no.jar,defaults/pref/all.js,network.proxy.gopher_port,%Gopherportno%)
modifyJS2(chrdef.zip,no.jar,defaults/pref/all.js,network.proxy.http_port,%HTTPportno%)
modifyJS2(chrdef.zip,no.jar,defaults/pref/all.js,network.proxy.ssl_port,%SSLportno%)
modifyJS2(chrdef.zip,no.jar,defaults/pref/all.js,network.proxy.socks_port,%SOCKSportno%)
modifyJS2(chrdef.zip,no.jar,defaults/pref/all.js,network.proxy.socks_version,%SocksVersion%)
addrdfFile(chrdef.zip,no.jar,defaults/isp,mailaccount.rdf,%IspRDF%)
addrdfFile(chrdef.zip,no.jar,defaults/isp/US,mailaccount.rdf,%IspRDF%)
addrdfFile(chrdef.zip,no.jar,defaults/isp,newsaccount.rdf,%NewsRDF%)
addrdfFile(chrdef.zip,no.jar,defaults/isp/US,newsaccount.rdf,%NewsRDF%)
replaceXPI(ChromeDefaults.zip,chrome/classic.jar,skin/classic/communicator/brand/throbber-anim.gif,%LargeAnimPath%)
replaceXPI(ChromeDefaults.zip,chrome/classic.jar,skin/classic/communicator/brand/throbber-single.gif,%LargeStillPath%)
replaceXPI(ChromeDefaults.zip,chrome/modern.jar,skin/modern/communicator/brand/throbber-anim.gif,%LargeAnimPath%)
replaceXPI(ChromeDefaults.zip,chrome/modern.jar,skin/modern/communicator/brand/throbber-single.gif,%LargeStillPath%)
replaceXPI(ChromeDefaults.zip,chrome/modern.jar,skin/modern/communicator/brand/throbber16-anim.gif,%LargeAnimPath%)
replaceXPI(ChromeDefaults.zip,chrome/modern.jar,skin/modern/communicator/brand/throbber16-single.gif,%LargeStillPath%)
replaceXPI(ChromeDefaults.zip,no.jar,defaults/profile/bookmarks.html,%CustomBookmarkFile%)
replaceXPI(ChromeDefaults.zip,no.jar,defaults/profile/US/bookmarks.html,%CustomBookmarkFile%)
replaceXPI(ChromeDefaults.zip,no.jar,defaults/profile/panels.rdf,%SidebarPath%)
replaceXPI(ChromeDefaults.zip,no.jar,defaults/profile/US/panels.rdf,%SidebarPath%)
replaceXPI(ChromeDefaults.zip,chrome/comm.jar,content/communicator/communicatorOverlay.xul,%HlpRDF%)
modifyDTD(ChromeDefaults.zip,chrome/en-US.jar,locale/en-US/navigator/navigator.dtd,mainWindow.titlemodifier,%CompanyName%)
modifyProperties(ChromeDefaults.zip,chrome/US.jar,locale/US/navigator-region/region.properties,browser.startup.homepage,%HomePageURL%)
modifyProperties(ChromeDefaults.zip,chrome/US.jar,locale/US/navigator-region/region.properties,browser.throbber.url,%AnimatedLogoURL%)
modifyProperties(ChromeDefaults.zip,chrome/US.jar,locale/US/aim-region/region.properties,aim.throbber.url,%AnimatedLogoURL%)
modifyProperties(ChromeDefaults.zip,chrome/US.jar,locale/US/messenger-region/region-ns.properties,messenger.throbber.url,%AnimatedLogoURL%)
modifyProperties(ChromeDefaults.zip,chrome/US.jar,locale/US/messenger-region/region-ns.properties,compose.throbber.url,%AnimatedLogoURL%)
modifyProperties(ChromeDefaults.zip,chrome/US.jar,locale/US/messenger-region/region-ns.properties,addressbook.throbber.url,%AnimatedLogoURL%)
modifyDTD(ChromeDefaults.zip,chrome/en-US.jar,locale/en-US/aim/App.dtd,throbber.tooltip,%AnimatedLogoURL%)
modifyDTD(ChromeDefaults.zip,chrome/en-US.jar,locale/en-US/aim/chatContent.dtd,throbber.tooltip,%AnimatedLogoURL%)
modifyDTD(ChromeDefaults.zip,chrome/en-US.jar,locale/en-US/aim/IM.dtd,throbber.tooltip,%AnimatedLogoURL%)
modifyDTD(ChromeDefaults.zip,chrome/en-US.jar,locale/en-US/navigator/navigator.dtd,throbber.tooltip,%AnimatedLogoURL%)
modifyDTD(ChromeDefaults.zip,chrome/en-US.jar,locale/en-US/editor/editorOverlay.dtd,throbber.tooltip,%AnimatedLogoURL%)
modifyDTD(ChromeDefaults.zip,chrome/en-US.jar,locale/en-US/messenger/messenger.dtd,throbber.tooltip,%AnimatedLogoURL%)
modifyDTD(ChromeDefaults.zip,chrome/en-US.jar,locale/en-US/messenger/addressbook/abMainWindow.dtd,throbber.tooltip,%AnimatedLogoURL%)
modifyJS(ChromeDefaults.zip,no.jar,defaults/pref/all-ns.js,general.useragent.vendorComment,%OrganizationName%)
modifyJS1(ChromeDefaults.zip,no.jar,defaults/pref/all.js,network.proxy.ftp,%FTPproxyname%)
modifyJS1(ChromeDefaults.zip,no.jar,defaults/pref/all.js,network.proxy.gopher,%Gopherproxyname%)
modifyJS1(ChromeDefaults.zip,no.jar,defaults/pref/all.js,network.proxy.http,%HTTPproxyname%)
modifyJS1(ChromeDefaults.zip,no.jar,defaults/pref/all.js,network.proxy.ssl,%SSLproxyname%)
modifyJS1(ChromeDefaults.zip,no.jar,defaults/pref/all.js,network.proxy.socks,%SOCKShostname%)
modifyJS1(ChromeDefaults.zip,no.jar,defaults/pref/all.js,network.proxy.no_proxies_on,%NoProxyname%)
modifyJS1(ChromeDefaults.zip,no.jar,defaults/pref/all.js,network.proxy.autoconfig_url,%autoproxyurl%)
modifyJS2(ChromeDefaults.zip,no.jar,defaults/pref/all.js,network.proxy.type,%ProxyConfig%)
modifyJS2(ChromeDefaults.zip,no.jar,defaults/pref/all.js,network.proxy.ftp_port,%FTPportno%)
modifyJS2(ChromeDefaults.zip,no.jar,defaults/pref/all.js,network.proxy.gopher_port,%Gopherportno%)
modifyJS2(ChromeDefaults.zip,no.jar,defaults/pref/all.js,network.proxy.http_port,%HTTPportno%)
modifyJS2(ChromeDefaults.zip,no.jar,defaults/pref/all.js,network.proxy.ssl_port,%SSLportno%)
modifyJS2(ChromeDefaults.zip,no.jar,defaults/pref/all.js,network.proxy.socks_port,%SOCKSportno%)
modifyJS2(ChromeDefaults.zip,no.jar,defaults/pref/all.js,network.proxy.socks_version,%SocksVersion%)
addrdfFile(ChromeDefaults.zip,no.jar,defaults/isp,mailaccount.rdf,%IspRDF%)
addrdfFile(ChromeDefaults.zip,no.jar,defaults/isp/US,mailaccount.rdf,%IspRDF%)
addrdfFile(ChromeDefaults.zip,no.jar,defaults/isp,newsaccount.rdf,%NewsRDF%)
addrdfFile(ChromeDefaults.zip,no.jar,defaults/isp/US,newsaccount.rdf,%NewsRDF%)