You are here

NSIS 2.3

6 posts / 0 new
Last post
Gph007
Offline
Last seen: 15 years 7 months ago
Joined: 2007-09-20 21:23
NSIS 2.3

I have installed NSIS 2.3 and to test it I am trying to execute a portableapps script. I have tried to compile the examples that come with NSIS and they all work fine. I can not get a single portableapps script to compile. I have tried a lot of them and they all seem unable to find the executable and abort on Invalid command: FindProcDLL::FindProc. Here is part of the output from NSIS: (SumatraPDF) -- What am I doing wrong?

Changing directory to: "F:\PortableApps\SumatraPDFPortable\Other\SumatraPDFPortableSource"

Processing script file: "F:\PortableApps\SumatraPDFPortable\Other\SumatraPDFPortableSource\SumatraPDFPortable.nsi"
!define: "NAME"="SumatraPDFPortable"
!define: "FULLNAME"="Sumatra PDF Portable"
!define: "APP"="SumatraPDF"
!define: "VER"="1.4.0.0"
!define: "WEBSITE"="PortableApps.com/SumatraPDFPortable"
!define: "DEFAULTEXE"="SumatraPDF.exe"
!define: "DEFAULTAPPDIR"="SumatraPDF"
!define: "DEFAULTSETTINGSDIR"="settings"
Name: "Sumatra PDF Portable"
OutFile: "SumatraPDFPortable.exe"
Caption: "Sumatra PDF Portable | PortableApps.com"
VIAddVersionKey: "ProductName" "Sumatra PDF Portable"
VIAddVersionKey: "Comments" "Allows SumatraPDF to be run from a removable drive. For additional details, visit PortableApps.com/SumatraPDFPortable"
VIAddVersionKey: "CompanyName" "PortableApps.com"
VIAddVersionKey: "LegalCopyright" "PortableApps.com"
VIAddVersionKey: "FileDescription" "Sumatra PDF Portable"
VIAddVersionKey: "FileVersion" "1.4.0.0"
VIAddVersionKey: "ProductVersion" "1.4.0.0"
VIAddVersionKey: "InternalName" "Sumatra PDF Portable"
VIAddVersionKey: "LegalTrademarks" "PortableApps.com is a trademark of Rare Ideas, LLC"
VIAddVersionKey: "OriginalFilename" "SumatraPDFPortable.exe"
CRCCheck: On
WindowIcon: Off
SilentInstall: Silent
AutoCloseWindow: true
!include: "C:\Program Files\NSIS\Include\FileFunc.nsh"
!define: "FILEFUNC_INCLUDED"=""
!include: closed: "C:\Program Files\NSIS\Include\FileFunc.nsh"
!insertmacro: GetParameters
!insertmacro: end of GetParameters
!insertmacro: GetRoot
!insertmacro: end of GetRoot
!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: "SumatraPDFPortable.ico"
Var: "PROGRAMDIRECTORY"
Var: "SETTINGSDIRECTORY"
Var: "ADDITIONALPARAMETERS"
Var: "EXECSTRING"
Var: "PROGRAMEXECUTABLE"
Var: "INIPATH"
Var: "SECONDARYLAUNCH"
Var: "DISABLESPLASHSCREEN"
Var: "LASTDRIVE"
Var: "CURRENTDRIVE"
Section: "Main"
File: "System.dll"->"$PLUGINSDIR\System.dll" [compress] 6029/10240 bytes
Plugin Command: Call kernel32::CreateMutexA(i 0, i 0, t "SumatraPDFPortable") i .r1 ?e
Pop: $0
StrCmp "$0" "0" equal=CheckINI, nonequal=
StrCpy $SECONDARYLAUNCH "true" () ()
IfFileExists: "$EXEDIR\SumatraPDFPortable.ini" ? : CheckSubINI
StrCpy $INIPATH "$EXEDIR" () ()
Goto: ReadINI
IfFileExists: "$EXEDIR\SumatraPDFPortable\SumatraPDFPortable.ini" ? : NoINI
StrCpy $INIPATH "$EXEDIR\SumatraPDFPortable" () ()
Goto: ReadINI
ReadINIStr $0 [SumatraPDFPortable]:SumatraPDFDirectory from $INIPATH\SumatraPDFPortable.ini
StrCpy $PROGRAMDIRECTORY "$EXEDIR\$0" () ()
ReadINIStr $0 [SumatraPDFPortable]:SettingsDirectory from $INIPATH\SumatraPDFPortable.ini
StrCpy $SETTINGSDIRECTORY "$EXEDIR\$0" () ()
IfErrors ?NoINI:
ReadINIStr $ADDITIONALPARAMETERS [SumatraPDFPortable]:AdditionalParameters from $INIPATH\SumatraPDFPortable.ini
ReadINIStr $DISABLESPLASHSCREEN [SumatraPDFPortable]:DisableSplashScreen from $INIPATH\SumatraPDFPortable.ini
ClearErrors
StrCmp "$PROGRAMEXECUTABLE" "" equal=, nonequal=EndINI
StrCpy $PROGRAMEXECUTABLE "SumatraPDF.exe" () ()
Goto: EndINI
StrCpy $ADDITIONALPARAMETERS "" () ()
StrCpy $PROGRAMEXECUTABLE "SumatraPDF.exe" () ()
IfFileExists: "$EXEDIR\App\SumatraPDF\SumatraPDF.exe" ? : CheckPortableProgramDIR
StrCpy $PROGRAMDIRECTORY "$EXEDIR\App\SumatraPDF" () ()
StrCpy $SETTINGSDIRECTORY "$EXEDIR\Data\settings" () ()
Goto: EndINI
IfFileExists: "$EXEDIR\SumatraPDFPortable\App\SumatraPDF\SumatraPDF.exe" ? : NoProgramEXE
StrCpy $PROGRAMDIRECTORY "$EXEDIR\SumatraPDFPortable\App\SumatraPDF" () ()
StrCpy $SETTINGSDIRECTORY "$EXEDIR\SumatraPDFPortable\Data\settings" () ()
Goto: EndINI
IfFileExists: "$PROGRAMDIRECTORY\$PROGRAMEXECUTABLE" ? FoundProgramEXE :
MessageBox: 48: "$PROGRAMEXECUTABLE was not found. Please check your configuration"
Abort: ""
StrCmp "$SECONDARYLAUNCH" "true" equal=GetPassedParameters, nonequal=
Invalid command: FindProcDLL::FindProc
Error in script "F:\PortableApps\SumatraPDFPortable\Other\SumatraPDFPortableSource\SumatraPDFPortable.nsi" on line 144 -- aborting creation process

