fix for 58849;copying readme file to setup location
git-svn-id: svn://10.0.0.236/trunk@82548 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
0e4ac5bba9
commit
844172522a
@ -162,7 +162,7 @@ int ReplaceJARFiles()
|
||||
|
||||
int ReplaceINIFile()
|
||||
{
|
||||
CString command1,command2;
|
||||
CString command1,command2,commandReadme;
|
||||
CString zipName("N6Setup.zip");
|
||||
CString exeName("N6Setup.exe");
|
||||
CString copyb = "copy /b ";
|
||||
@ -180,6 +180,14 @@ int ReplaceINIFile()
|
||||
// command = quotes + rootPath + "nszip.exe " + quotes + spaces + exeName + spaces + "config.ini";
|
||||
command1 = quotes + rootPath + "zip.exe" + quotes + "-m " + spaces + zipName + spaces + "config.ini";
|
||||
ExecuteCommand((char *)(LPCTSTR) command1, SW_SHOW, INFINITE);
|
||||
// Copy the Readme file to the core directory and insert it inside the N6Setup.zip**********
|
||||
CString readmePath = GetGlobal("ReadMeFile");
|
||||
CString replaceReadme = xpiDstPath + "\\Readme.txt";
|
||||
if (!CopyFile(readmePath, replaceReadme, FALSE))
|
||||
DWORD e = GetLastError();
|
||||
commandReadme = quotes + rootPath + "zip.exe" + quotes + "-m " + spaces + zipName + spaces + "Readme.txt";
|
||||
ExecuteCommand((char *)(LPCTSTR) commandReadme, SW_SHOW, INFINITE);
|
||||
// Finished copying readme and inserting into the zip**********
|
||||
command2 = copyb + quotes + rootPath + "unzipsfx.exe" + quotes + " + N6Setup.zip N6Setup.exe";
|
||||
// copy /b unzipsfx.exe+letters.zip letters.exe
|
||||
///////////////////////////////////////////////////////
|
||||
|
||||
@ -5,7 +5,6 @@ configure(GENERAL,Setup Title1 Font Color,%DefaultFontColor%)
|
||||
configure(GENERAL,Setup Title1 Font Shadow,%DefaultFontShadow%)
|
||||
configure(GENERAL,Setup Title2,%InstallerScreenText2%)
|
||||
configure(GENERAL,Program Folder Name,%ProgramFolderName%)
|
||||
configure(Dialog Setup Type,Readme Filename,%ReadMeFile%)
|
||||
replaceXPI(browser.xpi,no.jar,bin/chrome/packages/widget-toolkit/global/content/helpMenu.xul,%HlpXul%)
|
||||
replaceXPI(skinclas.xpi,bin/chrome/classic.jar,skin/classic/global/animthrob.gif,%LargeAnimPath%)
|
||||
replaceXPI(skinclas.xpi,bin/chrome/classic.jar,skin/classic/global/animthrob_single.gif,%LargeStillPath%)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user