You are here

Splash Screens

25 posts / 0 new
Last post
Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Splash Screens

I wasn't quite sure where to put this post, I didn't think it really needed to go in general discussion, so here's my question. When a program is loading, most of the time, I splash screen will come up. I was curious as to how you change the Splash Screen, not for any PortableApp.com apps, because I love the splash screen for them, but for another program...Could anybody help me out with this?

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
Sure...

...If, you tell us the program Wink
----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.

"If you're not part of the solution, you're part of the precipitate."

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Well...

I was hoping for foxit reader...just to something simple, a foxit icon, and the name.

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
I've found

I've found the file with all the commands

such as display splash screen:false

I've changed that to true, and it will turn of the splash screen, but I still can't find out how to *change* the splash screen with a new one. can someone Please help me out.

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
You will

have to recompile the launcher with another picture because the picture is "built" into the .exe

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Oh, okay.

I thought must have have been built in. How hard it is to open up and recompile the launcher? And how do I?

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Its fairly easy

Here you can download PortableNSIS, a portable NSIS compiler.
Install/unpack it and change the image in the /Appname/Other/AppnamePortable/ folder.
The easiest way of doing it is to put another jpeg in the folder with the same name as the old one. Then you open the .nsi file in PortableNSIS and hit "compile".
It should create an .exe which is your new Launcher with your own Splashscreen.
Enjoy!

PS I haven't tried this yet so I don't know whether it will work or not.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Not working...

When I went to edit the script, I found...

FoundProgramEXE:

DisplaySplash:
;=== Check for data files
StrCmp $DISABLESPLASHSCREEN "true" SkipSplashScreen
;=== Show the splash screen before processing the files
InitPluginsDir
File /oname=$PLUGINSDIR\splash.jpg "${NAME}.jpg"
newadvsplash::show /NOUNLOAD 3000 400 0 -1 /L $PLUGINSDIR\splash.jpg
GoTo SkipSplashScreen

SkipSplashScreen:

In that text, which is basicially all I found about the Splash Screen, do I change the Splash.jpg? And which one, there's two...I put my new splash screen in the AppName/Other/AppnamePortable folder. And called it FoxitPE.jpg, which is what it was called before. I DID save it as a jpeg file as well. And in the text aboce it says (name).jpg, do I change anything there? Finally, when I go to recompile the text file, be it new of the same, it states:

!include: closed: "H:\PortableApps\PortableNSIS 1.5\NSIS\Include\Registry.nsh"
!include: could not find: "GetParameters.nsh"
Error in script "C:\Documents and Settings\Patrick Patience\My Documents\FoxitPE.nsi" on line 32 -- aborting creation process

I found the text that says

!include:"Registry.nsh"
!include:"Get Paremeters.nsh"

So what exactly do I do, and does anybody know what the error is that won't let it recompile...?

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
I better include:

The nsi file, just so somebody can explain what portions I need to change, and where I put my new splash screen, thanks.

IT IS:

;Copyright (C) 2004-2005 John T. Haller
;Copyright (C) 2006 OTBSoft

;Website: http://software.otbsupport.com/portableapps/winlamepe

;This software is OSI Certified Open Source Software.
;OSI Certified is a certification mark of the Open Source Initiative.

;This program is free software; you can redistribute it and/or
;modify it under the terms of the GNU General Public License
;as published by the Free Software Foundation; either version 2
;of the License, or (at your option) any later version.

;This program is distributed in the hope that it will be useful,
;but WITHOUT ANY WARRANTY; without even the implied warranty of
;MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;GNU General Public License for more details.

;You should have received a copy of the GNU General Public License
;along with this program; if not, write to the Free Software
;Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

!define NAME "FoxitReader Portable"
!define FRIENDLYNAME "Foxit Reader Portable Edition"
!define APP "Foxit"
!define VER "2.0.0.0"
!define WEBSITE "http://software.otbsupport.com/portableapps/foxitpe"
!define DEFAULTEXE "FoxitReader.exe"
!define DEFAULTAPPDIR "Foxit"
!define DEFAULTSETTINGSDIR "settings"
!include "Registry.nsh"
!include "GetParameters.nsh"

;=== Program Icon
Icon "${APP}.ico"

;=== Program Details
Name "${NAME}"
OutFile "${NAME}.exe"
Caption "${FRIENDLYNAME}"
VIProductVersion "${VER}"
VIAddVersionKey FileDescription "${FRIENDLYNAME} - PDF Reader"
VIAddVersionKey LegalCopyright "GPL"
VIAddVersionKey Comments "Allows ${APP} to be run from a removable drive. For additional details, visit ${WEBSITE}"
VIAddVersionKey CompanyName "OTBSupport"
VIAddVersionKey OriginalFilename "${NAME}.exe"
VIAddVersionKey FileVersion "${VER}"

