I know there are a billion of the same threads out there and I have read most of them. They are almost all locked. I am very confused and have spent all day trying to change the splash by editing "FirefoxPortable.nsi" with NSIS which I'm not getting very far.
I'm asking for lame step-by-step instructions that a idiot could follow. Help would be greatly appreciated. 
You are here
Firefox Splash change
March 20, 2008 - 8:20pm
#1
Firefox Splash change
Is to leave the nsi the way it is and just change the picture. So if you go to the /FirefoxPortable/Other/Source folder and rename FirefoxPortable.jpg to FirefoxPortable1.jpg and your new Splash to FirefoxPortable.jpg it should work. All errors you get then are caused by something different like a missing plugin or else.
Hope that helps.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
That's the first thing I did, but it failed utterly, somehow the old splash appeared again. From all the other topics, they said to use NSIS to edit the .nsi. I really don't get this...
I use Notepad++ Portable and to compile the script into an exe I use NSIS Portable (its here in the beta forums). So basically thats the 2 programs you need.
If you only want to change the slpash, you only need to recompile the nsi-script.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
Okay, I use Notepad++ to compile the .nsi script into an .exe, right? then what do you need NSIS for?
No, you need NSIS to compile the script. Notepad++ is just a text editor.
The developer formerly known as ZGitRDun8705
Okay, how do you compile the script to an exe? I can't find that option anywhere.
1. Download and install NSIS, or download my NSIS Portable Development Test. If you use the NSIS Portable, you will not have to worry about missing plugins because I included all of the ones required for compiling Portable Apps.
2. Rename the original splash screen to anything (i.e. FirefoxPortable_old.jpg)
3. Move your new splash screen into the /Other/source/
4. Rename your new splash to FirefoxPortable.jpg
5. Open the NSIS menu and click the link for the compiler
6. Open the FirefoxPortable.nsi script with the compiler
7. Check out FirefoxPortable now using your new splash screen
The developer formerly known as ZGitRDun8705
doesn't work, and I already have NSIS with the plugin 'advsplash' In that case I'll try using the portable version...
EDIT: using the portable version doen't help either, does it have to do with the errors the compiler says?
What errors are you getting?
also, you need the 'newadvsplash' plugin, not 'advsplash'
here is a list of the plugins you will need for the local version. The Portable version already includes these.
The developer formerly known as ZGitRDun8705
i'm using the portable version and still i get errors...
What errors are you getting? Please copy/paste the contents of the error message here so we can more easily figure the problem out.
Also, just want to double check that you aren't trying to use the right-click on the .nsi file to compile, because this will only launch a local version, not the portable version.
The developer formerly known as ZGitRDun8705
You mean the log? It's big...
---------------------------------------- MakeNSIS v2.35 - Copyright 1995-2008 Contributors See the file COPYING for license details. Credits can be found in the Users Manual. Processing config: Processing plugin dlls: "H:\PortableApps\NSISPortable\App\NSIS\Plugins\*.dll" - AdvSplash::show - Banner::destroy - Banner::getWindow - Banner::show - BgImage::AddImage - BgImage::AddText - BgImage::Clear - BgImage::Destroy - BgImage::Redraw - BgImage::SetBg - BgImage::SetReturn - BgImage::Sound - Dialer::AttemptConnect - Dialer::AutodialHangup - Dialer::AutodialOnline - Dialer::AutodialUnattended - Dialer::GetConnectedState - FindProcDLL::FindProc - InstallOptions::dialog - InstallOptions::initDialog - InstallOptions::show - LangDLL::LangDialog - Math::Script - MoreInfo::GetComments - MoreInfo::GetCompanyName - MoreInfo::GetFileDescription - MoreInfo::GetFileVersion - MoreInfo::GetInternalName - MoreInfo::GetLegalCopyright - MoreInfo::GetLegalTrademarks - MoreInfo::GetOSUserinterfaceLanguage - MoreInfo::GetOriginalFilename - MoreInfo::GetPrivateBuild - MoreInfo::GetProductName - MoreInfo::GetProductVersion - MoreInfo::GetSpecialBuild - MoreInfo::GetUserDefined - NSISdl::download - NSISdl::download_quiet - Splash::show - StartMenu::Init - StartMenu::Select - StartMenu::Show - System::Alloc - System::Call - System::Copy - System::Free - System::Get - System::Int64Op - System::Store - TypeLib::GetLibVersion - TypeLib::Register - TypeLib::UnRegister - UserInfo::GetAccountType - UserInfo::GetName - UserInfo::GetOriginalAccountType - VPatch::vpatchfile - newadvsplash::hwnd - newadvsplash::play - newadvsplash::show - newadvsplash::stop - nsDialogs::Create - nsDialogs::CreateControl - nsDialogs::CreateItem - nsDialogs::GetUserData - nsDialogs::OnBack - nsDialogs::OnChange - nsDialogs::OnClick - nsDialogs::OnNotify - nsDialogs::SelectFileDialog - nsDialogs::SelectFolderDialog - nsDialogs::SetRTL - nsDialogs::SetUserData - nsDialogs::Show - nsExec::Exec - nsExec::ExecToLog - nsExec::ExecToStack - registry::_Close - registry::_CopyKey - registry::_CopyValue - registry::_CreateKey - registry::_DeleteKey - registry::_DeleteKeyEmpty - registry::_DeleteValue - registry::_Find - registry::_HexToStr - registry::_KeyExists - registry::_MoveKey - registry::_MoveValue - registry::_Open - registry::_Read - registry::_ReadExtra - registry::_RestoreKey - registry::_SaveKey - registry::_StrToHex - registry::_Unload - registry::_Write - registry::_WriteExtra !define: "MUI_INSERT_NSISCONF"="" Changing directory to: "H:\PortableApps\FirefoxPortable\Other\Source" Processing script file: "H:\PortableApps\FirefoxPortable\Other\Source\FirefoxPortable.nsi" !define: "PORTABLEAPPNAME"="Mozilla Firefox, Portable Edition" !define: "APPNAME"="Firefox" !define: "NAME"="FirefoxPortable" !define: "VER"="1.5.3.0" !define: "WEBSITE"="PortableApps.com/FirefoxPortable" !define: "DEFAULTEXE"="firefox.exe" !define: "DEFAULTAPPDIR"="firefox" Name: "Mozilla Firefox, Portable Edition" OutFile: "..\..\FirefoxPortable.exe" Caption: "Mozilla Firefox, Portable Edition | PortableApps.com" VIAddVersionKey: "ProductName" "Mozilla Firefox, Portable Edition" VIAddVersionKey: "Comments" "Allows Firefox to be run from a removable drive. For additional details, visit PortableApps.com/FirefoxPortable" VIAddVersionKey: "CompanyName" "PortableApps.com" VIAddVersionKey: "LegalCopyright" "John T. Haller, portions Gerard Balagué" VIAddVersionKey: "FileDescription" "Mozilla Firefox, Portable Edition" VIAddVersionKey: "FileVersion" "1.5.3.0" VIAddVersionKey: "ProductVersion" "1.5.3.0" VIAddVersionKey: "InternalName" "Mozilla Firefox, Portable Edition" VIAddVersionKey: "LegalTrademarks" "Firefox is a Trademark of The Mozilla Foundation. PortableApps.com is a Trademark of Rare Ideas, LLC." VIAddVersionKey: "OriginalFilename" "FirefoxPortable.exe" CRCCheck: On AutoCloseWindow: true SetCompress: Auto SetCompressor: /SOLID lzma SetCompressorDictSize: 32 mb SetDatablockOptimize: On !include: "Attrib.nsh" Function: "Attrib" Exch($1,0) Push: $2 Push: $3 FindFirst: spec="$1\*.*" handle=$2 output=$3 StrCmp "$3" "" equal=exitloop, nonequal= StrCmp "$3" "" equal=exitloop, nonequal= StrCmp "$3" "." equal=next, nonequal= StrCmp "$3" ".." equal=next, nonequal= IfFileExists: "$1\$3\*.*" ? 0 : +4 Push: $1\$3 Call "Attrib" Goto: next FindNext: handle=$2 output=$3 Goto: loop FindClose: $2 Pop: $3 Pop: $2 Pop: $1 FunctionEnd !include: closed: "Attrib.nsh" !include: "GetParameters.nsh" Function: "GetParameters" Push: $R0 Push: $R1 Push: $R2 Push: $R3 StrCpy $R2 "1" () () StrLen $R3 "$CMDLINE" StrCpy $R0 "$CMDLINE" ($R2) () StrCmp "$R0" """ equal=0, nonequal=+3 StrCpy $R1 """ () () Goto: loop StrCpy $R1 " " () () IntOp: $R2=$R2+1 StrCpy $R0 "$CMDLINE" (1) ($R2) StrCmp "$R0" "$R1" equal=get, nonequal= StrCmp "$R2" "$R3" equal=get, nonequal= Goto: loop IntOp: $R2=$R2+1 StrCpy $R0 "$CMDLINE" (1) ($R2) StrCmp "$R0" " " equal=get, nonequal= StrCpy $R0 "$CMDLINE" () ($R2) Pop: $R3 Pop: $R2 Pop: $R1 Exch($R0,0) FunctionEnd !include: closed: "GetParameters.nsh" !include: "H:\PortableApps\NSISPortable\App\NSIS\Include\MUI.nsh" !include: "H:\PortableApps\NSISPortable\App\NSIS\Contrib\Modern UI\System.nsh" NSIS Modern User Interface version 1.8 - © 2002-2008 Joost Verburg (H:\PortableApps\NSISPortable\App\NSIS\Contrib\Modern UI\System.nsh:8) !define: "MUI_INCLUDED"="" !define: "MUI_SYSVERSION"="1.8" !define: "MUI_VERBOSE"="3" !include: closed: "H:\PortableApps\NSISPortable\App\NSIS\Contrib\Modern UI\System.nsh" !include: closed: "H:\PortableApps\NSISPortable\App\NSIS\Include\MUI.nsh" !include: "GetParent.nsh" Function: "GetParent" Exch($R0,0) Push: $R1 Push: $R2 Push: $R3 StrCpy $R1 "0" () () StrLen $R2 "$R0" IntOp: $R1=$R1+1 IntCmp $R1:$R2 equal=get, get StrCpy $R3 "$R0" (1) (-$R1) StrCmp "$R3" "\" equal=get, nonequal= Goto: loop StrCpy $R0 "$R0" (-$R1) () Pop: $R3 Pop: $R2 Pop: $R1 Exch($R0,0) FunctionEnd !define: "GetParent"="!insertmacro "_GetParent"" !include: closed: "GetParent.nsh" !include: "H:\PortableApps\NSISPortable\App\NSIS\Include\Registry.nsh" !define: "registry::Open"="!insertmacro registry::Open" !define: "registry::Find"="!insertmacro registry::Find" !define: "registry::Close"="!insertmacro registry::Close" !define: "registry::KeyExists"="!insertmacro registry::KeyExists" !define: "registry::Read"="!insertmacro registry::Read" !define: "registry::Write"="!insertmacro registry::Write" !define: "registry::ReadExtra"="!insertmacro registry::ReadExtra" !define: "registry::WriteExtra"="!insertmacro registry::WriteExtra" !define: "registry::CreateKey"="!insertmacro registry::CreateKey" !define: "registry::DeleteValue"="!insertmacro registry::DeleteValue" !define: "registry::DeleteKey"="!insertmacro registry::DeleteKey" !define: "registry::DeleteKeyEmpty"="!insertmacro registry::DeleteKeyEmpty" !define: "registry::CopyValue"="!insertmacro registry::CopyValue" !define: "registry::MoveValue"="!insertmacro registry::MoveValue" !define: "registry::CopyKey"="!insertmacro registry::CopyKey" !define: "registry::MoveKey"="!insertmacro registry::MoveKey" !define: "registry::SaveKey"="!insertmacro registry::SaveKey" !define: "registry::RestoreKey"="!insertmacro registry::RestoreKey" !define: "registry::StrToHex"="!insertmacro registry::StrToHex" !define: "registry::HexToStr"="!insertmacro registry::HexToStr" !define: "registry::Unload"="!insertmacro registry::Unload" !include: closed: "H:\PortableApps\NSISPortable\App\NSIS\Include\Registry.nsh" !include: "ReplaceInFile.nsh" Function: "RIF" ClearErrors Exch($0,0) Exch(st(1),0) Exch($1,0) Exch(st(2),0) Exch($2,0) Push: $R0 Push: $R1 Push: $R2 Push: $R3 Push: $R4 IfFileExists: "$2" ? +1 : RIF_error FileOpen: $2 as r -> $R0 GetTempFileName -> $R2 FileOpen: $R2 as w -> $R1 FileRead: $R0->$R3 (max:) IfErrors ?RIF_leaveloop: Push: $R3 Push: $1 Push: $0 Call "StrReplace" StrCpy $R4 "$R3" () () Pop: $R3 StrCmp "$R3" "$R4" equal=+1, nonequal=RIF_sar FileWrite: $R3->$R1 Goto: RIF_loop FileClose: $R1 FileClose: $R0 Delete: "$2.old" Rename: $2->$2.old Rename: $R2->$2 ClearErrors Goto: RIF_out SetErrors Pop: $R4 Pop: $R3 Pop: $R2 Pop: $R1 Pop: $R0 Pop: $2 Pop: $0 Pop: $1 FunctionEnd !define: "ReplaceInFile"="!insertmacro "_ReplaceInFile"" !include: closed: "ReplaceInFile.nsh" !include: "StrRep.nsh" Var: "STR_REPLACE_VAR_0" Var: "STR_REPLACE_VAR_1" Var: "STR_REPLACE_VAR_2" Var: "STR_REPLACE_VAR_3" Var: "STR_REPLACE_VAR_4" Var: "STR_REPLACE_VAR_5" Var: "STR_REPLACE_VAR_6" Var: "STR_REPLACE_VAR_7" Var: "STR_REPLACE_VAR_8" Function: "StrReplace" Exch($STR_REPLACE_VAR_2,0) Exch(st(1),0) Exch($STR_REPLACE_VAR_1,0) Exch(st(2),0) Exch($STR_REPLACE_VAR_0,0) StrCpy $STR_REPLACE_VAR_3 "-1" () () StrLen $STR_REPLACE_VAR_4 "$STR_REPLACE_VAR_1" StrLen $STR_REPLACE_VAR_6 "$STR_REPLACE_VAR_0" IntOp: $STR_REPLACE_VAR_3=$STR_REPLACE_VAR_3+1 StrCpy $STR_REPLACE_VAR_5 "$STR_REPLACE_VAR_0" ($STR_REPLACE_VAR_4) ($STR_REPLACE_VAR_3) StrCmp "$STR_REPLACE_VAR_5" "$STR_REPLACE_VAR_1" equal=found, nonequal= StrCmp "$STR_REPLACE_VAR_3" "$STR_REPLACE_VAR_6" equal=done, nonequal= Goto: loop StrCpy $STR_REPLACE_VAR_5 "$STR_REPLACE_VAR_0" ($STR_REPLACE_VAR_3) () IntOp: $STR_REPLACE_VAR_8=$STR_REPLACE_VAR_3+$STR_REPLACE_VAR_4 StrCpy $STR_REPLACE_VAR_7 "$STR_REPLACE_VAR_0" () ($STR_REPLACE_VAR_8) StrCpy $STR_REPLACE_VAR_0 "$STR_REPLACE_VAR_5$STR_REPLACE_VAR_2$STR_REPLACE_VAR_7" () () StrLen $STR_REPLACE_VAR_6 "$STR_REPLACE_VAR_0" Goto: loop Pop: $STR_REPLACE_VAR_1 Pop: $STR_REPLACE_VAR_1 Exch($STR_REPLACE_VAR_0,0) FunctionEnd !define: "StrReplace"="!insertmacro "_strReplaceConstructor"" !include: closed: "StrRep.nsh" !include: "H:\PortableApps\NSISPortable\App\NSIS\Include\TextFunc.nsh" !define: "TEXTFUNC_INCLUDED"="" !include: "H:\PortableApps\NSISPortable\App\NSIS\Include\FileFunc.nsh" !define: "FILEFUNC_INCLUDED"="" !include: closed: "H:\PortableApps\NSISPortable\App\NSIS\Include\FileFunc.nsh" !include: closed: "H:\PortableApps\NSISPortable\App\NSIS\Include\TextFunc.nsh" !insertmacro: ConfigRead !insertmacro: end of ConfigRead !insertmacro: ConfigWrite !insertmacro: end of ConfigWrite Icon: "..\..\App\AppInfo\appicon.ico" !define: "MUI_ICON"="..\..\App\AppInfo\appicon.ico" BrandingText: "PortableApps.com - Your Digital Life, Anywhere™" MiscButtonText: back="" next="" cancel="" close="Continue" InstallButtonText: "Continue" !define: "MUI_LICENSEPAGE_RADIOBUTTONS"="" !insertmacro: MUI_PAGE_LICENSE !insertmacro: end of MUI_PAGE_LICENSE !insertmacro: MUI_PAGE_INSTFILES !insertmacro: end of MUI_PAGE_INSTFILES !insertmacro: MUI_LANGUAGE !insertmacro: end of MUI_LANGUAGE LangString: "LauncherFileNotFound" 1033 "Mozilla Firefox, Portable Edition cannot be started. You may wish to re-install to fix this issue. (ERROR: $MISSINGFILEORPATH could not be found)" LangString: "LauncherAlreadyRunning" 1033 "Another instance of Firefox is already running. Please close other instances of Firefox before launching Mozilla Firefox, Portable Edition." LangString: "LauncherAskCopyLocal" 1033 "Mozilla Firefox, Portable Edition appears to be running from a location that is read-only. Would you like to temporarily copy it to the local hard drive and run it from there? Privacy Note: If you say Yes, your personal data within Mozilla Firefox, Portable Edition will be temporarily copied to a local drive. Although this copy of your data will be deleted when you close Mozilla Firefox, Portable Edition, it may be possible for someone else to access your data later." LangString: "LauncherNoReadOnly" 1033 "Mozilla Firefox, Portable Edition can not run directly from a read-only location and will now close." Var: "PROGRAMDIRECTORY" Var: "PROFILEDIRECTORY" Var: "SETTINGSDIRECTORY" Var: "PLUGINSDIRECTORY" Var: "ADDITIONALPARAMETERS" Var: "ALLOWMULTIPLEINSTANCES" Var: "SKIPCHROMEFIX" Var: "SKIPCOMPREGFIX" Var: "EXECSTRING" Var: "PROGRAMEXECUTABLE" Var: "INIPATH" Var: "ISFILELINE" Var: "DISABLESPLASHSCREEN" Var: "DISABLEINTELLIGENTSTART" Var: "LOCALHOMEPAGE" Var: "ISDEFAULTDIRECTORY" Var: "RUNLOCALLY" Var: "WAITFORPROGRAM" Var: "LASTPROFILEDIRECTORY" Var: "APPDATAPATH" Var: "SECONDARYLAUNCH" Var: "SHOWLICENSE" Var: "MOZILLAORGKEYEXISTS" Var: "MISSINGFILEORPATH" Var: "CRASHREPORTSDIREXISTS" Function: ".onInit" Call "GetParameters" Pop: $0 StrCmp "$0" "SHOWLICENSE" equal=ShowLicense, nonequal=LicenseDone StrCpy $SHOWLICENSE "true" () () Goto: onInitDone SetSilent: silent Goto: onInitDone FunctionEnd Section: "Main" ReadEnvStr: APPDATA->$APPDATAPATH IfFileExists: "$EXEDIR\FirefoxPortable.ini" ? : NoINI StrCpy $INIPATH "$EXEDIR" () () ReadINIStr $0 [FirefoxPortable]:FirefoxDirectory from $INIPATH\FirefoxPortable.ini StrCpy $PROGRAMDIRECTORY "$EXEDIR\$0" () () ReadINIStr $0 [FirefoxPortable]:ProfileDirectory from $INIPATH\FirefoxPortable.ini StrCpy $PROFILEDIRECTORY "$EXEDIR\$0" () () ReadINIStr $0 [FirefoxPortable]:SettingsDirectory from $INIPATH\FirefoxPortable.ini StrCpy $SETTINGSDIRECTORY "$EXEDIR\$0" () () IfErrors ?NoINI: ReadINIStr $0 [FirefoxPortable]:PluginsDirectory from $INIPATH\FirefoxPortable.ini StrCpy $PLUGINSDIRECTORY "$EXEDIR\$0" () () ReadINIStr $0 [FirefoxPortable]:AdditionalParameters from $INIPATH\FirefoxPortable.ini StrCpy $ADDITIONALPARAMETERS "$0" () () ReadINIStr $0 [FirefoxPortable]:AllowMultipleInstances from $INIPATH\FirefoxPortable.ini StrCpy $ALLOWMULTIPLEINSTANCES "$0" () () ReadINIStr $0 [FirefoxPortable]:SkipChromeFix from $INIPATH\FirefoxPortable.ini StrCpy $SKIPCHROMEFIX "$0" () () ReadINIStr $0 [FirefoxPortable]:SkipCompregFix from $INIPATH\FirefoxPortable.ini StrCpy $SKIPCOMPREGFIX "$0" () () ReadINIStr $0 [FirefoxPortable]:FirefoxExecutable from $INIPATH\FirefoxPortable.ini StrCpy $PROGRAMEXECUTABLE "$0" () () ReadINIStr $0 [FirefoxPortable]:WaitForFirefox from $INIPATH\FirefoxPortable.ini StrCpy $WAITFORPROGRAM "$0" () () ReadINIStr $0 [FirefoxPortable]:DisableSplashScreen from $INIPATH\FirefoxPortable.ini StrCpy $DISABLESPLASHSCREEN "$0" () () ReadINIStr $0 [FirefoxPortable]:DisableIntelligentStart from $INIPATH\FirefoxPortable.ini StrCpy $DISABLEINTELLIGENTSTART "$0" () () ReadINIStr $0 [FirefoxPortable]:LocalHomepage from $INIPATH\FirefoxPortable.ini StrCpy $LOCALHOMEPAGE "$0" () () ReadINIStr $0 [FirefoxPortable]:RunLocally from $INIPATH\FirefoxPortable.ini StrCpy $RUNLOCALLY "$0" () () StrCmp "$RUNLOCALLY" "true" equal=, nonequal=CleanUpAnyErrors StrCpy $WAITFORPROGRAM "true" () () ClearErrors StrCmp "$PROGRAMDIRECTORY" "$EXEDIR\App\firefox" equal=, nonequal=EndINI StrCmp "$PROFILEDIRECTORY" "$EXEDIR\Data\profile" equal=, nonequal=EndINI StrCmp "$PLUGINSDIRECTORY" "$EXEDIR\Data\plugins" equal=, nonequal=EndINI StrCpy $SETTINGSDIRECTORY "$EXEDIR\Data\settings" () (EndINI) StrCpy $ISDEFAULTDIRECTORY "true" () () IfFileExists: "$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" ? FoundProgramEXE : NoProgramEXE StrCpy $ADDITIONALPARAMETERS "" () () StrCpy $ALLOWMULTIPLEINSTANCES "false" () () StrCpy $SKIPCHROMEFIX "false" () () StrCpy $SKIPCOMPREGFIX "false" () () StrCpy $WAITFORPROGRAM "false" () () StrCpy $PROGRAMEXECUTABLE "firefox.exe" () () StrCpy $DISABLESPLASHSCREEN "false" () () StrCpy $DISABLEINTELLIGENTSTART "false" () () IfFileExists: "$EXEDIR\App\firefox\firefox.exe" ? : CheckPortableProgramDIR StrCpy $PROGRAMDIRECTORY "$EXEDIR\App\firefox" () () StrCpy $PROFILEDIRECTORY "$EXEDIR\Data\profile" () () StrCpy $PLUGINSDIRECTORY "$EXEDIR\Data\plugins" () () StrCpy $SETTINGSDIRECTORY "$EXEDIR\Data\settings" () () StrCpy $ISDEFAULTDIRECTORY "true" () () Goto: FoundProgramEXE IfFileExists: "$EXEDIR\FirefoxPortable\App\firefox\firefox.exe" ? : NoProgramEXE StrCpy $PROGRAMDIRECTORY "$EXEDIR\FirefoxPortable\App\firefox" () () StrCpy $PROFILEDIRECTORY "$EXEDIR\FirefoxPortable\Data\profile" () () StrCpy $PLUGINSDIRECTORY "$EXEDIR\FirefoxPortable\Data\plugins" () () StrCpy $SETTINGSDIRECTORY "$EXEDIR\FirefoxPortable\Data\settings" () () Goto: FoundProgramEXE StrCpy $MISSINGFILEORPATH "$PROGRAMEXECUTABLE" () () MessageBox: 48: "$(LauncherFileNotFound)" Abort: "" IfFileExists: "$APPDATA\Mozilla\Firefox\*.*" ? CheckForCrashReports : StrCpy $WAITFORPROGRAM "true" () () !insertmacro: registry::KeyExists File: "registry.dll"->"$PLUGINSDIR\registry.dll" 16384 bytes Plugin Command: _KeyExists HKEY_CURRENT_USER\Software\mozilla.org Pop: $R0 !insertmacro: end of registry::KeyExists StrCmp "$R0" "-1" equal=CheckForCrashReports, nonequal= StrCpy $MOZILLAORGKEYEXISTS "true" () () IfFileExists: "$APPDATA\Mozilla\Firefox\Crash Reports\*.*" ? : CheckIfRunning StrCpy $CRASHREPORTSDIREXISTS "true" () () StrCmp "$ALLOWMULTIPLEINSTANCES" "true" equal=ProfileWork, nonequal= File: "FindProcDLL.dll"->"$PLUGINSDIR\FindProcDLL.dll" 31744 bytes Plugin Command: FindProc firefox.exe StrCmp "$R0" "1" equal=, nonequal=ProfileWork IfFileExists: "$PROFILEDIRECTORY\parent.lock" ? : WarnAnotherInstance StrCpy $SECONDARYLAUNCH "true" () () Goto: RunProgram MessageBox: 64: "$(LauncherAlreadyRunning)" Abort: "" IfFileExists: "$PROFILEDIRECTORY\prefs.js" ? ProfileFound : StrCmp "$ISDEFAULTDIRECTORY" "true" equal=CopyDefaultProfile, nonequal=CreateProfile CreateDirectory: "$EXEDIR\Data" CreateDirectory: "$EXEDIR\Data\plugins" CreateDirectory: "$EXEDIR\Data\profile" CreateDirectory: "$EXEDIR\Data\settings" CopyFiles: (silent) "$EXEDIR\App\DefaultData\plugins\*.*" -> "$EXEDIR\Data\plugins", size=0KB CopyFiles: (silent) "$EXEDIR\App\DefaultData\profile\*.*" -> "$EXEDIR\Data\profile", size=0KB Goto: ProfileFound IfFileExists: "$PROFILEDIRECTORY\*.*" ? ProfileFound : CreateDirectory: "$PROFILEDIRECTORY" IfFileExists: "$SETTINGSDIRECTORY\FirefoxPortableSettings.ini" ? SettingsFound : CreateDirectory: "$SETTINGSDIRECTORY" FileOpen: $SETTINGSDIRECTORY\FirefoxPortableSettings.ini as w -> $R0 FileClose: $R0 WriteINIStr: [FirefoxPortableSettings] LastProfileDirectory=NONE in $SETTINGSDIRECTORY\FirefoxPortableSettings.ini StrCmp "$SHOWLICENSE" "true" equal=, nonequal=CheckForLicense WriteINIStr: [FirefoxPortableSettings] AgreedToLicense=YES in $SETTINGSDIRECTORY\FirefoxPortableSettings.ini Goto: TheEnd ReadINIStr $0 [FirefoxPortableSettings]:AgreedToLicense from $SETTINGSDIRECTORY\FirefoxPortableSettings.ini StrCmp "$0" "YES" equal=LicenseAgreedTo, nonequal=RelaunchWithLicense Plugin Command: Call kernel32::GetModuleFileNameA(i 0, t .R0, i 1024) i r1 ExecWait: "$R0 SHOWLICENSE" (->) ReadINIStr $0 [FirefoxPortableSettings]:AgreedToLicense from $SETTINGSDIRECTORY\FirefoxPortableSettings.ini StrCmp "$0" "YES" equal=LicenseAgreedTo, nonequal=TheEnd StrCmp "$RUNLOCALLY" "true" equal=DisplaySplash, nonequal= ClearErrors FileOpen: $PROFILEDIRECTORY\writetest.temp as w -> $R0 IfErrors ?:WriteSuccessful MessageBox: 36: "$(LauncherAskCopyLocal)" (on IDYES goto SwitchToRunLocally) MessageBox: 64: "$(LauncherNoReadOnly)" Abort: "" StrCpy $RUNLOCALLY "true" () () Goto: DisplaySplash FileClose: $R0 Delete: "$PROFILEDIRECTORY\writetest.temp" StrCmp "$DISABLESPLASHSCREEN" "false" equal=SkipSplashScreen, nonequal= InitPluginsDir File: "FirefoxPortable.JPG"->"$PLUGINSDIR\splash.JPG" 35945 bytes File: "newadvsplash.dll"->"$PLUGINSDIR\newadvsplash.dll" 8704 bytes Plugin Command: show 2000 200 0 -1 /L $PLUGINSDIR\splash.JPG StrCmp "$RUNLOCALLY" "true" equal=, nonequal=CompareProfilePath RMDir: /r "$TEMP\FirefoxPortable\" CreateDirectory: "$TEMP\FirefoxPortable\profile" CreateDirectory: "$TEMP\FirefoxPortable\plugins" CreateDirectory: "$TEMP\FirefoxPortable\program" CopyFiles: (silent) "$PROFILEDIRECTORY\*.*" -> "$TEMP\FirefoxPortable\profile", size=0KB StrCpy $PROFILEDIRECTORY "$TEMP\FirefoxPortable\profile" () () CopyFiles: (silent) "$PLUGINSDIRECTORY\*.*" -> "$TEMP\FirefoxPortable\plugins", size=0KB StrCpy $PROFILEDIRECTORY "$TEMP\FirefoxPortable\profile" () () CopyFiles: (silent) "$PROGRAMDIRECTORY\*.*" -> "$TEMP\FirefoxPortable\program", size=0KB StrCpy $PROGRAMDIRECTORY "$TEMP\FirefoxPortable\program" () () Push: $TEMP\FirefoxPortable Call "Attrib" ReadINIStr $LASTPROFILEDIRECTORY [FirefoxPortableSettings]:LastProfileDirectory from $SETTINGSDIRECTORY\FirefoxPortableSettings.ini StrCmp "$PROFILEDIRECTORY" "$LASTPROFILEDIRECTORY" equal=, nonequal=AdjustChrome StrCmp "$DISABLEINTELLIGENTSTART" "true" equal=AdjustChrome, nonequal= StrCpy $SKIPCHROMEFIX "true" () () StrCpy $SKIPCOMPREGFIX "true" () () WriteINIStr: [FirefoxPortableSettings] LastProfileDirectory=$PROFILEDIRECTORY in $SETTINGSDIRECTORY\FirefoxPortableSettings.ini StrCmp "$SKIPCHROMEFIX" "true" equal=FixCalendarManager, nonequal= IfFileExists: "$PROFILEDIRECTORY\chrome\chrome.rdf" ? : FixCalendarManager FileOpen: $PROFILEDIRECTORY\chrome\chrome.rdf as r -> $0 FileOpen: $PROFILEDIRECTORY\chrome\chrome.rdf.new as w -> $R0 ClearErrors FileWrite: $4->$R0 FileRead: $0->$4 (max:) IfErrors ?NoMoreLines: StrCpy $5 "$4" (35) () StrCmp "$5" " c:baseURL="jar:f" equal=FoundJarLine, nonequal= StrCmp "$5" " c:baseURL="file:" equal=FoundFileLine, nonequal=NextLine StrCpy $R4 "40" () () StrCpy $ISFILELINE "0" () () Goto: NotYet StrCpy $R4 "40" () () StrCpy $ISFILELINE "1" () () IntOp: $R4=$R4+1 StrCpy $7 "$4" (10) ($R4) StrCmp "$7" "extensions" equal=PathFound, nonequal=NotYet StrCpy $5 "$4" () ($R4) StrCmp "$ISFILELINE" "0" equal=MakeJarLine, nonequal=MakeFileLine StrCpy $4 " c:baseURL="jar:file:///$PROFILEDIRECTORY/$5" () () Goto: NextLine StrCpy $4 " c:baseURL="file:///$PROFILEDIRECTORY/$5" () () Goto: NextLine FileClose: $0 FileClose: $R0 CopyFiles: (silent) "$PROFILEDIRECTORY\chrome\chrome.rdf" -> "$PROFILEDIRECTORY\chrome\chrome.rdf.old", size=0KB CopyFiles: (silent) "$PROFILEDIRECTORY\chrome\chrome.rdf.new" -> "$PROFILEDIRECTORY\chrome\chrome.rdf", size=0KB IfFileExists: "$PROFILEDIRECTORY\Calendar\CalendarManager.rdf" ? : FixPrefsJs FileOpen: $PROFILEDIRECTORY\Calendar\CalendarManager.rdf as r -> $0 FileOpen: $PROFILEDIRECTORY\Calendar\CalendarManager.rdf.new as w -> $R0 ClearErrors FileWrite: $4->$R0 FileRead: $0->$4 (max:) IfErrors ?CMNoMoreLines: StrCpy $5 "$4" (28) () StrCmp "$5" " NC:path="" equal=, nonequal=CMNextLine StrCpy $R4 "28" () () IntOp: $R4=$R4+1 StrCpy $7 "$4" (9) ($R4) StrCmp "$7" "Calendar\" equal=, nonequal=CMNotYet StrCpy $5 "$4" () ($R4) StrCpy $4 " NC:path="$PROFILEDIRECTORY\$5" () () Goto: CMNextLine FileClose: $0 FileClose: $R0 CopyFiles: (silent) "$PROFILEDIRECTORY\Calendar\CalendarManager.rdf" -> "$PROFILEDIRECTORY\Calendar\CalendarManager.rdf.old", size=0KB CopyFiles: (silent) "$PROFILEDIRECTORY\Calendar\CalendarManager.rdf.new" -> "$PROFILEDIRECTORY\Calendar\CalendarManager.rdf", size=0KB IfFileExists: "$PROFILEDIRECTORY\prefs.js" ? : FixMimeTypes StrCmp "$LASTPROFILEDIRECTORY" "NONE" equal=FixPrefsJsPart2, nonequal= StrCpy $2 "$LASTPROFILEDIRECTORY" (1) () StrCpy $3 "$PROFILEDIRECTORY" (1) () StrCmp "$2" "$3" equal=FixPrefsJsPart2, nonequal= !insertmacro: ConfigReadCall !insertmacro: end of ConfigReadCall !insertmacro: _strReplaceConstructor Push: $0 Push: file:///$2 Push: file:///$3 Call "StrReplace" Pop: $1 !insertmacro: end of _strReplaceConstructor !insertmacro: ConfigWriteCall !insertmacro: end of ConfigWriteCall !insertmacro: _ReplaceInFile Push: $PROFILEDIRECTORY\prefs.js Push: ", "$2:\\ Push: ", "$3:\\ Call "RIF" !insertmacro: end of _ReplaceInFile Delete: "$PROFILEDIRECTORY\prefs.js.old" FileOpen: $PROFILEDIRECTORY\prefs.js as a -> $0 FileSeek: fp=$0, ofs=0, mode=END, output= FileWriteByte: 13->$0 FileWriteByte: 10->$0 FileWrite: user_pref("browser.shell.checkDefaultBrowser", false);->$0 FileWriteByte: 13->$0 FileWriteByte: 10->$0 StrCmp "$LOCALHOMEPAGE" "" equal=FixPrefsJsClose, nonequal= FileWrite: user_pref("browser.startup.homepage", "file:///$EXEDIR/$LOCALHOMEPAGE");->$0 FileWriteByte: 13->$0 FileWriteByte: 10->$0 FileClose: $0 IfFileExists: "$PROFILEDIRECTORY\mimeTypes.rdf" ? : RunProgram StrCmp "$LASTPROFILEDIRECTORY" "NONE" equal=RunProgram, nonequal= Push: $LASTPROFILEDIRECTORY Call "GetParent" Call "GetParent" Call "GetParent" Pop: $0 StrCpy $0 "$0\" () () Push: $PROFILEDIRECTORY Call "GetParent" Call "GetParent" Call "GetParent" Pop: $1 StrCpy $1 "$1\" () () StrCmp "$0" "$1" equal=RunProgram, nonequal= !insertmacro: _ReplaceInFile Push: $PROFILEDIRECTORY\mimeTypes.rdf Push: $0 Push: $1 Call "RIF" !insertmacro: end of _ReplaceInFile Delete: "$PROFILEDIRECTORY\mimeTypes.rdf.old" StrCmp "$SKIPCOMPREGFIX" "true" equal=GetPassedParameters, nonequal= Delete: "$PROFILEDIRECTORY\compreg.dat" Call "GetParameters" Pop: $0 StrCmp "'$0'" "''" equal=, nonequal=LaunchProgramParameters StrCpy $EXECSTRING ""$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" -profile "$PROFILEDIRECTORY"" () () Goto: CheckMultipleInstances StrCpy $EXECSTRING ""$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" -profile "$PROFILEDIRECTORY" $0" () () StrCmp "$ALLOWMULTIPLEINSTANCES" "true" equal=, nonequal=AdditionalParameters Plugin Command: Call Kernel32::SetEnvironmentVariableA(t, t) i("MOZ_NO_REMOTE", "1").r0 StrCmp "$ADDITIONALPARAMETERS" "" equal=PluginsEnvironment, nonequal= StrCpy $EXECSTRING "$EXECSTRING $ADDITIONALPARAMETERS" () () StrCmp "$PLUGINSDIRECTORY" "" equal=LaunchNow, nonequal= IfFileExists: "$PLUGINSDIRECTORY\*.*" ? : LaunchNow Plugin Command: Call Kernel32::SetEnvironmentVariableA(t, t) i("MOZ_PLUGIN_PATH", "$PLUGINSDIRECTORY").r0 StrCmp "$SECONDARYLAUNCH" "true" equal=StartProgramAndExit, nonequal= StrCmp "$WAITFORPROGRAM" "true" equal=, nonequal=StartProgramAndExit ExecWait: "$EXECSTRING" (->) Sleep: 2000 ms StrCmp "$ALLOWMULTIPLEINSTANCES" "true" equal=CheckIfRemoveLocalFiles, nonequal= Plugin Command: FindProc firefox.exe StrCmp "$R0" "1" equal=CheckRunning, nonequal=CleanupRunLocally Exec: "$EXECSTRING" (->) Goto: TheEnd StrCmp "$RUNLOCALLY" "true" equal=, nonequal=CheckIfRemoveLocalFiles RMDir: /r "$TEMP\FirefoxPortable\" Plugin Command: FindProc firefox.exe Pop: $R0 StrCmp "$R0" "1" equal=TheEnd, nonequal=RemoveLocalFiles StrCmp "$CRASHREPORTSDIREXISTS" "true" equal=RemoveLocalFiles2, nonequal= RMDir: /r "$APPDATA\Mozilla\Firefox\Crash Reports\" Delete: "$APPDATA\Mozilla\Firefox\pluginreg.dat" RMDir: "$APPDATA\Mozilla\Firefox\" RMDir: "$APPDATA\Mozilla\" StrCmp "$MOZILLAORGKEYEXISTS" "true" equal=TheEnd, nonequal= !insertmacro: registry::DeleteKey File: "registry.dll"->"$PLUGINSDIR\registry.dll" 0/16384 bytes Plugin Command: _DeleteKey HKEY_CURRENT_USER\Software\mozilla.org Pop: $R0 !insertmacro: end of registry::DeleteKey !insertmacro: registry::Unload File: "registry.dll"->"$PLUGINSDIR\registry.dll" 0/16384 bytes Plugin Command: _Unload !insertmacro: end of registry::Unload Invalid command: newadvsplash::wait Error in script "H:\PortableApps\FirefoxPortable\Other\Source\FirefoxPortable.nsi" on line 556 -- aborting creation process[Pre tags added by mod SL]
Can a moderator edit this and put it in <pre> tags?
The error is because FirefoxPortable was released before the newest 'newadvsplash' plugin was released. You need to change line 556 of the script to be 'newadvsplash::stop /WAIT' without the quotes.
The developer formerly known as ZGitRDun8705
YES!!!! FINALLY!!!! it works, thanks so much! :lol:
And yeah, the log is a bit huge...
yup...next time you post something long like that, enclose it in <pre> [long message]</pre>
glad I could help
The developer formerly known as ZGitRDun8705
i got an error as well while trying this NSIS
at line 219
p/s : im so new with NSIS, follow direction blindly
you post the error message?
Its easier that way.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
can i just post the whole error log?
i dont know the exact line..
you can.
Just make sure you put it in <pre>yourtext</pre> tags.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
big one
MakeNSIS v2.36 - Copyright 1995-2008 Contributors See the file COPYING for license details. Credits can be found in the Users Manual. Processing config: Processing plugin dlls: "F:\Portable Applications\NSIS 2.60\NSISPortable\App\NSIS\Plugins\*.dll" - AdvSplash::show - Banner::destroy - Banner::getWindow - Banner::show - BgImage::AddImage - BgImage::AddText - BgImage::Clear - BgImage::Destroy - BgImage::Redraw - BgImage::SetBg - BgImage::SetReturn - BgImage::Sound - Dialer::AttemptConnect - Dialer::AutodialHangup - Dialer::AutodialOnline - Dialer::AutodialUnattended - Dialer::GetConnectedState - InstallOptions::dialog - InstallOptions::initDialog - InstallOptions::show - LangDLL::LangDialog - Math::Script - NSISdl::download - NSISdl::download_quiet - Splash::show - StartMenu::Init - StartMenu::Select - StartMenu::Show - System::Alloc - System::Call - System::Copy - System::Free - System::Get - System::Int64Op - System::Store - TypeLib::GetLibVersion - TypeLib::Register - TypeLib::UnRegister - UserInfo::GetAccountType - UserInfo::GetName - UserInfo::GetOriginalAccountType - VPatch::GetFileCRC32 - VPatch::GetFileMD5 - VPatch::vpatchfile - nsDialogs::Create - nsDialogs::CreateControl - nsDialogs::CreateItem - nsDialogs::GetUserData - nsDialogs::OnBack - nsDialogs::OnChange - nsDialogs::OnClick - nsDialogs::OnNotify - nsDialogs::SelectFileDialog - nsDialogs::SelectFolderDialog - nsDialogs::SetRTL - nsDialogs::SetUserData - nsDialogs::Show - nsExec::Exec - nsExec::ExecToLog - nsExec::ExecToStack PluginDir: "F:\Portable Applications\NSIS 2.60\NSISPortable\App\NSIS\..\..\Data\Plugins" - FindProcDLL::FindProc - MoreInfo::GetComments - MoreInfo::GetCompanyName - MoreInfo::GetFileDescription - MoreInfo::GetFileVersion - MoreInfo::GetInternalName - MoreInfo::GetLegalCopyright - MoreInfo::GetLegalTrademarks - MoreInfo::GetOSUserinterfaceLanguage - MoreInfo::GetOriginalFilename - MoreInfo::GetPrivateBuild - MoreInfo::GetProductName - MoreInfo::GetProductVersion - MoreInfo::GetSpecialBuild - MoreInfo::GetUserDefined - newadvsplash::hwnd - newadvsplash::play - newadvsplash::show - newadvsplash::stop - registry::_Close - registry::_CopyKey - registry::_CopyValue - registry::_CreateKey - registry::_DeleteKey - registry::_DeleteKeyEmpty - registry::_DeleteValue - registry::_Find - registry::_HexToStr - registry::_KeyExists - registry::_MoveKey - registry::_MoveValue - registry::_Open - registry::_Read - registry::_ReadExtra - registry::_RestoreKey - registry::_SaveKey - registry::_StrToHex - registry::_Unload - registry::_Write - registry::_WriteExtra !define: "MUI_INSERT_NSISCONF"="" Changing directory to: "F:\Portable Applications\FirefoxPortable\Other\FirefoxPortableSource" Processing script file: "F:\Portable Applications\FirefoxPortable\Other\FirefoxPortableSource\FirefoxPortable.nsi" !define: "LONGNAME"="Mozilla Firefox, Portable Edition" !define: "FULLNAME"="Firefox Portable" !define: "NAME"="FirefoxPortable" !define: "APP"="Firefox" !define: "VER"="1.4.2.0" !define: "WEBSITE"="PortableApps.com/FirefoxPortable" !define: "DEFAULTEXE"="firefox.exe" !define: "DEFAULTAPPDIR"="firefox" Name: "Mozilla Firefox, Portable Edition" OutFile: "FirefoxPortable.exe" Caption: "Mozilla Firefox, Portable Edition | PortableApps.com" VIAddVersionKey: "ProductName" "Mozilla Firefox, Portable Edition" VIAddVersionKey: "Comments" "Allows Firefox to be run from a removable drive. For additional details, visit PortableApps.com/FirefoxPortable" VIAddVersionKey: "CompanyName" "PortableApps.com" VIAddVersionKey: "LegalCopyright" "John T. Haller, portions Gerard Balagué" VIAddVersionKey: "FileDescription" "Mozilla Firefox, Portable Edition" VIAddVersionKey: "FileVersion" "1.4.2.0" VIAddVersionKey: "ProductVersion" "1.4.2.0" VIAddVersionKey: "InternalName" "Mozilla Firefox, Portable Edition" VIAddVersionKey: "LegalTrademarks" "Firefox is a Trademark of The Mozilla Foundation. PortableApps.com is a Trademark of Rare Ideas, LLC." VIAddVersionKey: "OriginalFilename" "FirefoxPortable.exe" CRCCheck: On AutoCloseWindow: true !include: "Attrib.nsh" Function: "Attrib" Exch($1,0) Push: $2 Push: $3 FindFirst: spec="$1\*.*" handle=$2 output=$3 StrCmp "$3" "" equal=exitloop, nonequal= StrCmp "$3" "" equal=exitloop, nonequal= StrCmp "$3" "." equal=next, nonequal= StrCmp "$3" ".." equal=next, nonequal= IfFileExists: "$1\$3\*.*" ? 0 : +4 Push: $1\$3 Call "Attrib" Goto: next FindNext: handle=$2 output=$3 Goto: loop FindClose: $2 Pop: $3 Pop: $2 Pop: $1 FunctionEnd !include: closed: "Attrib.nsh" !include: "GetParameters.nsh" Function: "GetParameters" Push: $R0 Push: $R1 Push: $R2 Push: $R3 StrCpy $R2 "1" () () StrLen $R3 "$CMDLINE" StrCpy $R0 "$CMDLINE" ($R2) () StrCmp "$R0" """ equal=0, nonequal=+3 StrCpy $R1 """ () () Goto: loop StrCpy $R1 " " () () IntOp: $R2=$R2+1 StrCpy $R0 "$CMDLINE" (1) ($R2) StrCmp "$R0" "$R1" equal=get, nonequal= StrCmp "$R2" "$R3" equal=get, nonequal= Goto: loop IntOp: $R2=$R2+1 StrCpy $R0 "$CMDLINE" (1) ($R2) StrCmp "$R0" " " equal=get, nonequal= StrCpy $R0 "$CMDLINE" () ($R2) Pop: $R3 Pop: $R2 Pop: $R1 Exch($R0,0) FunctionEnd !include: closed: "GetParameters.nsh" !include: "F:\Portable Applications\NSIS 2.60\NSISPortable\App\NSIS\Include\MUI.nsh" !include: "F:\Portable Applications\NSIS 2.60\NSISPortable\App\NSIS\Contrib\Modern UI\System.nsh" NSIS Modern User Interface version 1.8 - © 2002-2008 Joost Verburg (F:\Portable Applications\NSIS 2.60\NSISPortable\App\NSIS\Contrib\Modern UI\System.nsh:8) !define: "MUI_INCLUDED"="" !define: "MUI_SYSVERSION"="1.8" !define: "MUI_VERBOSE"="3" !include: closed: "F:\Portable Applications\NSIS 2.60\NSISPortable\App\NSIS\Contrib\Modern UI\System.nsh" !include: closed: "F:\Portable Applications\NSIS 2.60\NSISPortable\App\NSIS\Include\MUI.nsh" !include: "GetParent.nsh" Function: "GetParent" Exch($R0,0) Push: $R1 Push: $R2 Push: $R3 StrCpy $R1 "0" () () StrLen $R2 "$R0" IntOp: $R1=$R1+1 IntCmp $R1:$R2 equal=get, get StrCpy $R3 "$R0" (1) (-$R1) StrCmp "$R3" "\" equal=get, nonequal= Goto: loop StrCpy $R0 "$R0" (-$R1) () Pop: $R3 Pop: $R2 Pop: $R1 Exch($R0,0) FunctionEnd !define: "GetParent"="!insertmacro "_GetParent"" !include: closed: "GetParent.nsh" !include: "ReplaceInFile.nsh" Function: "RIF" ClearErrors Exch($0,0) Exch(st(1),0) Exch($1,0) Exch(st(2),0) Exch($2,0) Push: $R0 Push: $R1 Push: $R2 Push: $R3 Push: $R4 IfFileExists: "$2" ? +1 : RIF_error FileOpen: $2 as r -> $R0 GetTempFileName -> $R2 FileOpen: $R2 as w -> $R1 FileRead: $R0->$R3 (max:) IfErrors ?RIF_leaveloop: Push: $R3 Push: $1 Push: $0 Call "StrReplace" StrCpy $R4 "$R3" () () Pop: $R3 StrCmp "$R3" "$R4" equal=+1, nonequal=RIF_sar FileWrite: $R3->$R1 Goto: RIF_loop FileClose: $R1 FileClose: $R0 Delete: "$2.old" Rename: $2->$2.old Rename: $R2->$2 ClearErrors Goto: RIF_out SetErrors Pop: $R4 Pop: $R3 Pop: $R2 Pop: $R1 Pop: $R0 Pop: $2 Pop: $0 Pop: $1 FunctionEnd !define: "ReplaceInFile"="!insertmacro "_ReplaceInFile"" !include: closed: "ReplaceInFile.nsh" !include: "StrRep.nsh" Var: "STR_REPLACE_VAR_0" Var: "STR_REPLACE_VAR_1" Var: "STR_REPLACE_VAR_2" Var: "STR_REPLACE_VAR_3" Var: "STR_REPLACE_VAR_4" Var: "STR_REPLACE_VAR_5" Var: "STR_REPLACE_VAR_6" Var: "STR_REPLACE_VAR_7" Var: "STR_REPLACE_VAR_8" Function: "StrReplace" Exch($STR_REPLACE_VAR_2,0) Exch(st(1),0) Exch($STR_REPLACE_VAR_1,0) Exch(st(2),0) Exch($STR_REPLACE_VAR_0,0) StrCpy $STR_REPLACE_VAR_3 "-1" () () StrLen $STR_REPLACE_VAR_4 "$STR_REPLACE_VAR_1" StrLen $STR_REPLACE_VAR_6 "$STR_REPLACE_VAR_0" IntOp: $STR_REPLACE_VAR_3=$STR_REPLACE_VAR_3+1 StrCpy $STR_REPLACE_VAR_5 "$STR_REPLACE_VAR_0" ($STR_REPLACE_VAR_4) ($STR_REPLACE_VAR_3) StrCmp "$STR_REPLACE_VAR_5" "$STR_REPLACE_VAR_1" equal=found, nonequal= StrCmp "$STR_REPLACE_VAR_3" "$STR_REPLACE_VAR_6" equal=done, nonequal= Goto: loop StrCpy $STR_REPLACE_VAR_5 "$STR_REPLACE_VAR_0" ($STR_REPLACE_VAR_3) () IntOp: $STR_REPLACE_VAR_8=$STR_REPLACE_VAR_3+$STR_REPLACE_VAR_4 StrCpy $STR_REPLACE_VAR_7 "$STR_REPLACE_VAR_0" () ($STR_REPLACE_VAR_8) StrCpy $STR_REPLACE_VAR_0 "$STR_REPLACE_VAR_5$STR_REPLACE_VAR_2$STR_REPLACE_VAR_7" () () StrLen $STR_REPLACE_VAR_6 "$STR_REPLACE_VAR_0" Goto: loop Pop: $STR_REPLACE_VAR_1 Pop: $STR_REPLACE_VAR_1 Exch($STR_REPLACE_VAR_0,0) FunctionEnd !define: "StrReplace"="!insertmacro "_strReplaceConstructor"" !include: closed: "StrRep.nsh" Icon: "FirefoxPortable.ico" !define: "MUI_ICON"="FirefoxPortable.ico" BrandingText: "PortableApps.com - Your Digital Life, Anywhere™" MiscButtonText: back="" next="" cancel="" close="Continue" InstallButtonText: "Continue" !define: "MUI_LICENSEPAGE_RADIOBUTTONS"="" !insertmacro: MUI_PAGE_LICENSE !insertmacro: end of MUI_PAGE_LICENSE !insertmacro: MUI_PAGE_INSTFILES !insertmacro: end of MUI_PAGE_INSTFILES !insertmacro: MUI_LANGUAGE !insertmacro: end of MUI_LANGUAGE Var: "PROGRAMDIRECTORY" Var: "PROFILEDIRECTORY" Var: "SETTINGSDIRECTORY" Var: "PLUGINSDIRECTORY" Var: "ADDITIONALPARAMETERS" Var: "ALLOWMULTIPLEINSTANCES" Var: "SKIPCHROMEFIX" Var: "SKIPCOMPREGFIX" Var: "EXECSTRING" Var: "PROGRAMEXECUTABLE" Var: "INIPATH" Var: "ISFILELINE" Var: "DISABLESPLASHSCREEN" Var: "DISABLEINTELLIGENTSTART" Var: "LOCALHOMEPAGE" Var: "ISDEFAULTDIRECTORY" Var: "RUNLOCALLY" Var: "WAITFORPROGRAM" Var: "LASTPROFILEDIRECTORY" Var: "APPDATAPATH" Var: "SECONDARYLAUNCH" Var: "SHOWLICENSE" Function: ".onInit" Call "GetParameters" Pop: $0 StrCmp "$0" "SHOWLICENSE" equal=ShowLicense, nonequal=LicenseDone StrCpy $SHOWLICENSE "true" () () Goto: onInitDone SetSilent: silent Goto: onInitDone FunctionEnd Section: "Main" ReadEnvStr: APPDATA->$APPDATAPATH IfFileExists: "$EXEDIR\FirefoxPortable.ini" ? : NoINI StrCpy $INIPATH "$EXEDIR" () () ReadINIStr $0 [FirefoxPortable]:FirefoxDirectory from $INIPATH\FirefoxPortable.ini StrCpy $PROGRAMDIRECTORY "$EXEDIR\$0" () () ReadINIStr $0 [FirefoxPortable]:ProfileDirectory from $INIPATH\FirefoxPortable.ini StrCpy $PROFILEDIRECTORY "$EXEDIR\$0" () () ReadINIStr $0 [FirefoxPortable]:SettingsDirectory from $INIPATH\FirefoxPortable.ini StrCpy $SETTINGSDIRECTORY "$EXEDIR\$0" () () IfErrors ?NoINI: ReadINIStr $0 [FirefoxPortable]:PluginsDirectory from $INIPATH\FirefoxPortable.ini StrCpy $PLUGINSDIRECTORY "$EXEDIR\$0" () () ReadINIStr $0 [FirefoxPortable]:AdditionalParameters from $INIPATH\FirefoxPortable.ini StrCpy $ADDITIONALPARAMETERS "$0" () () ReadINIStr $0 [FirefoxPortable]:AllowMultipleInstances from $INIPATH\FirefoxPortable.ini StrCpy $ALLOWMULTIPLEINSTANCES "$0" () () ReadINIStr $0 [FirefoxPortable]:SkipChromeFix from $INIPATH\FirefoxPortable.ini StrCpy $SKIPCHROMEFIX "$0" () () ReadINIStr $0 [FirefoxPortable]:SkipCompregFix from $INIPATH\FirefoxPortable.ini StrCpy $SKIPCOMPREGFIX "$0" () () ReadINIStr $0 [FirefoxPortable]:FirefoxExecutable from $INIPATH\FirefoxPortable.ini StrCpy $PROGRAMEXECUTABLE "$0" () () ReadINIStr $0 [FirefoxPortable]:WaitForFirefox from $INIPATH\FirefoxPortable.ini StrCpy $WAITFORPROGRAM "$0" () () ReadINIStr $0 [FirefoxPortable]:DisableSplashScreen from $INIPATH\FirefoxPortable.ini StrCpy $DISABLESPLASHSCREEN "$0" () () ReadINIStr $0 [FirefoxPortable]:DisableIntelligentStart from $INIPATH\FirefoxPortable.ini StrCpy $DISABLEINTELLIGENTSTART "$0" () () ReadINIStr $0 [FirefoxPortable]:LocalHomepage from $INIPATH\FirefoxPortable.ini StrCpy $LOCALHOMEPAGE "$0" () () ReadINIStr $0 [FirefoxPortable]:RunLocally from $INIPATH\FirefoxPortable.ini StrCpy $RUNLOCALLY "$0" () () StrCmp "$RUNLOCALLY" "true" equal=, nonequal=CleanUpAnyErrors StrCpy $WAITFORPROGRAM "true" () () ClearErrors StrCmp "$PROGRAMDIRECTORY" "$EXEDIR\App\firefox" equal=, nonequal=EndINI StrCmp "$PROFILEDIRECTORY" "$EXEDIR\Data\profile" equal=, nonequal=EndINI StrCmp "$PLUGINSDIRECTORY" "$EXEDIR\Data\plugins" equal=, nonequal=EndINI StrCpy $SETTINGSDIRECTORY "$EXEDIR\Data\settings" () (EndINI) StrCpy $ISDEFAULTDIRECTORY "true" () () IfFileExists: "$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" ? FoundProgramEXE : NoProgramEXE StrCpy $ADDITIONALPARAMETERS "" () () StrCpy $ALLOWMULTIPLEINSTANCES "false" () () StrCpy $SKIPCHROMEFIX "false" () () StrCpy $SKIPCOMPREGFIX "false" () () StrCpy $WAITFORPROGRAM "false" () () StrCpy $PROGRAMEXECUTABLE "firefox.exe" () () StrCpy $DISABLESPLASHSCREEN "false" () () StrCpy $DISABLEINTELLIGENTSTART "false" () () IfFileExists: "$EXEDIR\App\firefox\firefox.exe" ? : CheckPortableProgramDIR StrCpy $PROGRAMDIRECTORY "$EXEDIR\App\firefox" () () StrCpy $PROFILEDIRECTORY "$EXEDIR\Data\profile" () () StrCpy $PLUGINSDIRECTORY "$EXEDIR\Data\plugins" () () StrCpy $SETTINGSDIRECTORY "$EXEDIR\Data\settings" () () StrCpy $ISDEFAULTDIRECTORY "true" () () Goto: FoundProgramEXE IfFileExists: "$EXEDIR\FirefoxPortable\App\firefox\firefox.exe" ? : NoProgramEXE StrCpy $PROGRAMDIRECTORY "$EXEDIR\FirefoxPortable\App\firefox" () () StrCpy $PROFILEDIRECTORY "$EXEDIR\FirefoxPortable\Data\profile" () () StrCpy $PLUGINSDIRECTORY "$EXEDIR\FirefoxPortable\Data\plugins" () () StrCpy $SETTINGSDIRECTORY "$EXEDIR\FirefoxPortable\Data\settings" () () Goto: FoundProgramEXE MessageBox: 48: "$PROGRAMEXECUTABLE was not found. Please check your configuration" Abort: "" IfFileExists: "$APPDATA\Mozilla\Firefox\*.*" ? CheckIfRunning : StrCpy $WAITFORPROGRAM "true" () () StrCmp "$ALLOWMULTIPLEINSTANCES" "true" equal=ProfileWork, nonequal= File: "FindProcDLL.dll"->"$PLUGINSDIR\FindProcDLL.dll" [compress] 13827/31744 bytes Plugin Command: FindProc firefox.exe StrCmp "$R0" "1" equal=, nonequal=ProfileWork IfFileExists: "$PROFILEDIRECTORY\parent.lock" ? : WarnAnotherInstance StrCpy $SECONDARYLAUNCH "true" () () Goto: RunProgram MessageBox: 64: "Another instance of Firefox is already running. Please close other instances of Firefox before launching Mozilla Firefox, Portable Edition." Abort: "" IfFileExists: "$PROFILEDIRECTORY\prefs.js" ? ProfileFound : StrCmp "$ISDEFAULTDIRECTORY" "true" equal=CopyDefaultProfile, nonequal= MessageBox: 36: "No profile was found. Create a new profile here? $PROFILEDIRECTORY\" (on IDYES goto CreateProfile) MessageBox: 64: "FirefoxPortable can not run without a profile directory. Please check your configuration." Abort: "" CreateDirectory: "$EXEDIR\Data" CreateDirectory: "$EXEDIR\Data\plugins" CreateDirectory: "$EXEDIR\Data\profile" CreateDirectory: "$EXEDIR\Data\settings" CopyFiles: (silent) "$EXEDIR\App\DefaultData\plugins\*.*" -> "$EXEDIR\Data\plugins", size=0KB CopyFiles: (silent) "$EXEDIR\App\DefaultData\profile\*.*" -> "$EXEDIR\Data\profile", size=0KB Goto: ProfileFound IfFileExists: "$PROFILEDIRECTORY\*.*" ? ProfileFound : CreateDirectory: "$PROFILEDIRECTORY" IfFileExists: "$SETTINGSDIRECTORY\FirefoxPortableSettings.ini" ? SettingsFound : CreateDirectory: "$SETTINGSDIRECTORY" FileOpen: $SETTINGSDIRECTORY\FirefoxPortableSettings.ini as w -> $R0 FileClose: $R0 WriteINIStr: [FirefoxPortableSettings] LastProfileDirectory=NONE in $SETTINGSDIRECTORY\FirefoxPortableSettings.ini StrCmp "$SHOWLICENSE" "true" equal=, nonequal=CheckForLicense WriteINIStr: [FirefoxPortableSettings] AgreedToLicense=YES in $SETTINGSDIRECTORY\FirefoxPortableSettings.ini Goto: TheEnd ReadINIStr $0 [FirefoxPortableSettings]:AgreedToLicense from $SETTINGSDIRECTORY\FirefoxPortableSettings.ini StrCmp "$0" "YES" equal=LicenseAgreedTo, nonequal=RelaunchWithLicense File: "System.dll"->"$PLUGINSDIR\System.dll" [compress] 6030/10240 bytes Plugin Command: Call kernel32::GetModuleFileNameA(i 0, t .R0, i 1024) i r1 ExecWait: "$R0 SHOWLICENSE" (->) ReadINIStr $0 [FirefoxPortableSettings]:AgreedToLicense from $SETTINGSDIRECTORY\FirefoxPortableSettings.ini StrCmp "$0" "YES" equal=LicenseAgreedTo, nonequal=TheEnd StrCmp "$RUNLOCALLY" "true" equal=DisplaySplash, nonequal= ClearErrors FileOpen: $PROFILEDIRECTORY\writetest.temp as w -> $R0 IfErrors ?:WriteSuccessful MessageBox: 36: "Firefox Portable appears to be running from a location that is read-only. Would you like to temporarily copy it to the local hard drive and run it from there? (Privacy Note: Any personal data within Firefox Portable will be copied to a local drive. Although it will be deleted on exit, it may be possible to recover this data later.)" (on IDYES goto SwitchToRunLocally) MessageBox: 64: "Firefox Portable can not run directly from a read-only location and will now close." Abort: "" StrCpy $RUNLOCALLY "true" () () Goto: DisplaySplash FileClose: $R0 Delete: "$PROFILEDIRECTORY\writetest.temp" StrCmp "$DISABLESPLASHSCREEN" "true" equal=SkipSplashScreen, nonequal= InitPluginsDir File: "FirefoxPortable.jpg"->"$PLUGINSDIR\splash.jpg" [compress] 4573/4988 bytes File: "newadvsplash.dll"->"$PLUGINSDIR\newadvsplash.dll" [compress] 4443/8704 bytes Plugin Command: show 2000 200 0 -1 /L $PLUGINSDIR\splash.jpg StrCmp "$RUNLOCALLY" "true" equal=, nonequal=CompareProfilePath RMDir: /r "$TEMP\FirefoxPortable\" CreateDirectory: "$TEMP\FirefoxPortable\profile" CreateDirectory: "$TEMP\FirefoxPortable\plugins" CreateDirectory: "$TEMP\FirefoxPortable\program" CopyFiles: (silent) "$PROFILEDIRECTORY\*.*" -> "$TEMP\FirefoxPortable\profile", size=0KB StrCpy $PROFILEDIRECTORY "$TEMP\FirefoxPortable\profile" () () CopyFiles: (silent) "$PLUGINSDIRECTORY\*.*" -> "$TEMP\FirefoxPortable\plugins", size=0KB StrCpy $PROFILEDIRECTORY "$TEMP\FirefoxPortable\profile" () () CopyFiles: (silent) "$PROGRAMDIRECTORY\*.*" -> "$TEMP\FirefoxPortable\program", size=0KB StrCpy $PROGRAMDIRECTORY "$TEMP\FirefoxPortable\program" () () Push: $TEMP\FirefoxPortable Call "Attrib" ReadINIStr $LASTPROFILEDIRECTORY [FirefoxPortableSettings]:LastProfileDirectory from $SETTINGSDIRECTORY\FirefoxPortableSettings.ini StrCmp "$PROFILEDIRECTORY" "$LASTPROFILEDIRECTORY" equal=, nonequal=AdjustChrome StrCmp "$DISABLEINTELLIGENTSTART" "true" equal=AdjustChrome, nonequal= StrCpy $SKIPCHROMEFIX "true" () () StrCpy $SKIPCOMPREGFIX "true" () () WriteINIStr: [FirefoxPortableSettings] LastProfileDirectory=$PROFILEDIRECTORY in $SETTINGSDIRECTORY\FirefoxPortableSettings.ini StrCmp "$SKIPCHROMEFIX" "true" equal=FixCalendarManager, nonequal= IfFileExists: "$PROFILEDIRECTORY\chrome\chrome.rdf" ? : FixCalendarManager FileOpen: $PROFILEDIRECTORY\chrome\chrome.rdf as r -> $0 FileOpen: $PROFILEDIRECTORY\chrome\chrome.rdf.new as w -> $R0 ClearErrors FileWrite: $4->$R0 FileRead: $0->$4 (max:) IfErrors ?NoMoreLines: StrCpy $5 "$4" (35) () StrCmp "$5" " c:baseURL="jar:f" equal=FoundJarLine, nonequal= StrCmp "$5" " c:baseURL="file:" equal=FoundFileLine, nonequal=NextLine StrCpy $R4 "40" () () StrCpy $ISFILELINE "0" () () Goto: NotYet StrCpy $R4 "40" () () StrCpy $ISFILELINE "1" () () IntOp: $R4=$R4+1 StrCpy $7 "$4" (10) ($R4) StrCmp "$7" "extensions" equal=PathFound, nonequal=NotYet StrCpy $5 "$4" () ($R4) StrCmp "$ISFILELINE" "0" equal=MakeJarLine, nonequal=MakeFileLine StrCpy $4 " c:baseURL="jar:file:///$PROFILEDIRECTORY/$5" () () Goto: NextLine StrCpy $4 " c:baseURL="file:///$PROFILEDIRECTORY/$5" () () Goto: NextLine FileClose: $0 FileClose: $R0 CopyFiles: (silent) "$PROFILEDIRECTORY\chrome\chrome.rdf" -> "$PROFILEDIRECTORY\chrome\chrome.rdf.old", size=0KB CopyFiles: (silent) "$PROFILEDIRECTORY\chrome\chrome.rdf.new" -> "$PROFILEDIRECTORY\chrome\chrome.rdf", size=0KB IfFileExists: "$PROFILEDIRECTORY\Calendar\CalendarManager.rdf" ? : FixPrefsJs FileOpen: $PROFILEDIRECTORY\Calendar\CalendarManager.rdf as r -> $0 FileOpen: $PROFILEDIRECTORY\Calendar\CalendarManager.rdf.new as w -> $R0 ClearErrors FileWrite: $4->$R0 FileRead: $0->$4 (max:) IfErrors ?CMNoMoreLines: StrCpy $5 "$4" (28) () StrCmp "$5" " NC:path="" equal=, nonequal=CMNextLine StrCpy $R4 "28" () () IntOp: $R4=$R4+1 StrCpy $7 "$4" (9) ($R4) StrCmp "$7" "Calendar\" equal=, nonequal=CMNotYet StrCpy $5 "$4" () ($R4) StrCpy $4 " NC:path="$PROFILEDIRECTORY\$5" () () Goto: CMNextLine FileClose: $0 FileClose: $R0 CopyFiles: (silent) "$PROFILEDIRECTORY\Calendar\CalendarManager.rdf" -> "$PROFILEDIRECTORY\Calendar\CalendarManager.rdf.old", size=0KB CopyFiles: (silent) "$PROFILEDIRECTORY\Calendar\CalendarManager.rdf.new" -> "$PROFILEDIRECTORY\Calendar\CalendarManager.rdf", size=0KB IfFileExists: "$PROFILEDIRECTORY\prefs.js" ? : FixMimeTypes FileOpen: $PROFILEDIRECTORY\prefs.js as a -> $0 FileSeek: fp=$0, ofs=0, mode=END, output= FileWriteByte: 13->$0 FileWriteByte: 10->$0 FileWrite: user_pref("browser.shell.checkDefaultBrowser", false);->$0 FileWriteByte: 13->$0 FileWriteByte: 10->$0 StrCmp "$LOCALHOMEPAGE" "" equal=FixPrefsJsClose, nonequal= FileWrite: user_pref("browser.startup.homepage", "file:///$EXEDIR/$LOCALHOMEPAGE");->$0 FileWriteByte: 13->$0 FileWriteByte: 10->$0 FileClose: $0 IfFileExists: "$PROFILEDIRECTORY\mimeTypes.rdf" ? : RunProgram StrCmp "$LASTPROFILEDIRECTORY" "NONE" equal=RunProgram, nonequal= Push: $LASTPROFILEDIRECTORY Call "GetParent" Call "GetParent" Call "GetParent" Pop: $0 StrCpy $0 "$0\" () () Push: $PROFILEDIRECTORY Call "GetParent" Call "GetParent" Call "GetParent" Pop: $1 StrCpy $1 "$1\" () () StrCmp "$0" "$1" equal=RunProgram, nonequal= !insertmacro: _ReplaceInFile Push: $PROFILEDIRECTORY\mimeTypes.rdf Push: $0 Push: $1 Call "RIF" !insertmacro: end of _ReplaceInFile Delete: "$PROFILEDIRECTORY\mimeTypes.rdf.old" StrCmp "$SKIPCOMPREGFIX" "true" equal=GetPassedParameters, nonequal= Delete: "$PROFILEDIRECTORY\compreg.dat" Call "GetParameters" Pop: $0 StrCmp "'$0'" "''" equal=, nonequal=LaunchProgramParameters StrCpy $EXECSTRING ""$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" -profile "$PROFILEDIRECTORY"" () () Goto: CheckMultipleInstances StrCpy $EXECSTRING ""$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" -profile "$PROFILEDIRECTORY" $0" () () StrCmp "$ALLOWMULTIPLEINSTANCES" "true" equal=, nonequal=AdditionalParameters Plugin Command: Call Kernel32::SetEnvironmentVariableA(t, t) i("MOZ_NO_REMOTE", "1").r0 StrCmp "$ADDITIONALPARAMETERS" "" equal=PluginsEnvironment, nonequal= StrCpy $EXECSTRING "$EXECSTRING $ADDITIONALPARAMETERS" () () StrCmp "$PLUGINSDIRECTORY" "" equal=LaunchNow, nonequal= IfFileExists: "$PLUGINSDIRECTORY\*.*" ? : LaunchNow Plugin Command: Call Kernel32::SetEnvironmentVariableA(t, t) i("MOZ_PLUGIN_PATH", "$PLUGINSDIRECTORY").r0 StrCmp "$SECONDARYLAUNCH" "true" equal=StartProgramAndExit, nonequal= StrCmp "$WAITFORPROGRAM" "true" equal=, nonequal=StartProgramAndExit ExecWait: "$EXECSTRING" (->) Sleep: 2000 ms StrCmp "$ALLOWMULTIPLEINSTANCES" "true" equal=CheckIfRemoveLocalFiles, nonequal= Plugin Command: FindProc firefox.exe StrCmp "$R0" "1" equal=CheckRunning, nonequal=CleanupRunLocally Exec: "$EXECSTRING" (->) Goto: TheEnd StrCmp "$RUNLOCALLY" "true" equal=, nonequal=CheckIfRemoveLocalFiles RMDir: /r "$TEMP\FirefoxPortable\" Plugin Command: FindProc firefox.exe Pop: $R0 StrCmp "$R0" "1" equal=TheEnd, nonequal=RemoveLocalFiles Delete: "$APPDATA\Mozilla\Firefox\pluginreg.dat" RMDir: "$APPDATA\Mozilla\Firefox\" RMDir: "$APPDATA\Mozilla\" Goto: TheEnd Invalid command: newadvsplash::wait Error in script "F:\Portable Applications\FirefoxPortable\Other\FirefoxPortableSource\FirefoxPortable.nsi" on line 509 -- aborting creation processhye guys,
im very sorry to mess up this topics big time
looks like the error im having is the same as previous post..
i didn't read carefully...
i successfully recompile the script but it says that it cannot find firefox.exe when i click the test installer.
p/s : mod please delete my previous post
From what I can see from your previous post, you need the new newadvsplash-Plugin. Or you download the latest NSIS portable.
Do you have the installer in the FirefoxPortable folder and the firefox.exe in the FirefoxPortable/App/firefox/ folder and you're not using the ini? Then it should work.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
yes i have the firefox.exe in the FirefoxPortable/App/firefox/ folder and there is only updater.ini in it.
The firefox portable.ini in the F:\Portable Applications\FirefoxPortable\Other\FirefoxPortableSource seems to cannot be open.
No installer in the FirefoxPortable folder. Theres app, data, others folders and FirefoxPortable.exe and help.html
using the latest version, are you?
Because you said "FirefoxPortableSource" and that folder doesn't exist any more in the more recent versions. The current launcher version is "1.5.9.0" and you´re using 1.5.3.0. Somewhere in between the newadvsplash plugin changed so that might cause issues.
I´d recommend updating Firefox to 2.0.0.14 or if you have using the launcher in /Other/Source and delete the \Other\FirefoxPortableSource folder.
"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate
i downloaded the new 2.0.0.14 version and the portable nsis v2.36 but still no luck.
Successfully recompile but the result still same..