Old 23rd February 2011, 00:20   #1
pengu
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)

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
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,321
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 
"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 

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 23rd February 2011, 20:27   #3
pengu
Junior Member
 
Join Date: Feb 2011
Posts: 2
I tried to PM you the code..

Quote:
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
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
You can use pastebin.
MSG is offline   Reply With Quote
Reply
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