;=== Runtime Switches
CRCCheck On
WindowIcon Off
SilentInstall Silent
AutoCloseWindow True

Var ADDITIONALPARAMETERS
Var DISABLESPLASHSCREEN
Var EXECSTRING
Var INIPATH
;Var PLUGINSDIRECTORY
Var PROGRAMDIRECTORY
Var PROGRAMEXECUTABLE
Var SETTINGSDIRECTORY
;Var USERPROFILEDIRECTORY
;Var WAITFORPROGRAM

Section "Main"
;=== Find the INI file, if there is one
IfFileExists "$EXEDIR\${NAME}.ini" "" CheckSubINI
StrCpy "$INIPATH" "$EXEDIR\"
Goto ReadINI

CheckSubINI:
IfFileExists "$EXEDIR\${NAME}\${NAME}.ini" "" CheckSubSubINI
StrCpy "$INIPATH" "$EXEDIR\${NAME}\"
Goto ReadINI

CheckSubSubINI:
IfFileExists "$EXEDIR\PortableApps\${NAME}\${NAME}.ini" "" CheckPortableAppsINI
StrCpy "$INIPATH" "$EXEDIR\PortableApps\${NAME}\"
Goto ReadINI

CheckPortableAppsINI:
IfFileExists "$EXEDIR\Data\${NAME}\${NAME}.ini" "" NoINI
StrCpy "$INIPATH" "$EXEDIR\Data\${NAME}\"
Goto ReadINI

ReadINI:
;=== Read the parameters from the INI file
ReadINIStr $0 "$INIPATH\${NAME}.ini" "${NAME}" "${APP}Directory"
StrCpy "$PROGRAMDIRECTORY" "$EXEDIR\$0"
ReadINIStr $0 "$INIPATH\${NAME}.ini" "${NAME}" "SettingsDirectory"
StrCpy "$SETTINGSDIRECTORY" "$EXEDIR\$0"

;=== Check that the above required parameters are present
IfErrors NoINI

ReadINIStr $0 "$INIPATH\${NAME}.ini" "${NAME}" "AdditionalParameters"
StrCpy "$ADDITIONALPARAMETERS" $0
ReadINIStr $0 "$INIPATH\${NAME}.ini" "${NAME}" "${APP}Executable"
StrCpy "$PROGRAMEXECUTABLE" $0
ReadINIStr $0 "$INIPATH\${NAME}.ini" "${NAME}" "DisableSplashScreen"
StrCpy "$DISABLESPLASHSCREEN" $0

CleanUpAnyErrors:
;=== Any missing unrequired INI entries will be an empty string, ignore associated errors
ClearErrors

;=== Correct PROGRAMEXECUTABLE if blank
StrCmp $PROGRAMEXECUTABLE "" "" EndINI
StrCpy "$PROGRAMEXECUTABLE" "${DEFAULTEXE}"
Goto EndINI

NoINI:
;=== No INI file, so we'll use the defaults
StrCpy $ADDITIONALPARAMETERS ""
StrCpy $PROGRAMEXECUTABLE "${DEFAULTEXE}"
StrCpy $DISABLESPLASHSCREEN "true"

IfFileExists "$EXEDIR\App\${DEFAULTAPPDIR}\${DEFAULTEXE}" "" CheckPortableProgramDIR
StrCpy $PROGRAMDIRECTORY "$EXEDIR\App\${DEFAULTAPPDIR}"
StrCpy $SETTINGSDIRECTORY "$EXEDIR\Data\${DEFAULTSETTINGSDIR}"
GoTo EndINI

CheckPortableProgramDIR:
IfFileExists "$EXEDIR\${NAME}\App\${DEFAULTAPPDIR}\${DEFAULTEXE}" "" CheckPortableAppsDIR
StrCpy $PROGRAMDIRECTORY "$EXEDIR\${NAME}\App\${DEFAULTAPPDIR}"
StrCpy $SETTINGSDIRECTORY "$EXEDIR\${NAME}\Data\${DEFAULTSETTINGSDIR}"
GoTo EndINI

