You are here

Foxit Reader Splash Screen

5 posts / 0 new
Last post
ajkannan83
Offline
Last seen: 15 years 2 weeks ago
Joined: 2009-11-12 01:02
Foxit Reader Splash Screen

Dear Sir,

I want to change Foxit Reader Splash Screen using NSIS compiler the following error message is displayed.

Plugin Command: show 1200 0 0 -1 /L $PLUGINSDIR\splash.jpg
IfFileExists: "$SETTINGSDIRECTORY\*.*" ? GetPassedParameters :
CreateDirectory: "$SETTINGSDIRECTORY"
CopyFiles: (silent) "$EXEDIR\App\DefaultData\settings\*.*" -> "$SETTINGSDIRECTORY", size=0KB
!insertmacro: GetParametersCall
!insertmacro: end of GetParametersCall
StrCmp "'$0'" "''" equal=, nonequal=LaunchProgramParameters
StrCpy $EXECSTRING ""$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE"" () ()
Goto: AdditionalParameters
StrCpy $EXECSTRING ""$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" $0" () ()
StrCmp "$ADDITIONALPARAMETERS" "" equal=AdjustPaths, nonequal=
StrCpy $EXECSTRING "$EXECSTRING $ADDITIONALPARAMETERS" () ()
StrCmp "$SECONDARYLAUNCH" "true" equal=LaunchAndExit, nonequal=
ReadINIStr $LASTDRIVE [FoxitReaderPortableSettings]:LastDrive from $SETTINGSDIRECTORY\FoxitReaderPortableSettings.ini
Invalid command: ${GetRoot}
Error in script "C:\Documents and Settings\Administrator\Desktop\FoxitReaderPortable\Other\Source\FoxitReaderPortable.nsi" on line 184 -- aborting creation process

How to Fix it

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

You are missing the FileFunc header.

If you already have it installed (I think its stabdard), add a !include FileFunc.nsh to your script.

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

ajkannan83
Offline
Last seen: 15 years 2 weeks ago
Joined: 2009-11-12 01:02
Sir, Sorry for the distrub. I

Sir,

Sorry for the distrub.

I have already include FileFunc.nsh in my script.

My Script is

MakeNSIS v2.38 - Copyright 1995-2008 Contributors
See the file COPYING for license details.
Credits can be found in the Users Manual.

Processing config: 
Processing plugin dlls: "C:\Documents and Settings\Administrator\Desktop\NSIS\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
 - TypeLib::GetLibVersion
 - TypeLib::Register
 - TypeLib::UnRegister
 - UserInfo::GetAccountType
 - UserInfo::GetName
 - UserInfo::GetOriginalAccountType
 - VPatch::GetFileCRC32
 - VPatch::GetFileMD5
 - VPatch::vpatchfile
 - 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
 - textreplace::_FillReadBuffer
 - textreplace::_FindInFile
 - textreplace::_FreeReadBuffer
 - textreplace::_ReplaceInFile
 - textreplace::_Unload

PluginDir: "C:\Documents and Settings\Administrator\Desktop\NSIS\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
 - System::Alloc
 - System::Call
 - System::Copy
 - System::Free
 - System::Get
 - System::Int64Op
 - System::Store
 - 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
 - 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
 - textreplace::_FillReadBuffer
 - textreplace::_FindInFile
 - textreplace::_FreeReadBuffer
 - textreplace::_ReplaceInFile
 - textreplace::_Unload
!define: "MUI_INSERT_NSISCONF"=""

Changing directory to: "C:\Documents and Settings\Administrator\Desktop\FoxitReaderPortable\Other\Source"

