Skip to content
⌘ NSIS Forum Archive

remove command line parameters

3 posts

mustafah#

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
MSG#
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.