CheckPortableAppsDIR:
IfFileExists "$EXEDIR\PortableApps\${NAME}\App\${DEFAULTAPPDIR}\${DEFAULTEXE}" "" CheckPortableAppsSplitDIR
StrCpy $PROGRAMDIRECTORY "$EXEDIR\PortableApps\${NAME}\App\${DEFAULTAPPDIR}"
StrCpy $SETTINGSDIRECTORY "$EXEDIR\PortableApps\${NAME}\Data\${DEFAULTSETTINGSDIR}"
GoTo EndINI

CheckPortableAppsSplitDIR:
IfFileExists "$EXEDIR\Apps\${NAME}\${DEFAULTAPPDIR}\${DEFAULTEXE}" "" NoProgramEXE
StrCpy $PROGRAMDIRECTORY "$EXEDIR\Apps\${NAME}\${DEFAULTAPPDIR}"
StrCpy $SETTINGSDIRECTORY "$EXEDIR\Apps\${NAME}\${DEFAULTSETTINGSDIR}"
GoTo EndINI

EndINI:
IfFileExists "$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" FoundProgramEXE

NoProgramEXE:
;=== Program executable not where expected
MessageBox MB_OK|MB_ICONEXCLAMATION `$PROGRAMEXECUTABLE was not found. Please check your configuration`
Abort

FoundProgramEXE:

DisplaySplash:
;=== Check for data files
StrCmp $DISABLESPLASHSCREEN "true" SkipSplashScreen
;=== Show the splash screen before processing the files
InitPluginsDir
File /oname=$PLUGINSDIR\splash.jpg "${NAME}.jpg"
newadvsplash::show /NOUNLOAD 3000 400 0 -1 /L $PLUGINSDIR\splash.jpg
GoTo SkipSplashScreen

SkipSplashScreen:

GetPassedParameters:
;=== Get any passed parameters
Call GetParameters
Pop $0
StrCmp "'$0'" "''" "" LaunchProgramParameters

;=== No parameters
StrCpy $EXECSTRING `"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE"`

LaunchProgramParameters:
StrCpy $EXECSTRING `"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" $0`

AdditionalParameters:
StrCpy $EXECSTRING `$EXECSTRING $ADDITIONALPARAMETERS`

LaunchNow:

; Restory the keys
${Registry::RestoreKey} "$SETTINGSDIRECTORY\settings.reg" $R0
; Wait to allow for registration
Sleep 700
ExecWait $EXECSTRING
newadvsplash::stop
; Save and delete the keys
${Registry::SaveKey} "HKEY_CURRENT_USER\Software\Foxit Software" "$SETTINGSDIRECTORY\settings.reg" "/G=1" $R0
${Registry::DeleteKey} "HKEY_CURRENT_USER\Software\Foxit Software" $R0

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
Just

change the current JPG in the directory and then right-click on the NSI file and choose Compile Script
If it brings up errors, download all the necessary plugins, install and try again.
----
Ryan McCue
Person 1: Oh my god. You will never believe what just happened.
Person 2: What?
Person 1: I can't remember, I've forgotten.

"If you're not part of the solution, you're part of the precipitate."

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
I'm sorry...

Ryan, I have no idea what to do. I extracted the plugins the the PortableNSIS plugin directory, and finished the set-up for them, is there anything else I have to do regardng the plugins?

Here's what I HAVE done:

Changed the FoxitPE.jpg image, with a new one I have created.

From there on, what do I need to do, when I the nsi file in PortableNSIS, it states:

Compile Error: See log for details (This is when I OPEN the file)

So, I'm not sure what to do about that. However, when I click edit, it brings up a Notepad file, which I can change, and then save, open back up in PNSIS I assume, and recompile...But, if at all there is anything, what do I change from the text in my above post. I know this may be a lot to ask, but step by step instructions (from the beginning) would be VERY helpful, assuming I know NOTHING about NSIS. Thanks a lot, hopefully, I can learn how to use NSIS, and maybe someday create a portable program. Thanks.

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 10 months ago
Developer
Joined: 2006-12-06 18:07
To change the splash screen,

To change the splash screen, you do not need to edit the nsis script at all, just rename the original splash screen to _original.jpeg, and save your new splash in the same directory as the first splash and with the same name the first splash screen had, then recompile the nsis script.

The developer formerly known as ZGitRDun8705

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Okay

Thanks, but the only problem left is, Portable NSIS, when I open the file.nsi, NSIS states, Compile Error: See Log For Details. How do I fix this. And once someone does tell me how to fix it, to recompile, do I just go to Script->Recompile?

EDIT: Or I suppose just hit the blue button for recompile.

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Yes

If you open something, PNSIS starts immediately to compile.
IS there any info you can give us on the error you keep getting? like the log file?

