Skip to content
⌘ NSIS Forum Archive

ExecWait Application Parameters Lowercase & Uppercase

4 posts

pengu#

ExecWait Application Parameters Lowercase & Uppercase

Wow that was a hell of a title.

Anyways the problem I'm having is as following. (code)


ExecWait '"$INSTDIR\example.exe" /auto /path=$INSTDIR\Layout\Aust\ /dsn=$DSN /uid=username /pwd=MuLtICaSe'
With the very last parameter, being a password. The password has a mixture of lowercase and uppercase characters and as far as I have been able to figure out so far it's to do with not picking up the upper/lower case. I tested this on username and it would only show up in lowercase.

Any ideas?
I've tried pre-defined variables.
Anders#
Do you really think NSIS is changing the case? Without checking the source, I would guess that NSIS passes the string directly to CreateProcess() without even looking at it.

!include "FileFunc.nsh"
!include LogicLib.nsh
var DSN
function .onInit
StrCpy $DSN TheDSN
StrCpy $instdir "c:\foo"
${GetParameters} $0
ClearErrors
${GetOptions} "$0" "/auto" $1
${If} ${Errors}
    Exec '"$exepath" /auto /path=$INSTDIR\Layout\Aust\ /dsn=$DSN /uid=username /pwd=MuLtICaSe'
${Else}
    Messagebox mb_ok >>>$cmdline<<<
${EndIf}
quit
functionend 
pengu#
I tried to PM you the code..

The text that you have entered is too long (8645 characters). Please shorten it to 3000 characters long.