Skip to content
⌘ NSIS Forum Archive

Help with Strings

4 posts

pgg1#

Help with Strings

Hi

I need to execute a program with the following parameters.
someProg.exe [/PATH Path] [/LM] [/S]

I have tried a few times messing around with different formats of strings but can't get anything to work. Here's a concrete example of what I'm trying to achieve.


ExecDos::exec /DETAILED `"$INSTDIR\someDire\someProg.exe" /PATH $INSTDIR\somedir /LM /S'
Cheers,

Paul
pgg1#
Thanks but I've found the problem. The first quote is a ` and not a '.

Thanks for the reply though.

Cheers,

Paul
pgg1#
Just found out that I also need to add quotes around the Path as in:

[code]
ExecDos::exec /DETAILED '"$INSTDIR\someDire\someProg.exe" /PATH "$INSTDIR\somedir" /LM /S'
[code]

So thanks again.

Cheers,

Paul