I just downloaded a fresh copy of foxit reader and the Launcher.
Then I renamed the Foxit.jpg to Foxitold.jpg and copied the jpg from my firefox into the same folder and named it Foxit.jpg.
Then I opened the nsi fle in PNSIS and got 5 warnings and a Launcher for FoxitReader.exe who displayes the FirefoxPortable splash screen.
Maybe you try downloading a fresh copy of everything?

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

cthelight
Offline
Last seen: 17 years 1 month ago
Joined: 2006-12-05 13:13
try this

Once done, JUST RUN THE @$%*& SCRIPT!
and then post error massages...

check out my blog@ cthelight.wordpress.com

Signature automatically removed for containing links

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Error Log?

Not sure where that is...

Though, this appears at the bottom of the script:

!include: closed: "H:\PortableApps\PortableNSIS 1.5\NSIS\Include\Registry.nsh"
!include: could not find: "GetParameters.nsh"
Error in script "H:\PortableApps\Notepad++PE\Other\Notepad++PECode\Notepad++PE.nsi" on line 32 -- aborting creation process

And yes, I have tried downloading new copys of all...

ZachHudock
ZachHudock's picture
Offline
Last seen: 1 year 10 months ago
Developer
Joined: 2006-12-06 18:07
"GetParameters.nsh" has to

"GetParameters.nsh" has to be in the ..\NSIS\Include directory or in the same directory as the source you're trying to compile. If it is in either of those locations everything should compile correctly, if it still doesnt, I'm not sure what to do

The developer formerly known as ZGitRDun8705

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Sorry.

To bring this up again. But I wanna figure out how to do this. Whenever I load the script, of choose "Compile Script", it opens and says.

Make NSISW-Compile Error-See Log for Details.

Where's the log??!

!define: "MUI_INSERT_NSISCONF"=""

Changing directory to: "F:\PortableApps\FoxitPELauncher\Other\FoxitPECode"

Processing script file: "F:\PortableApps\FoxitPELauncher\Other\FoxitPECode\FoxitPE.nsi"
!define: "NAME"="FoxitPE"
!define: "FRIENDLYNAME"="Foxit Reader Portable"
!define: "APP"="Foxit"
!define: "VER"="2.0.0.0"
!define: "WEBSITE"="http://software.otbsupport.com/portableapps/foxitpe"
!define: "DEFAULTEXE"="FoxitReader.exe"
!define: "DEFAULTAPPDIR"=""
!define: "DEFAULTSETTINGSDIR"="settings"
!include: could not find: "Registry.nsh"
Error in script "F:\PortableApps\FoxitPELauncher\Other\FoxitPECode\FoxitPE.nsi" on line 31 -- aborting creation process

Maybe that will help again?

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
copy a

registry.nsh from some PortableApp-source folder (for example FirefoxPortableSource) to the folder your .nsi is in. The .nsh is a file NSIS expects to be in the same folder as the script you're compiling if the script tells NSIS to include registry.nsh.
Registry.nsh is for handling registry entries.

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Am I...

Out of luck if the only nsi file under the entire Foxit Reader Directory is the one I mentioned and tried to edit? [The main one]

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
I don't get your

I don't get your point.
Doesn't copying the registry.nsh solve the problem?

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Umm...

"registry.nsh" It's a file that should be under one of the directories or the App? [Foxit Reader Launcher]

All else I have found it

settings
Registration Entries
7 KB

I've tried putting that into the same folder as the FoxitPE nsis script...Same error,
can't find Registry.nsh, and neither can I...

Ryan McCue
Ryan McCue's picture
Offline
Last seen: 15 years 1 month ago
Joined: 2006-01-06 21:27
Er

Do you have the Registry plugin installed?
If not, get the Registry plugin (ZIP file link) or if that's too much both, just install my Plugins pack which has all the necessary plugins and other files.
----
Ryan McCue
Cube Games
There are only two states in Australia: Queensland and Drunk

"If you're not part of the solution, you're part of the precipitate."

Patrick Patience
Offline
Last seen: 4 years 11 months ago
DeveloperModerator
Joined: 2007-02-20 19:26
Thanks...

I just get one more error...

!include: could not find: "GetParameters.nsh"

But the registry part seems fine now.

Simeon
Simeon's picture
Offline
Last seen: 10 years 1 month ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Just grab

the text from here and save it into a file called:"GetParameters.nsh"

"What about Love?" - "Overrated. Biochemically no different than eating large quantities of chocolate." - Al Pacino in The Devils Advocate

Log in or register to post comments