John T. Haller
John T. Haller's picture
Online
Last seen: 24 min 28 sec ago
AdminDeveloperModeratorTranslator
Joined: 2005-11-28 22:21
Google is your Friend

Google is your Friend.

That's all I'm saying right now.

(Why are people so quick to ask a question in a forum and so reluctant to use a search engine?)

Sometimes, the impossible can become possible, if you're awesome!

Simeon
Simeon's picture
Offline
Last seen: 9 years 8 months ago
DeveloperTranslator
Joined: 2006-09-25 15:15
Yes

you'll need a plugin for that invalid command...

“I can live with doubt and uncertainty and not knowing. I think it is much more interesting to live not knowing than to have answers that might be wrong.” - Richard P. Feynman

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

TaffinFoxcroft
TaffinFoxcroft's picture
Offline
Last seen: 10 years 6 months ago
Developer
Joined: 2006-12-14 17:24
http://nsis.sourceforge.net/C

http://nsis.sourceforge.net/Category:Plugins
get the registry and advsplash plugins here

But there’s no sense crying over every mistake,
You just keep on trying till you run out of cake.

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

The FindProcDLL.
_______________________________________________
Wow, I just noticed I still had a signature, that's enough of that.

Espreon
Espreon's picture
Offline
Last seen: 11 years 10 months ago
Joined: 2006-09-29 18:23
Or you can use Smith Tech's NSIS Portable

which already has these plugins.
--
As all of ya should know Micro$oft is the Evil Empire, and Windows (a.k.a. Winblows or Windoze) is their greatest general, so please make a difference and install Linux or FreeBSD on yer Windows comp.

Log in or register to post comments