It says at the end...
!include: could not find: "Registry.nsh"
Error in script "C:/blahblahblah/AbiWordPortable.nsi" on line 58 -- aborting creation process
Help?
New: Run-Command (Dec 2, 2024), Platform 29.5.3 (Jun 27, 2024)
1,100+ portable packages, 1.1 billion downloads
No Ads Nov/Dec!, Please donate today
It says at the end...
!include: could not find: "Registry.nsh"
Error in script "C:/blahblahblah/AbiWordPortable.nsi" on line 58 -- aborting creation process
Help?
you need to download this and extract this. I think there is an exe that you have to use in there but the file is http://portableapps.kmbb.org/nsis/Registry.zip
----------------------------------------------------
My own linux Distro called Ubuntu Multimedia Center
your friendly neighbourhood moderator Zach Thibeau
http://nsis.sourceforge.net/Registry_plugin
Then extract to
C:\Program Files\NSIS\Plugins
----
Ryan McCue
Cube Games
Life is like a sewer. What you get out of it depends on what you put into it.
(Tom Lehrer)
"If you're not part of the solution, you're part of the precipitate."
I'll report back when I try to compile it. But thanks for the help anyway.
CreateDirectory: "$EXEDIR\Data"
CreateDirectory: "$EXEDIR\Data\settings"
StrCmp "$DISABLESPLASHSCREEN" "true" equal=GetPassedParameters, nonequal=
InitPluginsDir
File: "SudokuPortable.jpg"->"$PLUGINSDIR\splash.jpg" [compress] 13361/18696 bytes
Invalid command: newadvsplash::show
Error in script "E:\PortableApps projects\FrozenBubblePortable\Other\SudokuPortableSource\SudokuPortable.nsi" on line 178 -- aborting creation process
Google is your friend: newadvsplash
Sometimes, the impossible can become possible, if you're awesome!
I'm not sure what fault it is, but as soon as Frozen Bubble launches it says "SDL.dll" was not found. It skips that error (and all other dll errors) when I copy the dlls to the launcher directory, but the program will automatically close. Here's the launcher:
;Copyright (C) 2004-2006 John T. Haller
;Portions Copyright 2004 Gerard Balagué
;Website: http://PortableApps.com/SudokuPortable
;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 FULLNAME "Frozen Bubble Portable"
!define NAME "FrozenBubblePortable"
!define APP "Frozen Bubble"
!define VER "1.2.1.0"
!define WEBSITE "www.frozen-bubble.org"
!define DEFAULTEXE "frozen-bubble.exe"
!define DEFAULTAPPDIR "frozen-bubble"
!define DEFAULTSETTINGSDIR "settings"
;=== Program Details
Name "${NAME}"
OutFile "${NAME}.exe"
Caption "${FULLNAME} | PortableApps.com"
VIProductVersion "${VER}"
VIAddVersionKey ProductName "${FULLNAME}"
VIAddVersionKey Comments "Allows ${APP} to be run from a removable drive. For additional details, visit ${WEBSITE}"
VIAddVersionKey CompanyName "www.frozen-bubble.org"
VIAddVersionKey LegalCopyright "www.frozen-bubble.org"
VIAddVersionKey FileDescription "${FULLNAME}"
VIAddVersionKey FileVersion "${VER}"
VIAddVersionKey ProductVersion "${VER}"
VIAddVersionKey InternalName "${FULLNAME}"
VIAddVersionKey LegalTrademarks "PortableApps is a trademark of Rare Ideas, LLC."
VIAddVersionKey OriginalFilename "${NAME}.exe"
;VIAddVersionKey PrivateBuild ""
;VIAddVersionKey SpecialBuild ""
;=== Runtime Switches
CRCCheck On
WindowIcon Off
SilentInstall Silent
AutoCloseWindow True
RequestExecutionLevel user
;=== Include
!include "GetParameters.nsh"
;=== Program Icon
Icon "${NAME}.ico"
Var PROGRAMDIRECTORY
Var SETTINGSDIRECTORY
Var ADDITIONALPARAMETERS
Var EXECSTRING
Var WAITFORPROGRAM
Var PROGRAMEXECUTABLE
Var INIPATH
Var DISABLESPLASHSCREEN
Var ISDEFAULTDIRECTORY
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}" "WaitFor${APP}"
StrCpy "$WAITFORPROGRAM" $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 "$WAITFORPROGRAM" "false"
StrCpy "$PROGRAMEXECUTABLE" "${DEFAULTEXE}"
StrCpy "$DISABLESPLASHSCREEN" "false"
IfFileExists "$EXEDIR\App\${DEFAULTAPPDIR}\${DEFAULTEXE}" "" CheckPortableProgramDIR
StrCpy "$PROGRAMDIRECTORY" "$EXEDIR\App\${DEFAULTAPPDIR}"
StrCpy "$SETTINGSDIRECTORY" "$EXEDIR\Data\${DEFAULTSETTINGSDIR}"
StrCpy "$ISDEFAULTDIRECTORY" "true"
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\Data\${NAME}\${DEFAULTSETTINGSDIR}"
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:
IfFileExists "$SETTINGSDIRECTORY\*.*" SettingsFound
;=== No profile was found
StrCmp $ISDEFAULTDIRECTORY "true" CopyDefaultSettings
MessageBox MB_OK|MB_ICONEXCLAMATION `$SETTINGSDIRECTORY was not found. Please check your configuration`
Abort
CopyDefaultSettings:
CreateDirectory "$EXEDIR\Data"
CreateDirectory "$EXEDIR\Data\${DEFAULTSETTINGSDIR}"
SettingsFound:
StrCmp $DISABLESPLASHSCREEN "true" GetPassedParameters
;=== Show the splash screen before processing the files
InitPluginsDir
File /oname=$PLUGINSDIR\splash.jpg "${NAME}.jpg"
newadvsplash::show /NOUNLOAD 1300 200 0 -1 /L $PLUGINSDIR\splash.jpg
GetPassedParameters:
;=== Get any passed parameters
Call GetParameters
Pop $0
StrCmp "'$0'" "''" "" LaunchProgramParameters
;=== No parameters
StrCpy $EXECSTRING `"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE"`
Goto AdditionalParameters
LaunchProgramParameters:
StrCpy $EXECSTRING `"$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" $0`
AdditionalParameters:
StrCmp $ADDITIONALPARAMETERS "" UserProfileEnvironment
;=== Additional Parameters
StrCpy $EXECSTRING `$EXECSTRING $ADDITIONALPARAMETERS`
UserProfileEnvironment:
;=== Set the %USERPROFILE% directory if we have a path
System::Call 'Kernel32::SetEnvironmentVariableA(t, t) i("USERPROFILE", "$SETTINGSDIRECTORY").r0'
;LaunchNow:
StrCmp $WAITFORPROGRAM "true" LaunchAndWait LaunchAndClose
LaunchAndWait:
ExecWait $EXECSTRING
Goto TheEnd
LaunchAndClose:
Exec $EXECSTRING
Sleep 2000
TheEnd:
newadvsplash::stop
SectionEnd