Old 23rd February 2011, 00:20   #1
Junior Member
Join Date: Feb 2011
Posts: 2
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.
pengu is offline   Reply With Quote
Old 23rd February 2011, 08:55   #2
Anders's Avatar
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,333
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.

PHP Code:
!include "FileFunc.nsh"
!include LogicLib.nsh
var DSN
function .onInit
StrCpy $DSN TheDSN
StrCpy $instdir 
${GetParameters} $0
${GetOptions"$0" "/auto" $1
${If} ${Errors}
Exec '"$exepath" /auto /path=$INSTDIR\Layout\Aust\ /dsn=$DSN /uid=username /pwd=MuLtICaSe'
Messagebox mb_ok >>>$cmdline<<<

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 23rd February 2011, 20:27   #3
Junior Member
Join Date: Feb 2011
Posts: 2
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.
pengu is offline   Reply With Quote
Old 24th February 2011, 06:15   #4
Major Dude
Join Date: Oct 2006
Posts: 1,892
You can use pastebin.
MSG is offline   Reply With Quote
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump