Old 13th February 2010, 12:18   #1
mustafah
Junior Member
 
Join Date: Feb 2010
Posts: 4
remove command line parameters

Hi,

Is it possible to remove specific command line arguments from within nsi script which are passed into the executable.

I am currently retrieving paramters specified to the executable using GetParameters. These parameters are then passed into a Java class which the nsi script executes.

However, I want to pass in additional parameters into the executable which can be read from the nsi script, but then removed before they are passed into the Java application

Thanks
mustafah is offline   Reply With Quote
Old 13th February 2010, 14:49   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
GetOptions is probably the macro you need. It's in FileFunc.nsh.

Or just use StrCmp and StrCpy a couple of times. There's a 'findsubstring' macro or something as well, in textfunc.nsh I think.
MSG is offline   Reply With Quote
Old 13th February 2010, 15:40   #3
mustafah
Junior Member
 
Join Date: Feb 2010
Posts: 4
Thanks MSG very much appreciated. I will give it a go.
mustafah 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