Calling External Dll Text Parameters
I'm new to the NSIS Installer but so far it's worked great.
I'm doing a Palm Application Install based on the example external system dll code. I'm using the Palm File Installer DLL Instaide.dll.
Most calls are working fine.
However I am having trouble with the call to PltInstallFile() which takes 2 text parameters as input. Here's the code snippit I am trying.
;;;;;;;;;;;;;;;;;;;;;;;;
StrCpy $R0 "0" ; assign memory to $0
System::Alloc 1024 ; allocate space for username
Pop $1
;Get User is working
System::Call 'Instaide::PltGetUser(i $R0, t, *i) i(.r0, .r1, r2).r3'
DetailPrint 'User: "$1"'
DetailPrint "Path length: $2"
DetailPrint "Return value: $3"
DetailPrint 'User Num: "$R0"'
DetailPrint 'User Name: "$1"'
System::Alloc 1024 ; allocate space for filename
Pop $2
; yes this file is there
StrCpy $2 "$INSTDIR\PalmOS\MathLib.prc"
DetailPrint 'Install File: "$2"'
System::Call 'Instaide::PltInstallFile(t, t) i(.r1, .r2).r3'
DetailPrint "Return value: $3"
;;;;;;;;;;;;;;;
The return value I get is alweays -554 or ERR_PILOT_BAD_FILENAME
Is there a syntax error or somthing missing here?
Thanks.