Processing script file: "C:\Documents and Settings\Administrator\Desktop\FoxitReaderPortable\Other\Source\FoxitReaderPortable.nsi"
!define: "PORTABLEAPPNAME"="Foxit Reader Portable"
!define: "APPNAME"="Foxit Reader"
!define: "NAME"="FoxitReaderPortable"
!define: "VER"="1.6.6.0"
!define: "WEBSITE"="PortableApps.com"
!define: "DEFAULTEXE"="Foxit Reader.exe"
!define: "DEFAULTAPPDIR"="Foxit Reader"
!define: "DEFAULTSETTINGSDIR"="settings"
!define: "LAUNCHERLANGUAGE"="English"
Name: "Foxit Reader Portable"
OutFile: "..\..\FoxitReaderPortable.exe"
Caption: "Foxit Reader Portable | PortableApps.com"
VIAddVersionKey: "ProductName" "Foxit Reader Portable"
VIAddVersionKey: "Comments" "Allows Foxit Reader to be run from a removable drive.  For additional details, visit PortableApps.com"
VIAddVersionKey: "CompanyName" "PortableApps.com"
VIAddVersionKey: "LegalCopyright" "PortableApps.com & Contributors"
VIAddVersionKey: "FileDescription" "Foxit Reader Portable"
VIAddVersionKey: "FileVersion" "1.6.6.0"
VIAddVersionKey: "ProductVersion" "1.6.6.0"
VIAddVersionKey: "InternalName" "Foxit Reader Portable"
VIAddVersionKey: "LegalTrademarks" "PortableApps.com is a Trademark of Rare Ideas, LLC."
VIAddVersionKey: "OriginalFilename" "FoxitReaderPortable.exe"
CRCCheck: On
WindowIcon: Off
SilentInstall: Silent
AutoCloseWindow: true
XPStyle: On
SetCompress: Auto
SetCompressor: /SOLID lzma
SetCompressorDictSize: 32 mb
SetDatablockOptimize: On
!include: "C:\Documents and Settings\Administrator\Desktop\NSIS\NSISPortable\App\NSIS\Include\FileFunc.nsh"
!define: "FILEFUNC_INCLUDED"=""
!include: closed: "C:\Documents and Settings\Administrator\Desktop\NSIS\NSISPortable\App\NSIS\Include\FileFunc.nsh"
!insertmacro: GetParameters
!insertmacro: end of GetParameters
!include: "C:\Documents and Settings\Administrator\Desktop\NSIS\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: "C:\Documents and Settings\Administrator\Desktop\NSIS\NSISPortable\App\NSIS\Include\Registry.nsh"
!include: "C:\Documents and Settings\Administrator\Desktop\NSIS\NSISPortable\App\NSIS\Include\TextReplace.nsh"
!define: "textreplace::FindInFile"="!insertmacro textreplace::FindInFile"
!define: "textreplace::ReplaceInFile"="!insertmacro textreplace::ReplaceInFile"
!define: "textreplace::FillReadBuffer"="!insertmacro textreplace::FillReadBuffer"
!define: "textreplace::FreeReadBuffer"="!insertmacro textreplace::FreeReadBuffer"
!define: "textreplace::Unload"="!insertmacro textreplace::Unload"
!include: closed: "C:\Documents and Settings\Administrator\Desktop\NSIS\NSISPortable\App\NSIS\Include\TextReplace.nsh"
!include: "ReadINIStrWithDefault.nsh"
Function: "ReadINIStrWithDefault"
ClearErrors
Exch($0,0)
Exch(st(1),0)
Exch($1,0)
Exch(st(2),0)
Exch($2,0)
Exch(st(3),0)
Exch($3,0)
Push: $4
ReadINIStr $4 [$2]:$1 from $3
IfErrors ?0:+3
StrCpy $4 "$0" () ()
ClearErrors
StrCpy $0 "$4" () ()
Pop: $4
Pop: $3
Exch(st(2),0)
Pop: $2
Pop: $1
Exch($0,0)
FunctionEnd
!define: "ReadINIStrWithDefault"="!insertmacro "ReadINIStrWithDefault""
!include: closed: "ReadINIStrWithDefault.nsh"
!include: "ReplaceInFileWithTextReplace.nsh"
Function: "ReplaceInFile"
Exch($0,0)
Exch(st(1),0)
Exch($1,0)
Exch(st(2),0)
Exch($2,0)
Exch(st(3),0)
Exch($3,0)
Push: $4
Push: $5
StrCpy $4 "$2.OldReplaceInFile" () ()
!insertmacro: textreplace::ReplaceInFile
File: "textreplace.dll"->"$PLUGINSDIR\textreplace.dll" 5120 bytes
Plugin Command: _ReplaceInFile $2 $4 $1 $0 $3 /C=0
Pop: $5
!insertmacro: end of textreplace::ReplaceInFile
IntCmp $5:0 equal=StackCleanup,  RenameToOriginal
SetErrors
Goto: StackCleanup
Delete: "$2"
Rename: $4->$2
Pop: $5
Pop: $4
Pop: $3
Pop: $0
Pop: $1
Pop: $2
!insertmacro: textreplace::Unload
File: "textreplace.dll"->"$PLUGINSDIR\textreplace.dll" 0/5120 bytes
Plugin Command: _Unload
!insertmacro: end of textreplace::Unload
FunctionEnd
!define: "ReplaceInFileCS"="!insertmacro "ReplaceInFileCS""
!define: "ReplaceInFile"="!insertmacro "ReplaceInFile""
!include: closed: "ReplaceInFileWithTextReplace.nsh"
Icon: "..\..\App\AppInfo\appicon.ico"
LoadLanguageFile: C:\Documents and Settings\Administrator\Desktop\NSIS\NSISPortable\App\NSIS\Contrib\Language files\English.nlf
!include: "PortableApps.comLauncherLANG_ENGLISH.nsh"
LangString: "LauncherFileNotFound" 1033 "Foxit Reader Portable 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 Foxit Reader is already running. Please close other instances of Foxit Reader before launching Foxit Reader Portable."
LangString: "LauncherAskCopyLocal" 1033 "Foxit Reader 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: If you say Yes, your personal data within Foxit Reader Portable will be temporarily copied to a local drive. Although this copy of your data will be deleted when you close Foxit Reader Portable, it may be possible for someone else to access your data later."
LangString: "LauncherNoReadOnly" 1033 "Foxit Reader Portable can not run directly from a read-only location and will now close."
LangString: "LauncherPathTooLong" 1033 "The path to Foxit Reader Portable is too long.  Please shorten the path by eliminating some parent directories or shortening directory names."
LangString: "LauncherNextButton" 1033 "&Next >"
!include: closed: "PortableApps.comLauncherLANG_ENGLISH.nsh"
Var: "PROGRAMDIRECTORY"
Var: "SETTINGSDIRECTORY"
Var: "ADDITIONALPARAMETERS"
Var: "EXECSTRING"
Var: "PROGRAMEXECUTABLE"
Var: "INIPATH"
Var: "DISABLESPLASHSCREEN"
Var: "SECONDARYLAUNCH"
Var: "MISSINGFILEORPATH"
Var: "LASTDRIVE"
Var: "CURRENTDRIVE"
Var: "FAILEDTORESTOREKEY"
Var: "USERTYPE"
Section: "Main"
File: "System.dll"->"$PLUGINSDIR\System.dll" 10240 bytes
Plugin Command: Call kernel32::CreateMutexA(i 0, i 0, t "FoxitReaderPortable") i .r1 ?e
Pop: $0
StrCmp "$0" "0" equal=CheckINI, nonequal=
StrCpy $SECONDARYLAUNCH "true" () ()
IfFileExists: "$EXEDIR\FoxitReaderPortable.ini" ?  : NoINI
StrCpy $INIPATH "$EXEDIR" () ()
!insertmacro: ReadINIStrWithDefault
Push: $INIPATH\FoxitReaderPortable.ini
Push: FoxitReaderPortable
Push: Foxit ReaderDirectory
Push: App\Foxit Reader
Call "ReadINIStrWithDefault"
Pop: $0
!insertmacro: end of ReadINIStrWithDefault
StrCpy $PROGRAMDIRECTORY "$EXEDIR\$0" () ()
!insertmacro: ReadINIStrWithDefault
Push: $INIPATH\FoxitReaderPortable.ini
Push: FoxitReaderPortable
Push: SettingsDirectory
Push: Data\settings
Call "ReadINIStrWithDefault"
Pop: $0
!insertmacro: end of ReadINIStrWithDefault
StrCpy $SETTINGSDIRECTORY "$EXEDIR\$0" () ()
!insertmacro: ReadINIStrWithDefault
Push: $INIPATH\FoxitReaderPortable.ini
Push: FoxitReaderPortable
Push: Foxit ReaderExecutable
Push: Foxit Reader.exe
Call "ReadINIStrWithDefault"
Pop: $PROGRAMEXECUTABLE
!insertmacro: end of ReadINIStrWithDefault
!insertmacro: ReadINIStrWithDefault
Push: $INIPATH\FoxitReaderPortable.ini
Push: FoxitReaderPortable
Push: AdditionalParameters
Push: 
Call "ReadINIStrWithDefault"
Pop: $ADDITIONALPARAMETERS
!insertmacro: end of ReadINIStrWithDefault
!insertmacro: ReadINIStrWithDefault
Push: $INIPATH\FoxitReaderPortable.ini
Push: FoxitReaderPortable
Push: DisableSplashScreen
Push: false
Call "ReadINIStrWithDefault"
Pop: $DISABLESPLASHSCREEN
!insertmacro: end of ReadINIStrWithDefault
IfFileExists: "$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" ? FoundProgramEXE : NoProgramEXE
StrCpy $PROGRAMEXECUTABLE "Foxit Reader.exe" () ()
StrCpy $ADDITIONALPARAMETERS "" () ()
StrCpy $DISABLESPLASHSCREEN "false" () ()
IfFileExists: "$EXEDIR\App\Foxit Reader\Foxit Reader.exe" ?  : NoProgramEXE
StrCpy $PROGRAMDIRECTORY "$EXEDIR\App\Foxit Reader" () ()
StrCpy $SETTINGSDIRECTORY "$EXEDIR\Data\settings" () ()
Goto: FoundProgramEXE
StrCpy $MISSINGFILEORPATH "$PROGRAMEXECUTABLE" () ()
MessageBox: 48: "$(LauncherFileNotFound)"
Abort: ""
StrCmp "$SECONDARYLAUNCH" "true" equal=GetPassedParameters, nonequal=
File: "FindProcDLL.dll"->"$PLUGINSDIR\FindProcDLL.dll" 31744 bytes
Plugin Command: FindProc Foxit Reader.exe
StrCmp "$R0" "1" equal=WarnAnotherInstance, nonequal=DisplaySplash
MessageBox: 64: "$(LauncherAlreadyRunning)"
Abort: ""
StrCmp "$DISABLESPLASHSCREEN" "true" equal=CheckSettings, nonequal=
InitPluginsDir
File: "FoxitReaderPortable.jpg"->"$PLUGINSDIR\splash.jpg" 35937 bytes
File: "newadvsplash.dll"->"$PLUGINSDIR\newadvsplash.dll" 8704 bytes
Plugin Command: show 1200 0 0 -1 /L $PLUGINSDIR\splash.jpg
IfFileExists: "$SETTINGSDIRECTORY\*.*" ? GetPassedParameters : 
CreateDirectory: "$SETTINGSDIRECTORY"
CopyFiles: (silent) "$EXEDIR\App\DefaultData\settings\*.*" -> "$SETTINGSDIRECTORY", size=0KB
!insertmacro: GetParametersCall
!insertmacro: end of GetParametersCall
StrCmp "'$0'" "''" equal=, nonequal=LaunchProgramParameters
StrCpy $EXECSTRING ""$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE"" () ()
Goto: AdditionalParameters
StrCpy $EXECSTRING ""$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" $0" () ()
StrCmp "$ADDITIONALPARAMETERS" "" equal=AdjustPaths, nonequal=
StrCpy $EXECSTRING "$EXECSTRING $ADDITIONALPARAMETERS" () ()
StrCmp "$SECONDARYLAUNCH" "true" equal=LaunchAndExit, nonequal=
ReadINIStr $LASTDRIVE [FoxitReaderPortableSettings]:LastDrive from $SETTINGSDIRECTORY\FoxitReaderPortableSettings.ini
Invalid command: ${GetRoot}
Error in script "C:\Documents and Settings\Administrator\Desktop\FoxitReaderPortable\Other\Source\FoxitReaderPortable.nsi" on line 184 -- aborting creation process

[Please put code in <pre> </pre> blocks, mod SL]

Mark Sikkema
Offline
Last seen: 13 years 2 months ago
Developer
Joined: 2009-07-20 14:55
!insertmacro GetRoot

Did you add the following as well:

!insertmacro GetRoot

It is needed after including filefunc.nsh

If this doesn't help you, include the script it self in your comment

Ps.: Why would you want to change the splash screen though. Isn't it better to leave the one of it's publishers !!!

Formerly Gringoloco
Windows XP Pro sp3 x32

prapper
Offline
Last seen: 3 years 9 months ago
Developer
Joined: 2008-01-24 17:01
Compile

Are you talking about Foxit Reader 3.1 Portable Launcher Development Test 3?

If so, it compiles fine with a standard install of NSIS Portable.

If not, carry on Smile

Log in or register to post comments